From e1d27e8115f03bbf1bd5640596e63877f06ede67 Mon Sep 17 00:00:00 2001 From: BattleAxeVR Date: Sun, 17 Mar 2024 15:58:30 -0400 Subject: [PATCH] Minor --- src/tests/hello_xr/openxr_program.cpp | 9 +++++---- src/tests/hello_xr/pch.h | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/tests/hello_xr/openxr_program.cpp b/src/tests/hello_xr/openxr_program.cpp index fb70b70e..05aa7689 100644 --- a/src/tests/hello_xr/openxr_program.cpp +++ b/src/tests/hello_xr/openxr_program.cpp @@ -1754,6 +1754,11 @@ struct OpenXrProgram : IOpenXrProgram createInfo.next = m_graphicsPlugin->GetGraphicsBinding(); createInfo.systemId = m_systemId; CHECK_XRCMD(xrCreateSession(m_instance, &createInfo, &m_session)); + +#if ENABLE_OPENXR_FB_REFRESH_RATE + GetMaxRefreshRate(); + SetRefreshRate(DESIRED_REFRESH_RATE); +#endif } LogReferenceSpaces(); @@ -1767,10 +1772,6 @@ struct OpenXrProgram : IOpenXrProgram GetSystemProperties(); -#if ENABLE_OPENXR_FB_REFRESH_RATE - GetMaxRefreshRate(); - SetRefreshRate(DESIRED_REFRESH_RATE); -#endif #if ENABLE_OPENXR_FB_EYE_TRACKING_SOCIAL CreateSocialEyeTracker(); diff --git a/src/tests/hello_xr/pch.h b/src/tests/hello_xr/pch.h index b99f53e8..0159eb3f 100644 --- a/src/tests/hello_xr/pch.h +++ b/src/tests/hello_xr/pch.h @@ -162,12 +162,12 @@ #define ENABLE_STREAMLINE_WRAPPER (ENABLE_STREAMLINE && 0) #define ENABLE_OPENXR_FB_REFRESH_RATE 1 -#define DEFAULT_REFRESH_RATE 120.0f -#define DESIRED_REFRESH_RATE 120.0f +#define DEFAULT_REFRESH_RATE 72.0f +#define DESIRED_REFRESH_RATE 90.0f #define ENABLE_OPENXR_FB_RENDER_MODEL 0 -#define ENABLE_OPENXR_FB_SHARPENING (PLATFORM_ANDROID && 0) // Only works on standalone Android builds, not PC / Link +#define ENABLE_OPENXR_FB_SHARPENING (PLATFORM_ANDROID && 1) // Only works on standalone Android builds, not PC / Link #define TOGGLE_SHARPENING_AT_RUNTIME_USING_RIGHT_GRIP (ENABLE_OPENXR_FB_SHARPENING && 0) // for debugging / comparison #define ENABLE_OPENXR_FB_COMPOSITION_LAYER_SETTINGS ENABLE_OPENXR_FB_SHARPENING