mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
fixes to the threadedness of the sw rasteriser
also fix #639 and fix #880
This commit is contained in:
@ -94,9 +94,13 @@ void SetupRenderThread()
|
||||
RenderThread = Platform::Thread_Create(RenderThreadFunc);
|
||||
}
|
||||
|
||||
// otherwise more than one frame can be queued up at once
|
||||
Platform::Semaphore_Reset(Sema_RenderStart);
|
||||
|
||||
if (RenderThreadRendering)
|
||||
Platform::Semaphore_Wait(Sema_RenderDone);
|
||||
|
||||
Platform::Semaphore_Reset(Sema_RenderDone);
|
||||
Platform::Semaphore_Reset(Sema_RenderStart);
|
||||
Platform::Semaphore_Reset(Sema_ScanlineCount);
|
||||
|
||||
|
Reference in New Issue
Block a user