summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpodi <spodi2290@aol.com>2025-03-28 20:40:38 +0100
committerLywx <kiritodev01@gmail.com>2025-03-28 16:31:36 -0600
commit71de55d3bd0cb4a00a562961860ea495f8734f92 (patch)
treee9b84ee36d78261e671bd4b4f62e7a2a7c129a1a
parent30ec4720c06dd3418641226a6d320067f2706700 (diff)
Remove jitter fix slider
LUS defaults to always on now (if not set by the port). And this option was confusing for most users. Might increase input latency by one frame, when V-Sync is on and FPS is even above the refresh rate for a moment. (Normal behavior with jitter fix on).
-rw-r--r--src/port/Engine.cpp3
-rw-r--r--src/port/ui/ImguiUI.cpp6
2 files changed, 0 insertions, 9 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp
index e0307752..eeac4b33 100644
--- a/src/port/Engine.cpp
+++ b/src/port/Engine.cpp
@@ -509,11 +509,8 @@ void GameEngine::ProcessGfxCommands(Gfx* commands) {
time -= fps;
- int threshold = CVarGetInteger("gExtraLatencyThreshold", 80);
-
if (wnd != nullptr) {
wnd->SetTargetFps(fps);
- wnd->SetMaximumFrameLatency(threshold > 0 && target_fps >= threshold ? 2 : 1);
}
// When the gfx debugger is active, only run with the final mtx
diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp
index 996d2bbb..1ff1e99b 100644
--- a/src/port/ui/ImguiUI.cpp
+++ b/src/port/ui/ImguiUI.cpp
@@ -348,12 +348,6 @@ void DrawSettingsMenu(){
}
UIWidgets::Tooltip("Matches interpolation value to the current game's window refresh rate");
-
- if (Ship::Context::GetInstance()->GetWindow()->GetWindowBackend() == Ship::WindowBackend::FAST3D_DXGI_DX11) {
- UIWidgets::PaddedEnhancementSliderInt(CVarGetInteger("gExtraLatencyThreshold", 0) == 0 ? "Jitter fix: Off" : "Jitter fix: >= %d FPS",
- "##ExtraLatencyThreshold", "gExtraLatencyThreshold", 0, 360, "", 0, true, true, false);
- UIWidgets::Tooltip("When Interpolation FPS setting is at least this threshold, add one frame of input lag (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.\nThis 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);