added support for 90hz for Quest 2

This commit is contained in:
Emanuele Disco 2021-07-27 09:55:37 +09:00
parent a7ee685929
commit ed6d85b93d

View file

@ -1866,7 +1866,7 @@ JNIEXPORT jlong JNICALL Java_com_drbeef_questzdoom_GLES3JNILib_onCreate( JNIEnv
gpu = arg_int0("g", "gpu", "<int>", "GPU perf index 1-4 (default: 3)"), gpu = arg_int0("g", "gpu", "<int>", "GPU perf index 1-4 (default: 3)"),
msaa = arg_int0("m", "msaa", "<int>", "MSAA 1-4 (default: 1)"), msaa = arg_int0("m", "msaa", "<int>", "MSAA 1-4 (default: 1)"),
ffr = arg_int0("f", "ffr", "<int>", "FFR 0-4 (default: 0)"), ffr = arg_int0("f", "ffr", "<int>", "FFR 0-4 (default: 0)"),
refresh = arg_int0("r", "refresh", "<int>", "Display Refresh 60 or 72 (default: 72)"), refresh = arg_int0("r", "refresh", "<int>", "Display Refresh 60, 72 or 90 (default: 72)"),
end = arg_end(20) end = arg_end(20)
}; };
@ -1918,7 +1918,7 @@ JNIEXPORT jlong JNICALL Java_com_drbeef_questzdoom_GLES3JNILib_onCreate( JNIEnv
FFR = ffr->ival[0]; FFR = ffr->ival[0];
} }
if (refresh->count > 0 && (refresh->ival[0] == 60 || refresh->ival[0] == 72)) if (refresh->count > 0 && (refresh->ival[0] == 60 || refresh->ival[0] == 72 || refresh->ival[0] == 90))
{ {
DISPLAY_REFRESH = refresh->ival[0]; DISPLAY_REFRESH = refresh->ival[0];
} }