mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 06:40:03 +00:00
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…
x
Reference in New Issue
Block a user