1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-06 00:33:01 +00:00

a system to limit the framerate if not currently showing an animated screen

This commit is contained in:
Zeno Rogue
2025-03-08 10:20:55 +01:00
parent a36c4415da
commit 5fb1ff4d21
3 changed files with 16 additions and 5 deletions

View File

@@ -5816,6 +5816,7 @@ EX string menu_format = "";
EX void gamescreen() {
if(cmode & sm::NOSCR) {
stillscreen = true;
emptyscreen();
return;
}
@@ -5837,6 +5838,8 @@ EX void gamescreen() {
return;
}
stillscreen = false;
auto gx = vid.xres;
auto gy = vid.yres;