Game slows down!!

Non-platform specific questions.

Game slows down!!

Postby TGKG » Sat Dec 24, 2011 5:01 pm

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?
TGKG
 
Posts: 23
Joined: Tue Nov 15, 2011 3:20 am
Score: 0 Give a positive score

Re: Game slows down!!

Postby schnellboot » Sat Dec 24, 2011 5:13 pm

its normal lag because u have to many actors on the screen
try destroying then when not visible anymore
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Game slows down!!

Postby Hblade » Sat Dec 24, 2011 5:20 pm

Outside of Vision - Destroy Actor(Event Actor)

Also, the exported version after that code shouln't lag.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Game slows down!!

Postby Game A Gogo » Sat Dec 24, 2011 6:12 pm

Also remove collision checking by setting CollisionState to disabled on actors that needs not to check for collision
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Game slows down!!

Postby TGKG » Wed Dec 28, 2011 3:05 pm

Thank you to all.
I will start a new post regarding the problem I am having destroying actors.
TGKG
 
Posts: 23
Joined: Tue Nov 15, 2011 3:20 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest