Hello Jun,
After having a deeper look at your program I noticed a mistake in the execution. I'm no expert in writing 3D apps but here's the issue.
With the current implementation of your program you are creating 3 FBO (frame buffer objects), one for each triangle for every frame. The problem is that this is a gpu consuming operation that should be done before the rendering and only once.
Find attached the modified app that will create the same 3 triangles using 1 FBO and initialized only once.
Hello Jun,
After having a deeper look at your program I noticed a mistake in the execution. I'm no expert in writing 3D apps but here's the issue.
With the current implementation of your program you are creating 3 FBO (frame buffer objects), one for each triangle for every frame. The problem is that this is a gpu consuming operation that should be done before the rendering and only once.
Find attached the modified app that will create the same 3 triangles using 1 FBO and initialized only once.
Rogelio