List Info

Thread: enterframe/exitframe WAS Is Director the right choice for time




enterframe/exitframe WAS Is Director the right choice for time
user name
2006-03-31 09:32:32
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-bouncesnuttybar.drama.uga.edu
[mailto:dirgames-l-bouncesnuttybar.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 <rasmusplanet.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-Lnuttybar.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: infosiliconimage.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-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
enterframe/exitframe WAS Is Director the right choice for time
user name
2006-03-31 13:39:24
Here's a test routine, try it as a movie script in a 30 fps
movie:

global useenterframe,oldms

on startmovie
   useenterframe = false
   oldms = 0
end

on exitframe
   if not useenterframe then
     somethingtimeconsuming
   end if
   go the frame
end

on enterframe
   if useenterframe then
     somethingtimeconsuming
   end if
   useenterframe = the shiftdown
end

on somethingtimeconsuming
   ms = the milliseconds
   repeat while the milliseconds - ms < 16
   end repeat
   put ms-oldms
   oldms = ms
end

What you'll should see is that the exitframe version (when
you're not 
pressing the shift key) runs slower.

_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
enterframe/exitframe
user name
2006-03-31 13:32:23
--- Johan Verhoeven  wrote:

> 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.


I was talking about "prepareFrame v.s.
exitFrame". As I said before: the same results.
On enterFrame works completely different, because in this
phase the playhead enters the frame.
In case of large 3d worlds (many polys), if you put the
script in this phase you'll get the
highest frame rate.
But you have to pay the price for that: in certain
conditions you'll get visual artifacts and
other errors.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 
_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )