From: Thomas Faber Date: Sun, 19 Aug 2018 11:28:06 +0000 (+0200) Subject: [WINED3D] Yield CPU to the scheduler in wined3d_pause. CORE-14637 CORE-14534 X-Git-Tag: 0.4.11-dev~81 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=c97e9defc157b171d56e31dd9768c5eee732019d [WINED3D] Yield CPU to the scheduler in wined3d_pause. CORE-14637 CORE-14534 Much like the previous commit, this is a workaround for our buggy Win32k. --- diff --git a/dll/directx/wine/wined3d/wined3d_private.h b/dll/directx/wine/wined3d/wined3d_private.h index 3444b52928d..3cf67482377 100644 --- a/dll/directx/wine/wined3d/wined3d_private.h +++ b/dll/directx/wine/wined3d/wined3d_private.h @@ -370,9 +370,13 @@ static inline unsigned int wined3d_popcount(unsigned int x) static inline void wined3d_pause(void) { +#ifdef __REACTOS__ + Sleep(0); +#else #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) __asm__ __volatile__( "rep;nop" : : : "memory" ); #endif +#endif } #define ORM_BACKBUFFER 0