diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2024-03-02 22:43:10 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2024-03-02 22:43:10 +0000 |
| commit | c1bfbb0444bd4bab3caa44a7a8e1979725ac2226 (patch) | |
| tree | 1b2f311f90f1bb6ce391f2e92f917dadb22a97e2 /src | |
| parent | 3cfe2117952983f5663fe06291d343b94f9b5672 (diff) | |
Show fps
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/src/loop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/src/loop.c b/src/core/src/loop.c index c283a5b..deb3768 100644 --- a/src/core/src/loop.c +++ b/src/core/src/loop.c @@ -288,10 +288,10 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) { StateType (*update_func)(f64, void*) = State_updateFunc(state); -#ifdef BENCHMARK +//#ifdef BENCHMARK f64 last_fps_measurement = get_time(); f64 last_fps_ticks = 0; -#endif +//#endif /* Main loop */ do { @@ -299,13 +299,13 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) { const f64 dt = now - time; time = now; -#ifdef BENCHMARK +//#ifdef BENCHMARK 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; } -#endif +//#endif glfwPollEvents(); /* Events */ |
