Kurt Griffin wrote:
> 
> > Is there any way to test the users processor and OS with lingo and not an Xtra
> 
> ... I
> think it was James Newton that posted an answer to that within the last few
> days. The essence was, start a timer, run a processor intensive operation,
> check the timer - really a much better approach than trusting in a processor
> version, since there are many other variables than can slow down the
> processing of your stuff.



Also, if what you're testing for involves animation, your test routine
should include some number of updateStage and/or other drawing commands.
Video card performance is likely to be the gating factor for animation
on most machines.



on updatespeedtest
  set the timer to 0
  repeat with x = 1 to 100
    updateStage()
    go the frame
  end repeat
  foo = the timer
  return foo
end

I used this recently to decide how many steps it would take to slide a
menu onto the screen, I wanted it to take about the same amount of time
regardless of the speed of the machine but be as smooth as the machine
would allow so I took updatespeedtest()  and multiplied it by an
appropriate number and moved the menu that many pixels per updateStage



-- 
Carl West    [EMAIL PROTECTED]
617.262.8830 x246    
--------------------
To gain face, give it
To lose face, try to save it 
Or take it away 
                   - F. Eysenkopf

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to