playMaker

Author Topic: GC Alloc  (Read 2472 times)

steamrollerstudios

  • Playmaker Newbie
  • *
  • Posts: 5
GC Alloc
« 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: GC Alloc
« Reply #1 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
« Last Edit: September 13, 2013, 03:53:53 AM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: GC Alloc
« Reply #2 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