all repos — mgba @ 38a7a56ee81a4a8f6b511aada0fa0e5f9f88c109

mGBA Game Boy Advance Emulator

GBA Video: Remove unhelpful thread state jiggering
Jeffrey Pfau jeffrey@endrift.com
Wed, 24 Aug 2016 02:58:10 -0700
commit

38a7a56ee81a4a8f6b511aada0fa0e5f9f88c109

parent

d23c993bbedfa351e50b1159a52ec2b579894aa5

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

jump to
M src/gba/renderers/thread-proxy.csrc/gba/renderers/thread-proxy.c

@@ -349,9 +349,7 @@ while (!RingFIFORead(&proxyRenderer->dirtyQueue, &proxyRenderer->vramProxy[item.address >> 1], 0x1000)) {

mLOG(GBA_VIDEO, WARN, "Proxy thread can't read VRAM. CPU thread asleep?"); MutexLock(&proxyRenderer->mutex); ConditionWake(&proxyRenderer->fromThreadCond); - proxyRenderer->threadState = PROXY_THREAD_IDLE; ConditionWait(&proxyRenderer->toThreadCond, &proxyRenderer->mutex); - proxyRenderer->threadState = PROXY_THREAD_BUSY; MutexUnlock(&proxyRenderer->mutex); } proxyRenderer->backend->writeVRAM(proxyRenderer->backend, item.address);