Implement more detailed diagnostics for OpenXR stages

This commit is contained in:
iChris4 committed 2026-09-20 17:24:16 +02:00
1 parent c4c7078afc
commit 787dbcf7d2
8 files changed
+212 -34

No files matched your search

+4 -1
View File
@@ -10,6 +10,7 @@
#endif
#include "vr/openxr_input.h"
#include "vr/openxr_diagnostics.h"
#include <SDL3/SDL_gamepad.h>
#include <SDL3/SDL_joystick.h>
@@ -518,7 +519,9 @@ void OpenXRInput::Sync(XrTime predicted_display_time, const OpenXRPointerScreen&
XrActionsSyncInfo sync{XR_TYPE_ACTIONS_SYNC_INFO};
sync.countActiveActionSets = 1;
sync.activeActionSets = &active;
const XrResult result = xrSyncActions(m_runtime->Session(), &sync);
const XrResult result = diagnostics::Measure(diagnostics::Stage::SyncActions, [&] {
return xrSyncActions(m_runtime->Session(), &sync);
});
m_runtime->ObserveResult(result);
if (XR_FAILED(result)) {
if (!m_logged_sync_failure) {