Hi,
When using OpenGL to rendering surrounding view, we use glReadPixels to read image pixels from frame buffer to memory:
The total pixels of image reading is 120*40 pixels, and the image format is BGRA.
Normally gReadPixels takes around 0.397ms to finish reading 120*40 pixels, as showing in red box below:
However, gReadPixels sometimes takes more than 100ms to finish, and it severely causes 3-frame lag in our 30-fps surrounding view rendering.
Why does glReadPixel sometimes take such unusual longer time (> 100ms) to read 140*40 pixels?
Regards
Mark Kang.