Author Topic: CTRL makes program run quicker !?  (Read 1028 times)

MrTAToad

  • Guest
CTRL makes program run quicker !?
« on: 2010-Aug-24 »
With this test program, I found that if you hold down the control button, it appears that the main loop executes quicker... :blink:

Code: (glbasic) [Select]
GLOBAL a%,b%,c%

AUTOPAUSE TRUE

a%=0
b%=0
c%=0

WHILE TRUE
PRINT "MAIN LOOP:"+a%+" ON_PAUSE:"+b%+" ON_RESUME:"+c%,0,0
SHOWSCREEN
HIBERNATE
INC a%
WEND

SUB GLB_ON_PAUSE:
INC b%
ENDSUB

SUB GLB_ON_RESUME:
INC c%
ENDSUB

Hold down CTRL and watch the Main Loop counter increase at a quite astounding rate...

MrTAToad

  • Guest
Re: CTRL makes program run quicker !?
« Reply #1 on: 2010-Aug-24 »
Good point there...