mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00:00
Removed calls to YieldCPU from RunGpuLoop.
This commit is contained in:
parent
6962929356
commit
4137fc0023
1 changed files with 9 additions and 3 deletions
|
@ -153,7 +153,7 @@ void RunGpuLoop()
|
|||
|
||||
while (GpuRunningState)
|
||||
{
|
||||
g_video_backend->PeekMessages();
|
||||
g_video_backend->PeekMessages();
|
||||
|
||||
VideoFifo_CheckAsyncRequest();
|
||||
|
||||
|
@ -204,9 +204,15 @@ void RunGpuLoop()
|
|||
|
||||
fifo.isGpuReadingData = false;
|
||||
|
||||
|
||||
if (EmuRunningState)
|
||||
{
|
||||
// NOTE(jsd): Calling SwitchToThread() on Windows 7 x64 is a hot spot, according to profiler.
|
||||
// See https://docs.google.com/spreadsheet/ccc?key=0Ah4nh0yGtjrgdFpDeF9pS3V6RUotRVE3S3J4TGM1NlE#gid=0
|
||||
// for benchmark details.
|
||||
#if 0
|
||||
Common::YieldCPU();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
// While the emu is paused, we still handle async requests then sleep.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue