can you provide us with some hard facts on this? Like Rasmus
I had the same experience that a more consistent frame rate
is achieved using on enterframe rather then on exitframe.
the on exitframe event is executed after the screen update
while the enterframe command is executed at the beginning of
the frame, leaving your lingo the duration of the frame to
execute.
-----Oorspronkelijk bericht-----
Van: dirgames-l-bounces nuttybar.drama.uga.edu
[mailto:dirgames-l-bounces nuttybar.drama.uga.edu]Namens Alina S
Verzonden: vrijdag 31 maart 2006 11:05
Aan: Director - Shockwave - and Flash Game Production
Onderwerp: Re: [dirGames-L] Is Director the right choice for
time
sensitive game
--- Rasmus Keldorff <rasmus planet.dk> wrote:
> Next, make pretty damn sure that all your code executes
within the
> prepareFrame event time. The only code that should ever
go on the exitFrame
> event time, is "go to the frame". Many
Lingo jocks (including myself!) have
> scratched their heads over why framerate was wobbly
until they figured out
> that anything that is executed in the exitFrame event
actually *adds* to the
> frame duration.
Not true.
>From this point of view, "prepareFrame" or
"exitFrame" is the same thing:
anything executed *adds* to the frame duration.
As you already know,the order of frame events is
prepareFrame, enterFrame, and
exitFrame.
The best choice is to place your script "on
exitframe" because you can use two
consecutive phases without screen update.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection
around
http://mail.yahoo.com
_______________________________________________
dirGames-L mailing list - dirGames-L nuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
Met Vriendelijke Groeten
Johan Verhoeven
[Senior Creative]
silicoN imagE nv/sa
Burgstraat 15-17, 9000 Gent, België
Tel: +32 9 233 15 15, Fax: +32 9 233 16 16
Web: www.siliconimage.be, Mail: info siliconimage.be
The information transmitted is intended only for the person
or entity to which it is addressed and may contain
confidential and/or privileged material. Any review,
re-transmission, dissemination or other use of, or taking of
any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If
you receive this in error, please contact the sender and
delete the material from any computer.
_______________________________________________
dirGames-L mailing list - dirGames-L nuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
|