input events are now still pumped during frame downtime
parent
14b8b2f380
commit
fc1f3499e3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue