From f39d4ebde290775744d4f9b2b402c69eaf6b1a77 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 12 Dec 2020 11:48:12 +0000 Subject: [PATCH] Ensure Quest 2 STAYS at 90hz VrApi was unnecessarily reducing it to 72hz! --- Projects/Android/jni/Quake2VR/Q2VR_SurfaceView.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Projects/Android/jni/Quake2VR/Q2VR_SurfaceView.c b/Projects/Android/jni/Quake2VR/Q2VR_SurfaceView.c index b0e52b4..28f71ac 100644 --- a/Projects/Android/jni/Quake2VR/Q2VR_SurfaceView.c +++ b/Projects/Android/jni/Quake2VR/Q2VR_SurfaceView.c @@ -1432,11 +1432,6 @@ void * AppThreadFunction( void * parm ) chdir("/sdcard"); - //Set 90hz mode for Quest 2 - if (vrapi_GetSystemPropertyInt(&java, VRAPI_SYS_PROP_DEVICE_TYPE) == VRAPI_DEVICE_TYPE_OCULUSQUEST2) { - vrapi_SetDisplayRefreshRate(appState.Ovr, 90); - } - for ( bool destroyed = false; destroyed == false; ) { for ( ; ; ) @@ -1592,6 +1587,11 @@ void * AppThreadFunction( void * parm ) } #endif + //Set 90hz mode for Quest 2 + if (vrapi_GetSystemPropertyInt(&java, VRAPI_SYS_PROP_DEVICE_TYPE) == VRAPI_DEVICE_TYPE_OCULUSQUEST2) { + vrapi_SetDisplayRefreshRate(appState.Ovr, 90); + } + // Get the HMD pose, predicted for the middle of the time period during which // the new eye images will be displayed. The number of frames predicted ahead // depends on the pipeline depth of the engine and the synthesis rate.