Don't wait on for a frame if we already have any pending
This commit is contained in:
parent
65be8610f3
commit
0a946a0b43
@ -562,7 +562,7 @@ bool GBASyncWaitFrameStart(struct GBASync* sync, int frameskip) {
|
||||
if (!sync->videoFrameOn && !sync->videoFramePending) {
|
||||
return false;
|
||||
}
|
||||
if (sync->videoFrameOn) {
|
||||
if (sync->videoFrameOn && !sync->videoFramePending) {
|
||||
ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex);
|
||||
}
|
||||
sync->videoFramePending = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user