eventloop: don't update logic FPS counter after LFRAME_SKIP_ALWAYS
This drastically reduces calls to time_get() when fast-forwarding (e.g. quickload)
This commit is contained in:
parent
5d339c09d8
commit
5a3027df26
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ LogicFrameAction run_logic_frame(LoopFrame *frame) {
|
|||
}
|
||||
|
||||
LogicFrameAction a = frame->logic(frame->context);
|
||||
fpscounter_update(&global.fps.logic);
|
||||
|
||||
if(a != LFRAME_SKIP_ALWAYS) {
|
||||
fpscounter_update(&global.fps.logic);
|
||||
}
|
||||
|
||||
if(taisei_quit_requested()) {
|
||||
a = LFRAME_STOP;
|
||||
|
|
Loading…
Reference in a new issue