http://bugs.winehq.org/show_bug.cgi?id=60354 --- Comment #2 from Béla Gyebrószki <gyebro69@gmail.com> --- Created attachment 82142 --> http://bugs.winehq.org/attachment.cgi?id=82142 "diagnostic" patch to improve performance *The patch is provided as diagnostic evidence, not as a proposed production-ready fix. Its correctness across all buffer lifecycles has not been established.* The attached patch changes dlls/opengl32/unix_wgl.c to: - Retain the underlying Vulkan mapping when ending an OpenGL mapping, clearing map_ptr while keeping host_ptr - Reuse host_ptr plus the requested offset on subsequent mapping requests - Use host_ptr to determine whether Vulkan unmapping is needed when freeing the buffer. This restores normal performance in the demo and nearly eliminates the repeated mmap calls in the captured sample. Relationship to bug #55981: Unlike the mapped-buffer copying cases discussed there, this reproducer uses Vulkan mappings successfully. The severe slowdown persists on that path, and retaining the mapping resolves it. The evidence points to repeated Vulkan map/unmap operations being a significant bottleneck with NVIDIA in this configuration. It does not establish that the NVIDIA driver violates the API specification, or that the Vulkan mapping implementation introduced the original slowdown. The same diagnostic patch has substantially improved performance in 12 tested games, including eXperience 112, Half-Life 2, The Testament of Sherlock Holmes, Wings over Europe, Dungeon Lords Steam Edition, Two Worlds Epic Edition and Age of Wonders: Shadow Magic. The detailed mapping analysis in this report concerns the Age of Wonders II demo. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.