Is it Better to Have More Actors or More Rules?
millerbrother1
Member Posts: 108
If given the choice, which is better for the performance of a game on the iPhone/iPod?
More Actors with specific rules for each level added into their behavior or fewer "one-for-all" actors with more logic built in to adapt them to each level based on a level Attribute that locks/unlocks these specific rules?
More Actors with specific rules for each level added into their behavior or fewer "one-for-all" actors with more logic built in to adapt them to each level based on a level Attribute that locks/unlocks these specific rules?
Comments
For example if level 27 is selected they behave like that. So this way more rules, less actors, less scenes..
I have to say this gives better performance... A lot..
And it decreases the overall project size too..
But you should keep that in mind: Actors shouldn't have so much timers and constrains when adapting to "less actor" way. If yours have, I think you should go with more actors, less rules..
If not, spend the time and make it less actors, more rules. In my opinion it does worth it..