List Info

Thread: Is Director the right choice for time sensitive game




Is Director the right choice for time sensitive game
user name
2006-03-31 09:14:29
----- Original Message ----- 
From: "Alina S" <alina_serbanescuyahoo.com>

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

No, sorry this is just not true at least in terms of
performance.
Exitframe is not called until after Director has eaten up
all the cycles to 
match your currently selected tempo (if its running faster
of course).

So if you put all your code in the exit frame and then set
the tempo to 60 
fps and each frame of the  movie only takes a fraction of
1/60 to complete, 
Director WILL NOT call the exit frame, until all of that
1/60th time is used 
up in idle-ing. Meaning that any code in the exitframe
actually slows 
performance.

Noisecrime 2006 


_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
[1]

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