input events are now still pumped during frame downtime

pull/8/head
Sara 2023-06-18 22:17:25 +02:00
parent 14b8b2f380
commit fc1f3499e3
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ int _engine_run() {
do { do {
timespec_get(&next_time, TIME_UTC); timespec_get(&next_time, TIME_UTC);
_delta_time = timespec_to_sec(next_time) - timespec_to_sec(start_last_frame); _delta_time = timespec_to_sec(next_time) - timespec_to_sec(start_last_frame);
SDL_PumpEvents();
} while(_delta_time < _min_frame_interval); } while(_delta_time < _min_frame_interval);
} }
return 0; return 0;