I want to improve glReadPixels() performance using PBO(for Android 4.3+), As glReadPixels takes about 30~50ms(1280*960) for each frame in my test device.But I can't use glReadPixels directly in Java, since the last param cannot be zero or "null". I also try to use ndk as mentioned here. But the last param needs to be (void*) either in my ndk's GLES3/gl3.h. So the question is how can I use glReadPixels to make PBO work? Is this the right solution for better performance?
Asked
Active
Viewed 1,058 times
1 Answers
0
You will need to cast the last parameter from int to void* explicitly in your c++ codes.

Ziju Feng
- 327
- 1
- 4
- 13