mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-03-05 09:57:06 +00:00
(Android) Reduce CPU usage while paused.
This commit is contained in:
parent
b2fc9cae3a
commit
95d43e5f60
@ -271,7 +271,7 @@ static bool android_run_events(struct android_app* android_app)
|
||||
int id;
|
||||
|
||||
// Block forever waiting for events.
|
||||
while ((id = ALooper_pollOnce(0, NULL, 0, NULL)) >= 0)
|
||||
while ((id = ALooper_pollOnce(g_android.activity_paused ? -1 : 100, NULL, 0, NULL)) >= 0)
|
||||
{
|
||||
// Process this event.
|
||||
if (id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user