diff --git a/src/gui/interface/Engine.cpp b/src/gui/interface/Engine.cpp index 0091d3484..4ccab0986 100644 --- a/src/gui/interface/Engine.cpp +++ b/src/gui/interface/Engine.cpp @@ -41,6 +41,15 @@ void Engine::SetFpsLimit(FpsLimit newFpsLimit) { fpsLimit = newFpsLimit; ::SetFpsLimit(fpsLimit); + // Populate dt with whatever that makes any sort of sense. + if (auto *explicitFpsLimit = std::get_if(&fpsLimit)) + { + SetFps(explicitFpsLimit->value); + } + else + { + SetFps(1); + } } void Engine::Begin()