mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: refresh on demand in menu (adaptive framerate)
This commit is contained in:
parent
ba0977a6f0
commit
7fc3703ad2
8 changed files with 56 additions and 16 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue