Hi All,
I am developing a iOs game which performance is very important. I love PlayMaker and I developed my game majorly with PlayMaker. However, I found my game has some CPU spikes because of GC.Collect, and after doing some deep profiling, I found that PlayMaker contributes part of the GC alloc unfortunately.
I am wondering if anyone can help or suggest how to reduce or even eliminate those GC alloc by PlayMaker?
I setup 2 demo scene to show the problem.
1st demo (demo1_b.jpg):
A capsule game object holds 2 FSMs with some states and variables (also global variables). It allocated 110.9 kb and 69.3 kb respectively. This looks okay right? However, my game contains many Game Objects that hold FSM(s) and this is definitely a panic when you see GC allocated is over 1 ~ 2 MegaBytes on a iPhone game.
2nd demo (demo2.jpg):
A capsule game object holds 1 FSM with only 1 state and 0 variables. It still allocated 13.7kb.
I can provide the copy of this demo scene to Alex. Hope this can help a bit.
Thanks all!