From 0bc12d3ca97a30a61e1e325cfde1eeec379bb9b9 Mon Sep 17 00:00:00 2001 From: alula <6276139+alula@users.noreply.github.com> Date: Sat, 27 Nov 2021 17:18:46 +0100 Subject: [PATCH] Fix choppiness by setting the default UPS to 60 --- SpaceCadetPinball/options.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SpaceCadetPinball/options.h b/SpaceCadetPinball/options.h index accdbb9..a57e05c 100644 --- a/SpaceCadetPinball/options.h +++ b/SpaceCadetPinball/options.h @@ -59,7 +59,11 @@ class options public: // Original does ~120 updates per second. static constexpr int MaxUps = 360, MaxFps = MaxUps, MinUps = 60, MinFps = MinUps, +#ifdef __EMSCRIPTEN__ + DefUps = 60, DefFps = 60; // the game is choppy on emscripten at 120ups, but 60 seems fine. +#else DefUps = 120, DefFps = 60; +#endif static optionsStruct Options; static void init();