Fix excessive CPU usage
This commit is contained in:
parent
7978ba451f
commit
4796e5e184
|
@ -94,7 +94,7 @@ static int DxSoundCheck()
|
|||
}
|
||||
|
||||
if (nDSoundNextSeg == nPlaySeg) {
|
||||
//Sleep(2); // Don't need to do anything for a bit
|
||||
Sleep(2); // Don't need to do anything for a bit
|
||||
//bRunFrame = true;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ static int XAudio2Check()
|
|||
WaitForSingleObject(voiceContext.hBufferEndEvent, INFINITE);
|
||||
} else {
|
||||
// drop current audio frame
|
||||
//Sleep(2);
|
||||
Sleep(2);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue