| 365 | } |
| 366 | |
| 367 | bool OS_Android::main_loop_iterate(bool *r_should_swap_buffers) { |
| 368 | if (!main_loop) { |
| 369 | return false; |
| 370 | } |
| 371 | DisplayServerAndroid::get_singleton()->reset_swap_buffers_flag(); |
| 372 | DisplayServerAndroid::get_singleton()->process_events(); |
| 373 | uint64_t current_frames_drawn = Engine::get_singleton()->get_frames_drawn(); |
| 374 | bool exit = Main::iteration(); |
| 375 | |
| 376 | if (r_should_swap_buffers) { |
| 377 | *r_should_swap_buffers = !is_in_low_processor_usage_mode() || |
| 378 | DisplayServerAndroid::get_singleton()->should_swap_buffers() || |
| 379 | RenderingServer::get_singleton()->has_changed() || |
| 380 | current_frames_drawn != Engine::get_singleton()->get_frames_drawn(); |
| 381 | } |
| 382 | |
| 383 | return exit; |
| 384 | } |
| 385 | |
| 386 | void OS_Android::main_loop_end() { |
| 387 | #ifdef TOOLS_ENABLED |
no test coverage detected