From 8ce5c46531f54ffc51d043f3e9b6b9ec11e12014 Mon Sep 17 00:00:00 2001 From: Spodi Date: Sun, 9 Feb 2025 07:07:02 +0100 Subject: [PATCH] Remove "Jitter Fix" option (#5020) This was just confusing for users. --- soh/soh/OTRGlobals.cpp | 3 --- soh/soh/SohGui/SohMenuBar.cpp | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index bca2693e5..6b5afb0c3 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -1438,9 +1438,6 @@ extern "C" void Graph_ProcessGfxCommands(Gfx* commands) { wnd->SetTargetFps(fps); } - int threshold = CVarGetInteger(CVAR_SETTING("ExtraLatencyThreshold"), 80); - wnd->SetMaximumFrameLatency(threshold > 0 && target_fps >= threshold ? 2 : 1); - // When the gfx debugger is active, only run with the final mtx if (GfxDebuggerIsDebugging()) { mtx_replacements.clear(); diff --git a/soh/soh/SohGui/SohMenuBar.cpp b/soh/soh/SohGui/SohMenuBar.cpp index 0c974f599..bd39b2563 100644 --- a/soh/soh/SohGui/SohMenuBar.cpp +++ b/soh/soh/SohGui/SohMenuBar.cpp @@ -478,16 +478,6 @@ void DrawSettingsMenu() { } UIWidgets::Tooltip("Matches interpolation value to the game window's current refresh rate."); - if (Ship::Context::GetInstance()->GetWindow()->GetWindowBackend() == Ship::WindowBackend::FAST3D_DXGI_DX11) { - UIWidgets::PaddedEnhancementSliderInt(CVarGetInteger(CVAR_SETTING("ExtraLatencyThreshold"), 80) == 0 ? "Jitter fix: Off" : "Jitter fix: >= %d FPS", - "##ExtraLatencyThreshold", CVAR_SETTING("ExtraLatencyThreshold"), 0, 360, "", 80, true, true, false); - UIWidgets::Tooltip( - "(For DirectX backend only)\n\n" - "When Interpolation FPS (Frame Rate) setting is at least this threshold, add one frame of delay (e.g. 16.6 ms for 60 FPS) in order to avoid jitter." - "This setting allows the CPU to work on one frame while GPU works on the previous frame.\n" - "This setting should be used when your computer is too slow to do CPU + GPU work in time."); - } - UIWidgets::PaddedSeparator(true, true, 3.0f, 3.0f); ImGui::Text("ImGui Menu Scale");