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:
@@ -473,7 +473,7 @@ bool UdpNetworkedPhysicsProcessor::processCommand(const struct SharedMemoryComma
|
|||||||
|
|
||||||
while (m_data->m_hasCommand && (timeout-- > 0))
|
while (m_data->m_hasCommand && (timeout-- > 0))
|
||||||
{
|
{
|
||||||
// b3Clock::usleep(100);
|
b3Clock::usleep(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
Reference in New Issue
Block a user