1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

OpenXR: Add profiling macro for process, xrWaitFrame() and acquiring swapchain

This commit is contained in:
David Snopek
2025-11-17 14:49:37 -06:00
parent 68410acc61
commit 01a5ba4b9d
2 changed files with 12 additions and 0 deletions

View File

@@ -4759,9 +4759,11 @@ bool Main::iteration() {
// process all our active interfaces
#ifndef XR_DISABLED
GodotProfileZoneGrouped(_profile_zone, "xr_server->_process");
XRServer::get_singleton()->_process();
#endif // XR_DISABLED
GodotProfileZoneGrouped(_profile_zone, "physics");
for (int iters = 0; iters < advance.physics_steps; ++iters) {
GodotProfileZone("Physics Step");
GodotProfileZoneGroupedFirst(_physics_zone, "setup");