mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[WINED3D] Avoid spinning in wined3d_cs_run. CORE-14534
Spinning here is supposed to improve performance by avoiding scheduling overhead, but because ReactOS's Win32 subsystem does not deal with this well, it causes the system to freeze on ROS. As a workaround, we disable spinning and jump directly to the wait. It should become obvious when this starts actually causing performance issues again and it's time to undo.
This commit is contained in:
parent
9bffdcb6e7
commit
adfbefde2b
1 changed files with 4 additions and 0 deletions
|
@ -3544,7 +3544,11 @@ enum wined3d_push_constants
|
|||
|
||||
#define WINED3D_CS_QUERY_POLL_INTERVAL 10u
|
||||
#define WINED3D_CS_QUEUE_SIZE 0x100000u
|
||||
#ifdef __REACTOS__
|
||||
#define WINED3D_CS_SPIN_COUNT 1u
|
||||
#else
|
||||
#define WINED3D_CS_SPIN_COUNT 10000000u
|
||||
#endif
|
||||
|
||||
struct wined3d_cs_queue
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue