News for hackers. Stuff that matters.
Re:Making Direct3D games faster in Wine using modern OpenGL by kllrnohj on Saturday February 24, 2018 @07:00PM (#16456246)
> glMapBuffer doesn't have any ability to declare that you won't overwrite data.

Well, yes and no. glMapBufferRange, which is basically a drop-in replacement for glMapBuffer, does have such a flag, it's GL_MAP_UNSYNCHRONIZED_BIT.

glMapBufferRange requires OpenGL 3.0 whereas glMapBuffer exists all the way back to OpenGL 2.0 but this looks more like just an oversight in Wine than anything else.

Re:Making Direct3D games faster in Wine using modern OpenGL by twtw on Sunday February 25, 2018 @01:31AM (#16457481)
Wine uses glMapBufferRange when available, and has logic to translate D3DLOCK_NOOVERWRITE to GL_MAP_UNSYNCHRONIZED_BIT. I don't understand what the current implementation is doing that is causing wined3d_resource_map to block.

https://github.com/wine-mirror/wine/blob/538263d0efe725124df...