Help optimizing game performance!
anithmuk
Member Posts: 235
Basically, in any one scene I have 3 actors spawned, 6 destroyed, up to 4 timers and a bunch of constrain attributes. I know its better to start an actor off screen and then move it in when needed instead of spawning, I've also read on the forums thats its better to once again move an actor off screen when not using it instead of destroying it, however here http://gamesalad.com/wiki/faqs it says to destroy actors.
My main questions though is, are there less memory intensive ways to do things like, make an actor move back and forth (I do this using timers and have been told that timers slow the game down), I've also been told to minimize usage of constrain attributes but I need them for my teleporter actors-so is there any way around this?
I would appreciate any help as well as any general tips to improve performance/reducing loading times, thanks!
My main questions though is, are there less memory intensive ways to do things like, make an actor move back and forth (I do this using timers and have been told that timers slow the game down), I've also been told to minimize usage of constrain attributes but I need them for my teleporter actors-so is there any way around this?
I would appreciate any help as well as any general tips to improve performance/reducing loading times, thanks!
Comments
1. Can you use less timers? For example could you use a timer to set an attribute to true from false or 1 from zero and then have that attribute change trigger other actors rather than putting timers on each of them.
2. Check all non-moving actors and make sure you have moveable unchecked in Physics
3. Check all invisible or perminately off screen actors and uncheck visible in physics
4. Can your moving actors back and forth be achieved by knowing when they arrive at certain X and Y points and using that to trigger the next action?
Darren.
___________________________________________________________________________________________
GS Project Merger Merge 2 or more projects at the touch of a button.
GS Project Resizer iPhone to iPad to Mac store and visa versa.
Platform Template Our most popular template with over 90 sales.
Mega Pack 31 Templates Amazing value with 31 fantastic templates.
Shoot Em Up Template Over 30 moving enemies with 0 slow down.
Oh and Darren in the interest of full disclosure I hav finally run into an issue where spawning is killing me but I am spawning like 100 actors almost all in 1 shot. LOL so looks like I will be dropping 2nd gen devices. for this game.