Login  Register

Re: V-SYNC causes choppy animations.

Posted by gouessej on Sep 06, 2013; 8:12am
URL: https://forum.jogamp.org/V-SYNC-causes-choppy-animations-tp4029992p4029994.html

Hi

It probably comes from your code but if you have a doubt, run the pre-beta version of TUER, enable the v-sync in the options and confirm that the animations aren't choppy. If you keep the OpenGL context current longer than required to perform some operations or if you perform useless costly context changes, it can cause some "choppiness". A typical loop iteration should follow these steps:
- update the timer(s)
- update the data model(s)
- render

Only the very last step requires a current OpenGL context. If you don't feel comfortable with that, use an high level solution, there are several 3D engines that support JOGL 2 including Ardor3D and JMonkeyEngine.

Be more precise about your graphics card.
Julien Gouesse | Personal blog | Website