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
d553e51277
commit
b5b752c884
1 changed files with 1 additions and 1 deletions
|
@ -694,7 +694,7 @@
|
||||||
while(atomic_load_explicit(&refCount, memory_order_relaxed) != 0) {
|
while(atomic_load_explicit(&refCount, memory_order_relaxed) != 0) {
|
||||||
[semaphore signal]; // Gotta poke this periodically
|
[semaphore signal]; // Gotta poke this periodically
|
||||||
if(mainThread)
|
if(mainThread)
|
||||||
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.001]];
|
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]];
|
||||||
else
|
else
|
||||||
usleep(500);
|
usleep(500);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue