Stencyl Lag

Zersixs

  • Posts: 14
Hey, Started on a project based on Zombie assault 2... Made an Zombie that follow's my player and all that stuff... Now when i add 10 zombies into the same scene it starts to lag. When i got 100 Zombies in the same scene everything lags up alot...


Sas Zombie Assault 2 had over 100 Zombies on a screen without any lag. Fix this now please, Thanks ! >:(

« Last Edit: April 25, 2012, 06:49:08 pm by Ceric »

rob1221

  • *
  • Posts: 9472
Are the zombies set to "make always active"?  If so, there will definitely be some lag if they're all trying to follow the player.

Zersixs

  • Posts: 14
I think i fixed it a little, i saw i had my bullet's set to live when outside of screen wich is very bad.
40 % of lag is gone now, im also chaning the gameplay so it wont be so many zombies. Thank's for helping anyway  :)

Xietao

  • Posts: 725
Try it creating actors.
Free Time:
Monday, Wednesday, Friday: 13h
Tuesday, Thursday, Saturday, Sunday: 7h
Loving Linux...