add a usleep(0) to improve UDP performance on Windows (busy-loop eats all CPU time, other thread didn't proceed)

This commit is contained in:
erwincoumans
2017-01-28 22:46:23 -08:00
parent 87bce5eacf
commit d0e1ec8c48

View File

@@ -473,7 +473,7 @@ bool UdpNetworkedPhysicsProcessor::processCommand(const struct SharedMemoryComma
while (m_data->m_hasCommand && (timeout-- > 0))
{
// b3Clock::usleep(100);
b3Clock::usleep(0);
}
#if 0