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:
parent
41780e88d0
commit
6655dd34ec
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue