Remove the "Up to 2" buffered frames option

Three frames in flight showed no performance benefit over two, so drop
the option and clamp existing configs (and the default) down to 2.
The now-unused "Up to 2" translation keys are left in place.

Fixes #21419

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JvJR8oJNSCimCM9KXVLjfq
This commit is contained in:
Henrik RydgårdandClaude Opus 5 committed 2026-09-04 13:08:21 -06:00
1 parent f7548ea7e2
commit 6bb91bf2f0
3 files changed
+5 -5

No files matched your search

+4 -1
View File
@@ -755,7 +755,7 @@ static const ConfigSetting graphicsSettings[] = {
ConfigSetting("GfxDebugOutput", SETTING(g_Config, bGfxDebugOutput), false, CfgFlag::DONT_SAVE),
ConfigSetting("LogFrameDrops", SETTING(g_Config, bLogFrameDrops), false, CfgFlag::DEFAULT),
ConfigSetting("InflightFrames", SETTING(g_Config, iInflightFrames), 3, CfgFlag::DEFAULT),
ConfigSetting("InflightFrames", SETTING(g_Config, iInflightFrames), 2, CfgFlag::DEFAULT),
ConfigSetting("RenderDuplicateFrames", SETTING(g_Config, bRenderDuplicateFrames), false, CfgFlag::PER_GAME),
ConfigSetting("MultiThreading", SETTING(g_Config, bRenderMultiThreading), true, CfgFlag::DEFAULT),
@@ -1611,6 +1611,9 @@ void Config::PostLoadCleanup() {
// Clamp save state slot count to somewhat sane limits.
iSaveStateSlotCount = std::clamp(iSaveStateSlotCount, 1, 100);
// Three frames in flight showed no benefit over two, so the option is gone. Squash old values.
iInflightFrames = std::clamp(iInflightFrames, 1, 2);
}
void Config::PreSaveCleanup() {