From 6bf6666b7b9629126c9f3e41e1d5598de89d9635 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 13 Dec 2023 07:37:08 +0000 Subject: [PATCH] Restore OpenXR performance boost level setting --- Projects/Android/AndroidManifest.xml | 2 +- Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.cpp | 8 ++++---- Projects/Android/jni/OpenJK/code/qcommon/stv_version.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Projects/Android/AndroidManifest.xml b/Projects/Android/AndroidManifest.xml index e913198..dd1bc07 100644 --- a/Projects/Android/AndroidManifest.xml +++ b/Projects/Android/AndroidManifest.xml @@ -2,7 +2,7 @@ + android:versionName="1.1.24" android:installLocation="auto" > diff --git a/Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.cpp b/Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.cpp index 82c0e32..291b219 100644 --- a/Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.cpp +++ b/Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.cpp @@ -924,10 +924,10 @@ void ovrApp_HandleSessionStateChanges(ovrApp* app, XrSessionState state) { "xrPerfSettingsSetPerformanceLevelEXT", (PFN_xrVoidFunction * )(&pfnPerfSettingsSetPerformanceLevelEXT))); -// OXR(pfnPerfSettingsSetPerformanceLevelEXT( -// app->Session, XR_PERF_SETTINGS_DOMAIN_CPU_EXT, cpuPerfLevel)); -// OXR(pfnPerfSettingsSetPerformanceLevelEXT( -// app->Session, XR_PERF_SETTINGS_DOMAIN_GPU_EXT, gpuPerfLevel)); + OXR(pfnPerfSettingsSetPerformanceLevelEXT( + app->Session, XR_PERF_SETTINGS_DOMAIN_CPU_EXT, cpuPerfLevel)); + OXR(pfnPerfSettingsSetPerformanceLevelEXT( + app->Session, XR_PERF_SETTINGS_DOMAIN_GPU_EXT, gpuPerfLevel)); if (strstr(gAppState.OpenXRHMD, "meta") != NULL) { diff --git a/Projects/Android/jni/OpenJK/code/qcommon/stv_version.h b/Projects/Android/jni/OpenJK/code/qcommon/stv_version.h index a94d486..5c3400e 100644 --- a/Projects/Android/jni/OpenJK/code/qcommon/stv_version.h +++ b/Projects/Android/jni/OpenJK/code/qcommon/stv_version.h @@ -23,7 +23,7 @@ along with this program; if not, see . // Current version of the single player game #include "../win32/AutoVersion.h" -#define JKXR_VERSION "1.1.23" +#define JKXR_VERSION "1.1.24" #ifdef _DEBUG #define Q3_VERSION "(debug)OpenJK: v" VERSION_STRING_DOTTED " JKXR: " JKXR_VERSION