[futurebasic] Re: [FB] FB: slow HANDLEEVENTS

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2000 : Group Archive : Group : All Groups

From: ted <ted@...>
Date: Wed, 03 May 2000 12:21:31 -0400
on 3/5/2000 10:14 AM, ted at ted@... wrote:

> Try the following:
> 
> WINDOW 1
> DIM startt$, stopt$, a
> 
> startt$ = TIME$
> 
> FOR a = 1 TO 1000
> HANDLEEVENTS
> NEXT
> 
> stopt$ = TIME$
> 
> PRINT startt$
> PRINT stopt$
> INPUT a
> END
> 
> in both FBII and FB^3.
> 
> On my beige G3, it takes 1 second in FBII and between 15 and 30 seconds in
> FB^3. Am I doing something really goofy, or what?

Is it OK to reply to one's own email?

Actually, if you add:

gFBEvtWneTicks&  = 0

she speeds up something wonderful...

It seems that gFBEvtWneTicks& defaults to 2; with that value, the
Handleevents thing gives the system back to the Mac, and tells it to return
control to FB^3 after 2 ticks, which is somewhere between 16 and 33 mS.
During this time, your program's dead in the water. Making it 0 lets the OS
do whatever it needs to do, and then returns the horsepower immediately.

Doesn't it?
-- 
Ted Spencer; ted@...
LATEC Instruments Inc.; R&D Shop
5507 Irish Drive
Appin, Ontario, Canada, N0L 1A0
519 289 5900 FAX 519 289 5717
--
In matters of grave importance style, not sincerity, is the vital thing.
(Oscar Wilde)