mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user