Exceedingly expensive glReadPixels operation on Mac
Posted by karelknoes on May 07, 2012; 2:57pm
URL: https://forum.jogamp.org/Exceedingly-expensive-glReadPixels-operation-on-Mac-tp3968736.html
On one particular MacBook Pro 6.1 (Geforce GT 330M, Mac OS X 10.6.8), the operation below takes about 0,02 milliseconds per pixel. For a 900 x 600 applet, that adds up to about 10 seconds. On another Mac and on several other pc's, this operation does however run smoothly.
gl.glReadPixels(0, 0, 1, 1, GL2.GL_DEPTH_COMPONENT, GL2.GL_FLOAT, pickingZBuffer);
I'm hoping it rings some bells. Any pointers that can help to avoid this problem are very much appreciated :).
EDIT: There are by the way no exceptions or log messages to indicate something is awry.