Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
BattleAxeVR committed Mar 17, 2024
1 parent fe41841 commit e1d27e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/tests/hello_xr/openxr_program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions src/tests/hello_xr/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e1d27e8

Please sign in to comment.