Skip to content

d/android: Reduce CPU usage by increasing ALooper_pollAll interval

Meng Jiao requested to merge gin-c/monado-fork:android_sensor_alooper into main

Modified the android_sensor_thread function to use ALooper_pollAll with a timeout of -1. This change reduces CPU usage by blocking indefinitely until an event occurs, rather than continuously polling.

Edited by Meng Jiao

Merge request reports