Commit 203cbab6 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Increase the CS queue size to 16 MiB on 64-bit architectures.

With the buffer / texture mapping acceleration bits working properly, we can get many outstanding commands and, to avoid blocking the client thread while waiting for free space, we need a larger queue. 16 MiB was always enough in my testing (8 MiB wasn't in a few cases). Keep a lower limit on 32-bit since we're often times address space-starved there. Tweaked by Zebediah Figura.
parent aeb9776f
......@@ -5074,7 +5074,11 @@ enum wined3d_push_constants
};
#define WINED3D_CS_QUERY_POLL_INTERVAL 10u
#if defined(_WIN64)
#define WINED3D_CS_QUEUE_SIZE 0x1000000u
#else
#define WINED3D_CS_QUEUE_SIZE 0x400000u
#endif
#define WINED3D_CS_SPIN_COUNT 10000000u
#define WINED3D_CS_QUEUE_MASK (WINED3D_CS_QUEUE_SIZE - 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment