diff options
| author | nitsuja <nitsuja-@hotmail.com> | 2012-01-07 20:22:48 -0800 |
|---|---|---|
| committer | nitsuja <nitsuja-@hotmail.com> | 2012-01-07 20:22:48 -0800 |
| commit | daefb3b550e27f291beb78aaea2bc9c9dc77ac78 (patch) | |
| tree | 223136bf543a74c4f3109a3e8571fa5285c1edae /Source/Core/Common | |
| parent | b33be736cd41292c964611385c1dc792364a1119 (diff) | |
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.
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/StdThread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/StdThread.h b/Source/Core/Common/Src/StdThread.h index 6e9e903561..661d87cfd1 100644 --- a/Source/Core/Common/Src/StdThread.h +++ b/Source/Core/Common/Src/StdThread.h @@ -279,7 +279,7 @@ namespace this_thread inline void yield() { #ifdef _WIN32 - Sleep(0); + SwitchToThread(); #else sleep(0); #endif |
