mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Use system timer/wait functions for frame delay when screen reader is active.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user