how to set "vertical synchronization"?

Hello,

I’m rendering a few custom gui component, and my fps is 72. 72 is my monitor refresh rate. If if set the “vertical synchronization” to disabled on the nvidia’s control panel, the fps is 170. How can i disable this from jogl (regarding if this setting is application defined in nvidia’s panel) ?

Thanks.

Use gl.setSwapInterval(0) to disable vsinc in the init function. Java doc for this function says that it’s not guaranteed an effect. Refer to its doc for more info. AK77

thanks…

Has any sense to use it? (to disable visual synchronization)

and what makes the -Dsun.java2d.noddraw=true VM options?

This command line option prevent the JVM fom using Direct Draw optimizations in swing components which can leads to driver crash if openGl and ddraw are mixed in the same java application. (At least it’s what I have understood…)

vsinc usage is in the jogl demos. check it out. - AK77

the method
gl.setSwapInterval(…)
is the “only” thing you can do and it works even on several ATIs (which are well known for a lousy OpenGL support).

What’s concerning the “-Dsun.java2d.noddraw=true” property please read the paragraph named “Platform Notes / Windows” (bottom part of the text) of the JOGL User’s Guide.