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 <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-06-26 21:51:07 -07:00
parent 41780e88d0
commit 6655dd34ec

View file

@ -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);
}