From 57c5f003376229febdceed643277a499c619500a Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Thu, 22 Jan 2009 20:05:59 +0000 Subject: [PATCH] Sleep for 1ms instead of zero time; the busy-sleep loop pollutes profiles. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1983 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_DSP_HLE/Src/PCHW/Mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/Mixer.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/Mixer.cpp index c59228e64e..acc5f3b8ce 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/Mixer.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/Mixer.cpp @@ -127,7 +127,7 @@ void Mixer_PushSamples(short *buffer, int num_stereo_samples, int sample_rate) { } #else while (queue_size > queue_maxlength) { - sleep(0); + usleep(1000); } #endif //convert into config option?