2D Toolkit Forum

2D Toolkit => Support => Topic started by: Ricky on June 25, 2016, 05:00:17 am

Title: Camera causing GC calls?
Post by: Ricky on June 25, 2016, 05:00:17 am
I loaded up an empty project and just put a camera in it and ran the profiler and keep getting these GC spikes in the profiler. The culprit seems to be in tk2dCamera.OnPreCull(); Can you please check this out? I'm using Unity 5.3.5f1 if that helps.
Title: Re: Camera causing GC calls?
Post by: unikronsoftware on June 27, 2016, 10:50:39 pm
I'm guessing that's in the editor? That's correct, it uses reflection to get to some undocumented things in the editor, but these don't exist in the runtime version.