Re: Simple example with NEWT but without animator
Posted by
gouessej on
Nov 12, 2013; 3:32pm
URL: https://forum.jogamp.org/Simple-example-with-NEWT-but-without-animator-tp4030571p4030603.html
elect wrote
The main reason why I want to avoid using an animator, is because I want to avoid useless rendering if nothing changes, I know that for this project is pretty useless, but I would like to have a solid layout for more complex projects.
It's doable with an animator, you can write your own one and add a flag to indicate whether it should really call display(). Animators are optional but I agree with Sven, they work out of the box. Don't use animators if and only if you really know what you're doing because you might waste a lot of time in some particular cases if it doesn't work as expected. I "wasted" about 2 months on several bugs in the JOGL 2.x renderer because of my choice of dropping animators in Ardor3D to comply with its own framework (FrameHandler, ...).