Been told its an old topic but cant find an answer

The old topic question is this: what is the default operation of jogl’s Animator in this regard:

  1. simple double buffering
  2. page flipping
  3. other?

Sorry to bother you folks, but I honestly can’t find the answer to this :frowning:

I’m feeling talkative today for some reason so I am going to attempt to answer this even though I could be wrong. My understanding of JOGL’s Animator class is that it’s simply a convience class that takes over some of the tasks that C programmers might use GLUT for. It’s really more complicated than that, but essentially when you give the Animator your GLCanvas/Panel, you are giving it the power to call display(GLDrawable) as fast as it can. Double buffering in OpenGL is the default mode whether you use JOGL’s Animator or create your own. The same is true for page flipping, etc. These parameters are set independently of the Animator class. You may find that Animator might flicker if you are drawing a lot of vertices. This might be because it didn’t finish drawing to the off screen buffer before its turn came (remember it is refreshing as fast as the system will let it). You can constrain OpenGL to wait until drawin g is complete before it brings the next page up to solve this (its in the Red Book). Regards! And people take it easy on me if I’m way off base, lol.

Thank you sir. I’ll look into figuring out how to set it to page flipping then, since that is surely the best mode for it to be in.