diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/src/loop.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/src/loop.c b/src/core/src/loop.c index e8dfc47..eea40eb 100644 --- a/src/core/src/loop.c +++ b/src/core/src/loop.c @@ -318,8 +318,8 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) { StateType (*update_func)(f64,void*) = State_updateFunc(state); - f64 last_fps_measurement = get_time(); - f64 last_fps_ticks = 0; + //f64 last_fps_measurement = get_time(); + //f64 last_fps_ticks = 0; /* Main loop */ do { @@ -327,11 +327,11 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) { const f64 dt = now - time; time = now; - if (now - last_fps_measurement > 1.000) { - printf("\n FPS: %.1f \t ticks: %lu", (double)(ticks - last_fps_ticks) / (now - last_fps_measurement), ticks); - last_fps_measurement = now; - last_fps_ticks = ticks; - } + //if (now - last_fps_measurement > 1.000) { + // printf("\n FPS: %.1f \t ticks: %lu", (double)(ticks - last_fps_ticks) / (now - last_fps_measurement), ticks); + // last_fps_measurement = now; + // last_fps_ticks = ticks; + //} glfwPollEvents(); /* Events */ |
