Skip to content

Commit

Permalink
Merge pull request #16821 from lvonasek/feature_openxr_level5
Browse files Browse the repository at this point in the history
OpenXR - Enable level 5 CPU/GPU performance on Quest 2
  • Loading branch information
hrydgard authored Jan 20, 2023
2 parents ac5139b + 5491a05 commit c75a7e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/VR/VRFramebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ void ovrApp_HandleSessionStateChanges(ovrApp* app, XrSessionState state) {

#ifdef ANDROID
if (app->SessionActive && VR_GetPlatformFlag(VR_PLATFORM_PERFORMANCE_EXT)) {
XrPerfSettingsLevelEXT cpuPerfLevel = XR_PERF_SETTINGS_LEVEL_BOOST_EXT;
XrPerfSettingsLevelEXT gpuPerfLevel = XR_PERF_SETTINGS_LEVEL_BOOST_EXT;
XrPerfSettingsLevelEXT cpuPerfLevel = XR_PERF_SETTINGS_LEVEL_PERFORMANCE_MAX_EXT;
XrPerfSettingsLevelEXT gpuPerfLevel = XR_PERF_SETTINGS_LEVEL_PERFORMANCE_MAX_EXT;

PFN_xrPerfSettingsSetPerformanceLevelEXT pfnPerfSettingsSetPerformanceLevelEXT = NULL;
OXR(xrGetInstanceProcAddr(
Expand Down
1 change: 1 addition & 0 deletions ext/openxr/openxr.h
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,7 @@ typedef enum XrPerfSettingsLevelEXT {
XR_PERF_SETTINGS_LEVEL_SUSTAINED_LOW_EXT = 25,
XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT = 50,
XR_PERF_SETTINGS_LEVEL_BOOST_EXT = 75,
XR_PERF_SETTINGS_LEVEL_PERFORMANCE_MAX_EXT = 100,
XR_PERF_SETTINGS_LEVEL_MAX_ENUM_EXT = 0x7FFFFFFF
} XrPerfSettingsLevelEXT;

Expand Down

0 comments on commit c75a7e0

Please sign in to comment.