Android OpenGL ES 3.0 PBO instead of glReadPixels()

不羁的心 提交于 2019-11-30 15:22:28

Mapping PBO buffer right after glReadPixels always kills performance. GPU is still working when you requested the mapping. Hence, glMapBufferRange waits gpu to complete reading pixels to the PBO. If you continue rendering after glReadPixels and will do the mapping after some frames then you will get performance gain.

More information here: http://www.songho.ca/opengl/gl_pbo.html Look "Mapping PBO" section.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!