[Fix] Display FPS properly when game speed is accelerated.
This commit is contained in:
parent
b75cf3d698
commit
4fdda9b388
@ -559,7 +559,8 @@ static double fps_cur = 0.; /**< FPS accumulator to trigger change. */
|
||||
*/
|
||||
static void display_fps(const double dt) {
|
||||
double x, y;
|
||||
fps_dt += dt;
|
||||
|
||||
fps_dt += dt / dt_mod;
|
||||
fps_cur += 1.;
|
||||
if(fps_dt > 1.) {
|
||||
/* Recalculate every second. */
|
||||
|
Loading…
Reference in New Issue
Block a user