a small thread synchronization speedup for dual core mode.

it's most noticeable in games where the CPU is running behind compared to the GPU.
This commit is contained in:
nitsuja committed 2012-01-07 20:22:48 -08:00
1 parent b33be736cd
commit daefb3b550
2 files changed
+13 -5

No files matched your search

+1 -1
View File
@@ -279,7 +279,7 @@ namespace this_thread
inline void yield()
{
#ifdef _WIN32
Sleep(0);
SwitchToThread();
#else
sleep(0);
#endif