AS3 Timers vs. ENTER_FRAME performance

后端 未结 4 1970
有刺的猬
有刺的猬 2021-02-01 09:56

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

4条回答
  •  旧时难觅i
    2021-02-01 10:19

    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

提交回复
热议问题