This command will set the screen display mode if it is available on the current graphics card. If this command fails, it will only generate a runtime warning in the CLI. A final EXE produced with this command will not cause your program to fail on machines that do not support the resolution. It is recommended, however, that you check the availability of the display mode before using this command. You can use the CHECK DISPLAY MODE() command to see whether the display mode is supported. It is vital to know that when this command is called, everything is deleted, including music and sound, so you must re-load all your assets after a call to this command. An additional property to force VSYNC on or off (cap to 60fps or not). Using SYNC RATE is something of a hack when compared to this new feature which creates a perfect VSYNC between the render and the monitor. The downside is that the VSYNC is fixed to the refresh of the monitor. Be aware that if the rendering area is stretched (usually via window desktop and window fullscreen modes), then it will not be a true framerate returned by 'screen fps()'. 8-Bit screen resolutions are not supported.
SET DISPLAY MODE
Fri, 03/07/2008 - 11:47
Syntax:
SET DISPLAY MODE Width, Height, Depth
SET DISPLAY MODE Width, Height, Depth, VSync Mode