1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +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-03 18:59:20 +02:00
parent 58a54f534e
commit 7be9c26e20
7 changed files with 37 additions and 18 deletions

View File

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