feat: refresh on demand in menu (adaptive framerate)

This commit is contained in:
MihailRis
2025-11-09 22:22:24 +03:00
parent ba0977a6f0
commit 7fc3703ad2
8 changed files with 56 additions and 16 deletions
+3 -1
View File
@@ -45,7 +45,9 @@ void Mainloop::run() {
engine.renderFrame();
}
engine.postUpdate();
engine.nextFrame();
engine.nextFrame(
dynamic_cast<const MenuScreen*>(engine.getScreen().get()) != nullptr
);
}
logger.info() << "main loop stopped";
}