Don't wait on for a frame if we already have any pending
Jeffrey Pfau jeffrey@endrift.com
Sun, 19 Oct 2014 00:30:07 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-thread.c
→
src/gba/gba-thread.c
@@ -562,7 +562,7 @@ ConditionWake(&sync->videoFrameRequiredCond);
if (!sync->videoFrameOn && !sync->videoFramePending) { return false; } - if (sync->videoFrameOn) { + if (sync->videoFrameOn && !sync->videoFramePending) { ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex); } sync->videoFramePending = 0;