Vertical Sync

Is there any setting in Panda3d to force vertical sync in your program? When I turn fast in my program, sometimes the image tears horizontally.

Sort of. The Panda setting is “sync-video 1”.

The problem is that vertical sync is ultimately up to the driver, which can choose to ignore Panda’s request (and many do). Panda tries to work around this by explicitly waiting for a vertical sync indication, but this is error-prone and sometimes results in missing multiple frames.

The best way to force vertical sync is to enable it in the driver. Most drivers have a control panel that allows you to turn this on or off.

If the driver lacks a control panel option for vertical sync, you can also try switching between DirectX and OpenGL–I’ve found that sometimes one interface handles vertical sync properly while the other one doesn’t.