----- Original Message -----
From: "Alina S" <alina_serbanescu yahoo.com>
> You're talking about locked tempo,but as I said before
is approx. the same
> thing (I have great teachers).
> Director will not enter the frame until the script from
the prepareFrame
> phase
> is not executed.
> Meaning that any code in the prepareFrame actually
slows performance.
Are we talking about the same thing here?
Whilst its common sense that any code you add into any of
the handlers are
going to take time to call, that is not the point.
The point is if you are not taxing Directors playback engine
and its idling
for say 20 ms a frame to maintain a tempo setting, that is
time that could
be used to execute your code. That is put your code in the
enterframe
handler as it is after this that Director checks if it needs
to idle or not.
If you put the same code into the exit frame, then director
will idle for 20
ms before calling the exit frame code completely wasting 20
ms worth of
time.
preapreframe
enterframe
idle - director waits until the time needed for the tempo is
reached
exitframe
updatestage
Noisecrime 2006
_______________________________________________
dirGames-L mailing list - dirGames-L nuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
|