Wait for vsync

Is it possible to say to a Xith3d application in fullscreen mode to wait for the vsync before it swaps hw screens?

My app has waited for vsync on a (Nvidia) Detonator, but with (Ati) Catalyst it doesn’t. I’ve set the OpenGL caps in the Cataylst config box to “do always wait for vsync” but can’t see any difference.

I’ve to add that next to Xith3d’s Canvas3d there are some Swing components (even in fullscreen mode). Does this hinder hardware buffer flipping (with Vsync) ?

However, when I press a F-key all the swing components are hidden so that the Canvas3d covers the entire (full) screen. So the hidden Swing components don’t hinder anymore? Anyway, still the (hardware?) buffer flipping isn’t synched to the vsync: you see the tearing effect of large vertical polygons… (shouldn’t be there: the camera’s animation is about 50 fps and the monitor refresh is 85 Hz.)

How could I wait for the vsync with a Xith-Jogl Canvas3D?

Waiting for VSync should be done automatically by video card driver - in most cases this is the option in driver settings. It works well for NVidia, and when we tested this with ATI it also worked fine.

Xith3D has no special mechanism to control VSync because of this functionality was not exposed in prev. version of JOGL. Currently there are some changes in JOGL that allow to control swap buffer, but, again, functionalituy to control VSync is not exposed (AFAIK, maybe I am wrong).

Yuri

[quote]Waiting for VSync should be done automatically by video card driver - in most cases this is the option in driver settings. It works well for NVidia, and when we tested this with ATI it also worked fine.

Xith3D has no special mechanism to control VSync because of this functionality was not exposed in prev. version of JOGL. Currently there are some changes in JOGL that allow to control swap buffer, but, again, functionalituy to control VSync is not exposed (AFAIK, maybe I am wrong).

Yuri
[/quote]
Thanks Yuri. Finally with a new Ati driver and changing the standard setting of its OpenGL config, I’ve managed to get a “wait for vsync” in fullscreen mode and with hidden Swing element laying next to Jogl Canvas3d of my Xith app. That’s great.
As soon as there are a few Swing elements sitting next to the Canvas3D (in fullscreen) the Vsync wait is disabled (automatically), but I guess this is normal behaviour and no problem.