- Home /
Particle system uses a lot of memory.
I use many particle system objects in my game.
When I profile my game, every particle system object use over 30KB memory.
I think that particle system use a lot of memory for mobile platform.
I am not sure whether I use particle system right.
Answer by Xepherys · Aug 31, 2017 at 03:29 PM
Are your particle systems running when they are not visible? You can use a Raycast from your camera to enable them only when they're visible. Coupled with prewarm, this can work quite well. Honestly, 30KB isn't really very much, though. I understand the constraints for mobile, but that's why sometimes you need to get creative with particle systems.
Don't set the to Play on Awake, have them enabled when the raycast from the camera hits a box larger than them (so they're already running when the camera actually shows them), use prewarm so they appear as if they've always been running (if you want that effect).
Thanks for tips. I would try to follow your guide. Have a nice day!
Answer by TheSOULDev · Aug 31, 2017 at 02:18 PM
Do you really think 30KB is a lot of memory? A single GameObject takes 0.5-5KB of memory.
Answer by richardkettlewell · Sep 08, 2017 at 09:16 PM
Memory usage is much better for particles since 5.6.