mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
OpenXR: Add profiling macro for process, xrWaitFrame() and acquiring swapchain
This commit is contained in:
parent
68410acc61
commit
01a5ba4b9d
2 changed files with 12 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue