From 138111a542f696e962962e289beef2a8e1020695 Mon Sep 17 00:00:00 2001 From: Desour Date: Mon, 10 Feb 2025 17:41:16 +0100 Subject: [PATCH] Don't use fps_max_unfocused for server step time on non-singleplayer main-menu-hosted servers It's unreasonable to change server step time when the hosting user unfocuses their window. (m_is_paused is already not set if it's not singleplayer.) --- src/client/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/game.cpp b/src/client/game.cpp index f7cb5c0db..acac7b0e7 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -2504,7 +2504,7 @@ inline void Game::step(f32 dtime) ZoneScoped; if (server) { - float fps_max = !device->isWindowFocused() ? + float fps_max = !device->isWindowFocused() && simple_singleplayer_mode ? g_settings->getFloat("fps_max_unfocused") : g_settings->getFloat("fps_max"); fps_max = std::max(fps_max, 1.0f);