FPS switching delay. Probably should be in milliseconds.
This commit is contained in:
@@ -486,7 +486,6 @@ S32 main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
DrawFPS(20, 20);
|
||||
|
||||
EndDrawing();
|
||||
|
||||
// Reset statistics as we will accumulate seconds again.
|
||||
@@ -502,9 +501,12 @@ S32 main(int argc, char *argv[])
|
||||
|
||||
if(is_dirty()) {
|
||||
clear_dirty();
|
||||
SetTargetFPS(120); // FPS cap
|
||||
SetTargetFPS(120); // FPS cap
|
||||
} else {
|
||||
SetTargetFPS(20);
|
||||
if(now_s - last_input_s > 1) {
|
||||
SetTargetFPS(20);
|
||||
last_input_s = now_s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user