2D Toolkit Forum

2D Toolkit => Support => Topic started by: Martin on October 10, 2013, 06:26:55 pm

Title: Profiler spikes for tk2dCamera.OnPreCull()
Post by: Martin on October 10, 2013, 06:26:55 pm

I have spikes of activity for  tk2dCamera.OnPreCull() in the profiler, what might cause this?

(http://i.imgur.com/sg3slUg.png)
Title: Re: Profiler spikes for tk2dCamera.OnPreCull()
Post by: unikronsoftware on October 10, 2013, 09:47:14 pm
That is likely hiding a GC.Collect somewhere.
That function is "expensive" in the editor, but shouldn' be anywhere near that bad. Its an editor only function (Editor__GetGameViewSize) as well, so it can't possibly cause any issues at runtime.
Title: Re: Profiler spikes for tk2dCamera.OnPreCull()
Post by: Martin on October 11, 2013, 01:54:42 pm
Thanks, that clears it up. It's peace of mind to know I can ignore this one while profiling :)