cats-oss / android-gpuimage

Android filters based on OpenGL (idea from GPUImage for iOS)
8.98k stars 2.26k forks source link

Why does GLTextureView's render thread is not constructed on handler thread #540

Open Neilcc opened 2 years ago

Neilcc commented 2 years ago

Future Task

Why does GLTextureView's render thread is not constructed on handler thread

What is the motivation?

I'm trying use GLTextureView to render some custom shader. There is some 'shaking' effect when it render continuously. It seem's that the sync signal between GLTextureView and Android's vsync and renderthread do not work properly.

What kind of solution can be considered?

Could this be solved by add choreographer to GLTextureView's render thread, and sync every frame by choreographer's callback? Why does GLTextureView use thread directly other than handler thread in the first time ?

Please add relevant labels GLTextureView RenderThread HandlerThread