Gazing for Advice on Improving GameSalad Performance
Hello Everyone π,
I've only recently joined this community and am in the process of creating my first game, a 2D platformer. Although I've made some significant progress, I'm beginning to see performance problems, particularly when using mobile devices.
I was hoping the more seasoned players in this forum could offer some guidance on how to make my game operate more smoothly.
The following details relate to my project and the problems I'm having:
Frame Rate decreases: In situations with a lot of action, I've noticed that there are noticeable frame rate decreases when there are numerous actors on screen.
Memory Usage: On devices with lower specs, my game seems to use a lot of memory, crashing the system. I have no idea how to properly profile and optimise memory use.
Actor Spawning: I believe that using a lot of actor spawning and destruction is a factor in the performance issues. Exist any best practices for acting managers to steer clear of this? ο»Ώπ€ο»Ώ
Graphics Optimisation: There are a lot of intricate sprites and backdrops in my game. What are the best ways to optimise visuals without making too many quality sacrifices? ο»Ώπ€ο»Ώ
Sound Management: I too experience occasional lag caused by sound effects. What is the best way to handle audio files such that they don't affect performance? π€
It would be really beneficial if you could give any advice, sources, or ideas. I would also be interested in knowing about any GameSalad plugins or specialized uipath tools that are very helpful for performance optimization.
Thank you π in advance.π
Comments
I need to find our old tips thread / internal tips documents but here's some things:
Hope those tips help.
Helpful guide for powers of 2 starting at 32:
32, 64, 128, 256, 512, 1024, 2048, 4096
Would love to see what you're building @jessyyywilliam
Frame Rate decreases and Memory spikes: Reduce spawning, remove physics (self.moveable) and use interpolate increase particle use. I've done some special effects at high speed without slowdown using this Pay attention to audio/soundfx usage here. Use .ogg as much as possible, and also check to see if sounds are being played twice or more on collisions. Uncheck run to completion if the sound does not need to be used until the end.
Controller actors: This takes a bit of planning but definitely helps- having various actors that perform specific functions instead of tons of code in one actor.
Timers: If it's a repeated action, try using the loop behavior instead. It's faster and more accurate.
Tables: Tables are your friend. Store inventory, game states, image references, sound references etc.
I'll fill out some more as I have more time
GameSalad Templates and Custom Development at the Official Marketplace: http://gshelper.com