mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:45:56 +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:
parent
adfbefde2b
commit
c97e9defc1
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue