try this
this will only use what it needs leaving the processor to be available..
gTimer = createTimer(50) while keyhit(1)<>1 waittimer gTimer DoUpdates() Updateworld() ; if you need this! wend
this will only use what it needs leaving the processor to be available..