Skip to content

Commit

Permalink
Added TransferTask semaphore debug ouput
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Sep 10, 2024
1 parent 7ada168 commit 1d3a97c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vsg/app/RecordAndSubmitTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ VkResult RecordAndSubmitTask::finish(ref_ptr<RecordedCommandBuffers> recordedCom

earlyTransferTask->waitSemaphores.push_back(earlyTransferTaskConsumerCompletedSemaphore);
vk_signalSemaphores.emplace_back(*earlyTransferTaskConsumerCompletedSemaphore);

info("RecordAndSubmitTask::transferData() earlyTransferTaskConsumerCompletedSemaphore = ", earlyTransferTaskConsumerCompletedSemaphore);
}

if (lateTransferTask && lateTransferTask->currentTransferCompletedSemaphore)
Expand All @@ -181,6 +183,10 @@ VkResult RecordAndSubmitTask::finish(ref_ptr<RecordedCommandBuffers> recordedCom

lateTransferTask->waitSemaphores.push_back(lateTransferTaskConsumerCompletedSemaphore);
vk_signalSemaphores.emplace_back(*lateTransferTaskConsumerCompletedSemaphore);

info("RecordAndSubmitTask::transferData() lateTransferTaskConsumerCompletedSemaphore = ", lateTransferTaskConsumerCompletedSemaphore);


}

for (auto& window : windows)
Expand Down
2 changes: 2 additions & 0 deletions src/vsg/app/TransferTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,13 @@ VkResult TransferTask::transferDynamicData()
submitInfo.pWaitSemaphores = nullptr;
submitInfo.pWaitDstStageMask = nullptr;
// info("TransferTask::transferDynamicData() ", this, ", _currentFrameIndex = ", _currentFrameIndex);

}
else
{
for (auto& waitSemaphore : waitSemaphores)
{
info("TransferTask::transferData() waitSemaphore = ", waitSemaphore);
vk_waitSemaphores.emplace_back(*(waitSemaphore));
vk_waitStages.emplace_back(waitSemaphore->pipelineStageFlags());
}
Expand Down
2 changes: 2 additions & 0 deletions src/vsg/app/Viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ bool Viewer::advanceToNextFrame(double simulationTime)

if (!acquireNextFrame()) return false;

info("\nViewer::advanceToNextFrame()");

// create FrameStamp for frame
auto time = vsg::clock::now();
if (_firstFrame)
Expand Down

0 comments on commit 1d3a97c

Please sign in to comment.