all repos — mgba @ 0a946a0b43bd8afcbb7c425eeacc131a4fc3ccdb

mGBA Game Boy Advance Emulator

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
commit

0a946a0b43bd8afcbb7c425eeacc131a4fc3ccdb

parent

65be8610f3e67622622e56aa2ea2aa0c39a33cd8

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-thread.csrc/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;