FANDOM



This command will perform a regular SYNC command, and will skip processing a mandatory check for windows messages.

Syntax
FASTSYNC
Parameters
No parameters
Returns

This command does not return a value.

Description

You can use this command to squeeze a few extra clock cycles out of your main loop and make your applications faster.

When a DarkBASIC Pro program is running under MS Windows, the operating system will share the processing power with other programs running on the system. In today's modern systems, this is done very quickly (in billionths of a second). By replacing a SYNC statement with a FASTSYNC statement, this checking of other programs is ignored during screen updating, helping your program run just that fraction faster. It can make an observable difference if you have an older system and lots of screen updating to do.

Example Code
SYNC ON

DO

PRINT "hello"

FASTSYNC

LOOP
Community content is available under CC-BY-SA unless otherwise noted.