1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Add input buffering framework

Input buffering is implicitly used by event accumulation, but this commit makes it more generic so it can be enabled for other uses.

For desktop OSs it's currently not feasible given main and UI threads are the same).
This commit is contained in:
Pedro J. Estébanez
2021-08-13 00:38:41 +02:00
parent 7c864d41c9
commit dc187324be
7 changed files with 34 additions and 18 deletions

View File

@@ -2587,6 +2587,11 @@ bool Main::iteration() {
iterating--;
// Needed for OSs using input buffering regardless accumulation (like Android)
if (Input::get_singleton()->is_using_input_buffering()) {
Input::get_singleton()->flush_buffered_events();
}
if (fixed_fps != -1) {
return exit;
}