1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-09-03 23:20:14 +02:00

Fix choppiness by setting the default UPS to 60

This commit is contained in:
alula 2021-11-27 17:18:46 +01:00 committed by GitHub
parent 617d8bb562
commit 0bc12d3ca9
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();