Hello Guest

Author Topic: Slowness of Duplicated Animated Sprite  (Read 3458 times)

kenshin

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 25
    • View Profile
Slowness of Duplicated Animated Sprite
« on: May 30, 2013, 12:10:20 pm »
Hi,

I have made an animated sprite(including 6 child object with 1 collider for each child ), then run and my fps result is nearly 200. Then I have duplicated that animated sprite 15 times and run. result is 3 fps.
I have spread(distributed) that 15 sprite over screen then run it was 80 fps. OPS !

is it ok or a problem ?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Slowness of Duplicated Animated Sprite
« Reply #1 on: May 30, 2013, 12:16:43 pm »
Drawing sprites on top of one another will kill performance - sprites are transparent, so they just keep drawing on top of each other. Moving them apart so there is no overdraw will massively increase performance.