Emulating NT synchronization primitives in Wine
summary
Wine currently offloads NT synchronization to a single wine server process which becomes a bottleneck for multithreaded games. A proof of concept kernel driver implements NT events, mutexes, semaphores and wait semantics in kernel space and restores atomic behaviors like wait for all and pulse that eventfd/futex hacks cannot. Benchmarks show up to 50% to 2x improvement in frame rate. Source and patches live in the proof-of-concept repos linked in the uploader description.
AI-written summary · about
