Login  Register

Re: Resize problem

Posted by runiter on Jun 16, 2015; 1:53pm
URL: https://forum.jogamp.org/Resize-problem-tp4034612p4034712.html

gouessej wrote
You can disable the double buffering. In my humble opinion, you should make it work without interfering with the rendering
Thanks. Instead of disabling double buffering I'm gonna try rendering 3 frames after the scene stopped changing. That should fix it.

gouessej wrote
Rendering anew only when it is necessary can help to decrease the energy consumption but it is tricky to implement just right. I don't advise you to do so except for often modified very large meshes. I'm not sure it's worth the efforts in the general case.
We have no choice because otherwise the CPU usage becomes 100% which results in overheating CPU which results in the CPU fan always running fast which is noisy and annoys users.

gouessej wrote
Render even when the scene isn't moving. Then, when it works, you should test with other canvases too in order to ensure that the problem comes from your own code rather than mine.
I tried rendering the scene continuously this and NEWT still not working reliably. Sometimes it works, sometimes it doesn't.

Would you like to take a look at our code? It's opensource here:

https://github.com/concord-consortium/energy3d
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D