【发布时间】:2016-12-01 03:49:49
【问题描述】:
我想使用 PBO(适用于 Android 4.3+)来提高 glReadPixels() 性能,因为我的测试设备中的每一帧 glReadPixels 大约需要 30~50ms(1280*960)。但我不能直接在 Java 中使用 glReadPixels ,因为最后一个参数不能为零或“null”。我也尝试使用 here 中提到的 ndk。但是最后一个参数必须是 (void*) 在我的 ndk 的 GLES3/gl3.h 中。所以问题是如何使用 glReadPixels 使 PBO 工作?这是提高性能的正确解决方案吗?
【问题讨论】:
标签: android glreadpixels opengl-es-3.0 pbo