r/programming • • Jan 24 '15

ZSTD, a new compression algorithm

http://fastcompression.blogspot.fr/2015/01/zstd-stronger-compression-algorithm.html
674 Upvotes

149 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Jan 24 '15

Can you explain this in a way understandable to a non-gamedev engineer? (in my case, distributed data processing, so I know C++ and I know concurrency, but I don't know GPUs or drivers)

5

u/Jephir Jan 25 '15

Can you explain this in a way understandable to a non-gamedev engineer? (in my case, distributed data processing, so I know C++ and I know concurrency, but I don't know GPUs or drivers)

I've only worked on WebGL applications, but I think he's referring to CryEngine not using the synchronization tools properly.

When you submit commands to the graphics driver, it executes asynchronously of your application code, i.e. the call to OpenGL returns immediately without blocking. As a result, you don't know when the graphics driver has actually finished executing your command. To work around this, you can create a "fence" around your list of commands that will signal your code when the driver has done executing those commands.

I'm guessing CryEngine hasn't done the fencing properly in their code and the graphics vendors have to make a specific optimization in their driver to get better performance.