mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
Removed calls to YieldCPU from RunGpuLoop.
This commit is contained in:
parent
6962929356
commit
4137fc0023
@ -153,10 +153,10 @@ void RunGpuLoop()
|
|||||||
|
|
||||||
while (GpuRunningState)
|
while (GpuRunningState)
|
||||||
{
|
{
|
||||||
g_video_backend->PeekMessages();
|
g_video_backend->PeekMessages();
|
||||||
|
|
||||||
VideoFifo_CheckAsyncRequest();
|
VideoFifo_CheckAsyncRequest();
|
||||||
|
|
||||||
CommandProcessor::SetCpStatus();
|
CommandProcessor::SetCpStatus();
|
||||||
|
|
||||||
Common::AtomicStore(CommandProcessor::VITicks, CommandProcessor::m_cpClockOrigin);
|
Common::AtomicStore(CommandProcessor::VITicks, CommandProcessor::m_cpClockOrigin);
|
||||||
@ -203,10 +203,16 @@ void RunGpuLoop()
|
|||||||
}
|
}
|
||||||
|
|
||||||
fifo.isGpuReadingData = false;
|
fifo.isGpuReadingData = false;
|
||||||
|
|
||||||
|
|
||||||
if (EmuRunningState)
|
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();
|
Common::YieldCPU();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// While the emu is paused, we still handle async requests then sleep.
|
// While the emu is paused, we still handle async requests then sleep.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user