Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: dt1000 on April 14, 2015, 10:31:01 PM

Title: Need Help Optimizing for iPhone4
Post by: dt1000 on April 14, 2015, 10:31:01 PM
Hi, There!
I am in the final stages of publishing my app, and I have come to the arduous task of making it run nicely on the iPhone4.

In my game, I activate and deactivate a lot of objects with PlayMaker FSMs on them.

Unfortunately, after looking at the profiler, it seems that the majority of my frame rate hangs are caused by PlayMakerFSM.Awake gobbling up all the processor time when objects are activated (see the attached screenshot for a little more info).

Is there anything I can do to alleviate this?

Please tell me there is a setting I can change to magically fix things!
(Yes, I have already turned off the GUI stuff.)

Thanks in advance for your help.

Cheers,
Dan
Title: Re: Need Help Optimizing for iPhone4
Post by: jeanfabre on April 21, 2015, 02:54:08 AM
Hi,

 The first thing to check is what you are doing when an fsm is activated, it's likely that it's the actions used on the activation flow that are slow, and not the activation itself.

 typically, you could be using the "find GameObject" action or similar. Can you profile further and spot what actions is taking the most perfs during that awake frame?

 Bye,

 Jean