Skip to content

Commit

Permalink
Don't use fps_max_unfocused for server step time on non-singleplayer …
Browse files Browse the repository at this point in the history
…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.)
  • Loading branch information
Desour committed Feb 10, 2025
1 parent 7d647e3 commit fb67807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fb67807

Please sign in to comment.