mirror of
https://github.com/mikage-emu/mikage-dev.git
synced 2025-01-09 15:01:00 +01:00
Frontend: Fix thread starvation caused by spamming the Vulkan mutex
This commit is contained in:
parent
c06c249eeb
commit
661a72c8f6
1 changed files with 3 additions and 0 deletions
|
@ -690,6 +690,9 @@ if (bootstrap_nand) // Experimental system bootstrapper
|
|||
continue;
|
||||
}
|
||||
|
||||
// Limit to ~60 FPS. This avoids starving the emulation thread when locking g_vulkan_queue_mutex
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds { 15 });
|
||||
|
||||
// Process next frame from the emulation core, if any (and do so three times for each screen id... TODO: Find a nicer way of doing this)
|
||||
display->BeginFrame();
|
||||
|
||||
|
|
Loading…
Reference in a new issue