General rules for the best performance practices
JB makin' a game
Member, BASIC Posts: 39
All around these forums and tutorials people offer an "easy way" and a more complicated way for better performance. I was wondering if there are some general rules that can be applied in various situations for the best performance.
For instance, I've read multiple examples of people saying:
The easy way is Change Scene + some behavior/attributes, but the best way is [insert lots of rules/behavior/attributes here].
Fine by me, but I can't figure out why performance is better that way. If you could help me with some golden rules to follow at all times, it'd be great. However, a very specific rule to follow about just one part of the game, is also very welcome!
Comments
I know you're asking for a general list of recommended practices but at least as far as your specific question goes:
If you're changing a scene, the only way is the easy way unless there's more you haven't included in your example.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
There are two main things that decrease performance. Images and code.
I know that sounds vague, but it really comes down to that. The more high resolution images that GameSalad has to load, the worse the performance is going to be. But even more so is code.
If you have a ton of objects flying around onscreen at once, each with enough advanced AI in them to run for congress, that's going to slow down performance in a major way.
Now I don't know too many ways to mitigate this issue aside from simplifying your ideas, but here are a few things I do to help myself.
I'm still struggling with the performance issue myself in my upcoming game, so I'm learning as I go. But hopefully those things will help you. I'll be using all of them in this next game. Good luck to you JB.
What game ya working on?