Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: steamrollerstudios on September 11, 2013, 07:42:30 AM

Title: GC Alloc
Post by: steamrollerstudios on September 11, 2013, 07:42:30 AM
From what i can tell, Playmaker is the source for the vast majority of the GC Allocations. I've tracked it down, to the best of my ability, to FsmLog.LogTransition. I have logging turned off but this still seems to show up in the profiler.

A typical frame has about 400-500 calls and is allocating about 80-100kb. I'm not entirely sure if this is a lot. But garbage collecting a megabyte per second seems like a lot.
Title: Re: GC Alloc
Post by: jeanfabre on September 11, 2013, 08:24:30 AM
Hi,

 Have you also profiled in your published game? This may simply not be there at all when you publish.

 Try to run without any PlayMaker editor windows open. I usually have a special Unity layout with just the Game view and the console. Not even the Unity inspector.

also, have you checked off all debugging flags in the preferences to turn off ( "Enable Logging" and "Enable workFlow"

Bye,

 Jean
Title: Re: GC Alloc
Post by: Alex Chouls on September 11, 2013, 09:35:19 AM
It's important to profile with standalone builds. There is extra logging overhead in the editor.

Here's another thread on GC:
http://hutonggames.com/playmakerforum/index.php?topic=4863.msg22859#msg22859