diff --git a/src/uxnemu.c b/src/uxnemu.c index 6438c28..6ba6737 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -470,7 +470,7 @@ static int run(Uxn *u) { Uint64 next_refresh = 0; - Uint64 now = SDL_GetPerformanceCounter(); + Uint64 now; Uint64 frame_interval = SDL_GetPerformanceFrequency() / 60; for(;;) { Uint16 screen_vector; @@ -489,9 +489,9 @@ run(Uxn *u) if(uxn_screen.x2) redraw(); } - if(BENCH) - ; - else if(screen_vector || uxn_screen.x2) { + if(BENCH) { + /* no delay */ + } else if(screen_vector || uxn_screen.x2) { Uint64 delay_ms = (next_refresh - now) / ms_interval; if(delay_ms > 0) SDL_Delay(delay_ms); } else