[wpigui] Limit frame rate to 120 fps by default (#5030)

Limiting with vsync is apparently unreliable on a number of systems;
this resulted in high CPU/GPU usage.

Also add current actual frame rate to about dialog of GUI tools.
This commit is contained in:
Peter Johnson
2023-02-03 15:21:52 -08:00
committed by GitHub
parent 7867bbde0e
commit 193a10d020
7 changed files with 61 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ struct SavedSettings {
int yPos = -1;
int userScale = 2;
int style = 0;
int fps = 120;
};
constexpr int kFontScaledLevels = 9;