Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dependencies/xr/Source/ARKit/XR.mm
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,8 @@ void UpdateXRView(MTKView* activeXRView) {

// Finalize rendering here & push the command buffer to the GPU.
[currentCommandBuffer commit];

[currentCommandBuffer waitUntilCompleted];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What validation error does this fix? I don't think this is good for perf. I think we used to do this and tried to get rid of it, because it blocks this thread until the command buffer has been executed by the gpu.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know but I'd like to narrow down the issue to see if it's this command buffer that's causing all the crashes.


return std::make_unique<Frame>(*this);
}
Expand Down