(Formerly known as system.vsync, which is now obsolete)
static bool System.VSync;
Gets/sets whether AGS waits for the vertical retrace before rendering each frame.
This is off by default.
If you switch this on, it can help to reduce the "tearing" effect that you can
get when the screen scrolls. However, doing so will lock the game frame rate to
the monitor's refresh rate, which will mean you cannot reliably set a game speed higher
than 60 fps.
NOTE: This property has no effect with the Direct3D driver.
Example:
if (System.VSync) {
Display("Vertical retrace sync is enabled!");
}
will display a message if vsync is on
|