I want to create a little animation that should be shown with real 120 Hz onto one of the new 120 Hz screens. In order to avoid artifacts while displaying the screen I have turned on vsync, but Panda3d only uses the framerate 60 Hz although the display and driver are configured correctly. Does Panda3d support 120 Hz technology and how should I activate it?
By default, Panda3D has video synchronisation enabled, this means that Panda3D won’t render faster than your monitor’s refresh rate (usually around 60 Hz).
You should try disabling video synchronisation by setting this configuration variable (in the Panda3D/etc/Config.prc directory on your system):
I don’t think this is what the OP is asking for. He wants Panda to sync to video rate, which should be 120 fps.
Assuming the driver does indeed support 120fps video rate, then Panda can render at that rate, as long as your frame time is no longer than 1/120 s. It certainly ought to be with nothing in the scene.
There’s nothing in Panda that knows anything about 60fps or any other hardcoded rate; if I set my display to 72fps it happily syncs at 72fps. I can’t set my display faster than that, of course, but if I could Panda would sync to it.
If Panda’s still syncing at 60fps, it means that either (a) your frame time is longer that 1/120s, or (b) your driver does not allow applications to sync at faster than 60fps. You can test (a) by examining the frame time in PStats.
Note that you shouldn’t be mucking with the global clock settings in order to guarantee video sync.