Hello Guest

Author Topic: Profiler spikes for tk2dCamera.OnPreCull()  (Read 4614 times)

Martin

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 17
    • View Profile
Profiler spikes for tk2dCamera.OnPreCull()
« on: October 10, 2013, 06:26:55 pm »

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


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Profiler spikes for tk2dCamera.OnPreCull()
« Reply #1 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.

Martin

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Profiler spikes for tk2dCamera.OnPreCull()
« Reply #2 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 :)