Alex Rivera | Logout

AS3 Timers vs. ENTER_FRAME performance

Asked 2009-07-09T09:38:58.897
11

I'm building a game that got some moving things all the time, so I'm using a lot of Timer instances to control repetition and trigger motion.

Now the thing is that I started to notice some performance "lags". Is this due to the timers? and do you suggest using ENTER_FRAME event instead?

Related: Do you suggest any other library/method for such games that could enhance performance? Simple Tween libraries are not enough per se.

Edit
Report

1 Answer

1

if you aren't using a tween library yet i would look at tweenlite or tweenmax. it includes a delayed called timer as well as grouping tweens together. it has great performance and is simple to use.

take a look here at the performance tests

http://blog.greensock.com/tweening-speed-test/

Josh

answered 2009-07-09T09:42:58.593

Your Answer