Page 1 of 1

Game slows down!!

PostPosted: Sat Dec 24, 2011 5:01 pm
by TGKG
I have a shooter game where each mouse click creates a new Actor. After about 100 or so Actors are created and on the screen the game starts to slow down! What is happening? Is this a memory overflow problem?

Re: Game slows down!!

PostPosted: Sat Dec 24, 2011 5:13 pm
by schnellboot
its normal lag because u have to many actors on the screen
try destroying then when not visible anymore

Re: Game slows down!!

PostPosted: Sat Dec 24, 2011 5:20 pm
by Hblade
Outside of Vision - Destroy Actor(Event Actor)

Also, the exported version after that code shouln't lag.

Re: Game slows down!!

PostPosted: Sat Dec 24, 2011 6:12 pm
by Game A Gogo
Also remove collision checking by setting CollisionState to disabled on actors that needs not to check for collision

Re: Game slows down!!

PostPosted: Wed Dec 28, 2011 3:05 pm
by TGKG
Thank you to all.
I will start a new post regarding the problem I am having destroying actors.