Skip to content

Conversation

@dsnopek
Copy link
Contributor

@dsnopek dsnopek commented Nov 17, 2025

This is a follow-up to #104851, which actually already added profiling zones for some of the most interesting general XR areas, but it missed XRServer::_process()

So, this PR adds a profiling zone for XRServer::_process(), as well as two OpenXR-specific operations (xrWaitFrame() and acquiring an OpenXR swapchain) which involve waiting and are important to keep an eye on (ie under normal operation they shouldn't take too long, but if things go wrong they could take a lot of time, and you'll want to know about it)

Note: the diff around xrWaitFrame() looks more complicated than it actually is, because it indents that code one more level

@dsnopek dsnopek added this to the 4.x milestone Nov 17, 2025
@dsnopek dsnopek requested review from a team as code owners November 17, 2025 21:00
Copy link
Contributor

@m4gr3d m4gr3d left a comment

Choose a reason for hiding this comment

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

Looks good!

@m4gr3d m4gr3d modified the milestones: 4.x, 4.6 Nov 17, 2025
Copy link
Member

@Ivorforce Ivorforce left a comment

Choose a reason for hiding this comment

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

Just some comments on the profiling style

Copy link
Member

@Ivorforce Ivorforce left a comment

Choose a reason for hiding this comment

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

LGTM

@Repiteo Repiteo merged commit 3f5b871 into godotengine:master Nov 18, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 18, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants