mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Use system timer/wait functions for frame delay when screen reader is active.
This commit is contained in:
parent
1b37dacc18
commit
98f377d9d0
9 changed files with 70 additions and 13 deletions
|
|
@ -4855,11 +4855,9 @@ bool Main::iteration() {
|
|||
}
|
||||
|
||||
SceneTree *scene_tree = SceneTree::get_singleton();
|
||||
bool skip_delay = scene_tree && scene_tree->is_accessibility_enabled();
|
||||
bool wake_for_events = scene_tree && scene_tree->is_accessibility_enabled();
|
||||
|
||||
if (!skip_delay) {
|
||||
OS::get_singleton()->add_frame_delay(DisplayServer::get_singleton()->window_can_draw());
|
||||
}
|
||||
OS::get_singleton()->add_frame_delay(DisplayServer::get_singleton()->window_can_draw(), wake_for_events);
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (auto_build_solutions) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue