DarkBASIC Professional Help Wiki
Advertisement

This command will allow the executable to become friendly Windows application.

Syntax
SYNC SLEEP Flag Processor Friendly
Parameters
Flag Processor Friendly

Integer
This value is an integer number such as 1.

Returns

This command does not return a value.

Description

Setting a flag of one will force a Sleep(1) command within the windows message pump.

Example Code
SYNC ON

SYNC RATE 0

DO

PRINT "give half a second back to the operating system each cycle"

SYNC SLEEP 500

SYNC

LOOP
Advertisement