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
This commit is contained in:
parent
e4c96ece51
commit
57c5f00337
|
@ -127,7 +127,7 @@ void Mixer_PushSamples(short *buffer, int num_stereo_samples, int sample_rate) {
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
while (queue_size > queue_maxlength) {
|
while (queue_size > queue_maxlength) {
|
||||||
sleep(0);
|
usleep(1000);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
//convert into config option?
|
//convert into config option?
|
||||||
|
|
Loading…
Reference in New Issue