- Home /
Overhead performance spikes
I'm in the later stages of optimizing my game and I'm seeing spikes labeled as Overhead up to about 28ms which is clearly unacceptable.
What kind of recourse do I have for optimizing Overhead stuff? Is there anything I can do about this?
Thanks but those two articles discuss optimizing scripts and GPU stuff (which I have done) and don't mention Overhead at all.
Answer by Mortoc · Feb 11, 2012 at 01:58 AM
Are you using C# or Javascript? There are some language specific things to be aware of.
If your overhead spikes to at regular intervals, it's likely that you have lots of temporary objects being created per-frame and every once in a while the Garbage Collector is causing a slowdown trying to clean it all up. Here's an article on MSDN explaining the GC and performance issues.
I'm using C#. Also garbage collection is something I'm aware of but it should not be reported in Overhead. There is a separate report for GC.collect.
Your answer
Follow this Question
Related Questions
Windows Phone performance 0 Answers
Are there any performance differences between a timer and using Invoke? 1 Answer
Reasonable heap alloc. per second and total ? 0 Answers
Sprite Alpha Performance 0 Answers
How do I get my game to run faster? 4 Answers