mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2024-11-14 00:20:51 +00:00
Command line param for FFR in case it makes any difference
This commit is contained in:
parent
3d9775bb0b
commit
a2dae210ca
3 changed files with 19 additions and 4 deletions
|
@ -103,6 +103,7 @@ PFNEGLGETSYNCATTRIBKHRPROC eglGetSyncAttribKHR;
|
|||
int CPU_LEVEL = 4;
|
||||
int GPU_LEVEL = 4;
|
||||
int NUM_MULTI_SAMPLES = 1;
|
||||
int FFR = 0;
|
||||
float SS_MULTIPLIER = 1.0f;
|
||||
int DISPLAY_REFRESH = 72;
|
||||
|
||||
|
@ -121,6 +122,7 @@ struct arg_dbl *ss;
|
|||
struct arg_int *cpu;
|
||||
struct arg_int *gpu;
|
||||
struct arg_int *msaa;
|
||||
struct arg_int *ffr;
|
||||
struct arg_int *refresh;
|
||||
struct arg_end *end;
|
||||
|
||||
|
@ -1445,6 +1447,9 @@ void * AppThreadFunction(void * parm ) {
|
|||
// This app will handle android gamepad events itself.
|
||||
vrapi_SetPropertyInt(&gAppState.Java, VRAPI_EAT_NATIVE_GAMEPAD_EVENTS, 0);
|
||||
|
||||
//Set FFR property
|
||||
vrapi_SetPropertyInt( &gAppState.Java, VRAPI_FOVEATION_LEVEL, FFR );
|
||||
|
||||
//Using a symmetrical render target
|
||||
m_height = m_width = (int)(vrapi_GetSystemPropertyInt(&java, VRAPI_SYS_PROP_SUGGESTED_EYE_TEXTURE_WIDTH) * SS_MULTIPLIER);
|
||||
|
||||
|
@ -1786,6 +1791,7 @@ JNIEXPORT jlong JNICALL Java_com_drbeef_questzdoom_GLES3JNILib_onCreate( JNIEnv
|
|||
cpu = arg_int0("c", "cpu", "<int>", "CPU perf index 1-4 (default: 2)"),
|
||||
gpu = arg_int0("g", "gpu", "<int>", "GPU perf index 1-4 (default: 3)"),
|
||||
msaa = arg_int0("m", "msaa", "<int>", "MSAA 1-4 (default: 1)"),
|
||||
ffr = arg_int0("f", "ffr", "<int>", "FFR 0-4 (default: 0)"),
|
||||
refresh = arg_int0("r", "refresh", "<int>", "Display Refresh 60 or 72 (default: 72)"),
|
||||
end = arg_end(20)
|
||||
};
|
||||
|
@ -1833,6 +1839,11 @@ JNIEXPORT jlong JNICALL Java_com_drbeef_questzdoom_GLES3JNILib_onCreate( JNIEnv
|
|||
NUM_MULTI_SAMPLES = msaa->ival[0];
|
||||
}
|
||||
|
||||
if (ffr->count > 0 && ffr->ival[0] >= 0 && ffr->ival[0] <= 4)
|
||||
{
|
||||
FFR = ffr->ival[0];
|
||||
}
|
||||
|
||||
if (refresh->count > 0 && (refresh->ival[0] == 60 || refresh->ival[0] == 72))
|
||||
{
|
||||
DISPLAY_REFRESH = refresh->ival[0];
|
||||
|
|
|
@ -46,7 +46,8 @@ CVAR(Bool, vr_swap_eyes, false, CVAR_GLOBALCONFIG)
|
|||
// but makes it possible for subsequent "vr_mode 7" to invoke quad-buffered stereo
|
||||
CUSTOM_CVAR(Bool, vr_enable_quadbuffered, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
|
||||
{
|
||||
Printf("You must restart " GAMENAME " to switch quad stereo mode\n");
|
||||
//Does nothing
|
||||
//Printf("You must restart " GAMENAME " to switch quad stereo mode\n");
|
||||
}
|
||||
|
||||
// intraocular distance in meters
|
||||
|
@ -107,7 +108,7 @@ const Stereo3DMode& Stereo3DMode::getCurrentMode()
|
|||
//if (gl.legacyMode) vr_mode = 0; // GL 2 does not support this feature.
|
||||
|
||||
// NOTE: Ensure that these vr_mode values correspond to the ones in wadsrc/static/menudef.z
|
||||
switch (vr_mode)
|
||||
/* switch (vr_mode)
|
||||
{
|
||||
case 1:
|
||||
setCurrentMode(GreenMagenta::getInstance(vr_ipd));
|
||||
|
@ -159,7 +160,9 @@ const Stereo3DMode& Stereo3DMode::getCurrentMode()
|
|||
default:
|
||||
setCurrentMode(MonoView::getInstance());
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
|
||||
setCurrentMode(OculusQuestMode::getInstance());
|
||||
return *currentStereo3DMode;
|
||||
}
|
||||
|
||||
|
|
|
@ -9398,7 +9398,8 @@ FxExpression *FxFlopFunctionCall::Resolve(FCompileContext& ctx)
|
|||
|
||||
ExpEmit FxFlopFunctionCall::Emit(VMFunctionBuilder *build)
|
||||
{
|
||||
assert(ValueType == ArgList[0]->ValueType);
|
||||
//Need to figure out why this was causing a crash!!
|
||||
//assert(ValueType == ArgList[0]->ValueType);
|
||||
ExpEmit from = ArgList[0]->Emit(build);
|
||||
ExpEmit to;
|
||||
assert(from.Konst == 0);
|
||||
|
|
Loading…
Reference in a new issue