Ensure Quest 2 STAYS at 90hz

VrApi was unnecessarily reducing it to 72hz!
This commit is contained in:
Simon 2020-12-12 11:48:12 +00:00
parent 34f50517d9
commit f39d4ebde2

View file

@ -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.