[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

@@ -162,6 +162,13 @@ enum Style { kStyleClassic = 0, kStyleDark, kStyleLight };
*/
void SetStyle(Style style);
/**
* Sets the FPS limit. Using this function makes this setting persistent.
*
* @param fps FPS (0=vsync)
*/
void SetFPS(int fps);
/**
* Sets the clear (background) color.
*