mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-08 04:41:17 -04:00
yielding the timeslice, win32
This commit is contained in:
parent
fc28b55b29
commit
4b51a7e4a9
@ -474,7 +474,10 @@ system_yield() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
Sleep(0);
|
// 1 ms is the smallest effective time we can request on Windows;
|
||||||
|
// Sleep(0) doesn't seem to actually yield? Or at least it doesn't
|
||||||
|
// yield enough.
|
||||||
|
Sleep(1);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// We use select() as the only way that seems to actually yield the
|
// We use select() as the only way that seems to actually yield the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user