From 6655dd34ec89515eed15ed62f85a0eb134c84040 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 26 Jun 2025 21:51:07 -0700 Subject: [PATCH] Playback: Relax waiting on main thread a bit Relax it from cycling for 1ms to 10ms. This isn't absolutely time critical, after all, since this usually happens when there is some buffering. Signed-off-by: Christopher Snowhill --- Audio/AudioPlayer.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Audio/AudioPlayer.m b/Audio/AudioPlayer.m index 94ec77cb9..8d4ef1acc 100644 --- a/Audio/AudioPlayer.m +++ b/Audio/AudioPlayer.m @@ -694,7 +694,7 @@ while(atomic_load_explicit(&refCount, memory_order_relaxed) != 0) { [semaphore signal]; // Gotta poke this periodically if(mainThread) - [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.001]]; + [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]]; else usleep(500); }