Get the latest tech news

Blumenkrantz "Massively Improves" Mesa's glReadPixels Performance With 7 Lines Of Code


Mike Blumenkrantz of Valve's open-source/Linux graphics driver team has submitted a merge request to 'massively' improve the OpenGL glReadPixels performance within the common Mesa state tracker.

Mike Blumenkrantz of Valve's open-source/Linux graphics driver team has submitted a merge request to "massively" improve the OpenGL glReadPixels performance within the common Mesa state tracker. Due to performance issues with a Steam Direct3D Windows game that embeds a number of video files and Proton in turn relying on GStreamer to play the video files, Blumenkrantz was exploring the perf profile and the overhead of all the memory copies from the pixel back buffer texture upload to glReadPixels memory copy download path as part of the video transcode pipeline. Blumenkrantz has made the glReadPixels operation much more efficient by using compute pixel buffer object (PBO) downloads.

Get the Android app

Or read this on Phoronix

Read more on:

Photo of Code

Code

Photo of lines

lines

Photo of Mesa

Mesa

Related news:

News photo

Visible deal alert! Get $20 OFF our #1 favorite wireless plan with this code

News photo

Spending 3 months investigating a 7-year old bug and fixing it in 1 line of code

News photo

Marek Olšák Lands Support In Mesa 24.2 To Vectorize IO In The GLSL Linker