x


Before updating to Windows 10 you may need to return your Pro license. More information here

[Closed] Above what overhead profiler percentage should I start worrying about it?

Hi,

Following the question on what Overhead stands for

I would like to know how then to read this value and when to start worrying about it and take actions.

For example,

I have a simple board game with 30 pieces to move around, my overhead if 5%, is that ok? This is the second item in my list coming up after the rendering that takes around 91%.

I have a full physics excavator simulation running 100 times more scripts, full GUI etc etc, and the overhead is only 0.4%. after render, physics and gui entries.

So I am a bit confused on how to read and analyze my scenes and where improvement can be made based on the overhead entry of the profiler.

Thanks for your insight!

Jean

more ▼

asked Dec 27, 2010 at 01:41 PM

avatar image

Jean Fabre
4k 191 165 255

(comments are locked)
10|3000 characters needed characters left

The question has been closed Jul 22 at 11:59 AM by meat5000 for the following reason:

The question is answered, right answer was accepted


4 answers: sort voted first

Since this has come to the front page again.

Overhead represents time lost I the actual profiling process itself. There is little you can do to remove it. It will not be present in an actual build without the profiler.

Worry about the absolute time for all the other steps. If overhead is at 90% it means that profiling is using most of your time. Normally this means the rest of your game is running pretty well.

more ▼

answered Nov 25, 2014 at 06:57 PM

avatar image

BoredMormon
23.5k 7 24 130

I was wondering why my game runs good without profiler on. Cheers

Jul 22 at 11:42 AM levoTNTO
(comments are locked)
10|3000 characters needed characters left

I may be very wrong on this but overhead seems to be inversely proportional to the complexity of a scene.

So, an almost empty scene should by all means have an overhead in the xx.xx range since you're having call overhead while rendering and computing basically nothing else and thus allocating very little.

A complex scene should see the overhead drop to x.xx because of a larger allocation for actual tasks and assets.

Overhead becomes increasingly important when your game is actually sluggish on your target specs. This is when I start to really optimize my code since less overhead impacts frame-rate heavily in this situation.

I don't think there is an actual overhead percentage that you should strive for. Just try to get it as low as possible.

Please vote this down and post another answer if I'm wrong, since I'm interested in this as well.

more ▼

answered Dec 27, 2010 at 02:25 PM

avatar image

azzogat
1k 1 6 26

Very interesting azzogat, not marking it down to let others express themselves, but will do if it's quiet :) I also realize after doing more tests that the percentage might be also related to the framerate, that is with a very low framerate, the overhead is smaller than with a high framerate which was the case with my two examples, board game, very high fps, very high overhead, excavator big project, normal framerate, low overhead. It actually start to make some sense:)

Dec 28, 2010 at 07:35 AM Jean Fabre
(comments are locked)
10|3000 characters needed characters left

Close your scene window while profiling your game. An open scene window seems to generate a lot of overhead.

more ▼

answered Jan 03, 2013 at 10:21 PM

avatar image

TheCheese
133 12 11 14

(comments are locked)
10|3000 characters needed characters left
 public class SetTargetFrameRate : MonoBehaviour {

     void Awake () {
     
         Application.targetFrameRate = 60; // webplayer /PC/Linux /et cetera.
     //    Application.targetFrameRate = 30; // androidish / iOS, w/ev's;
     }
 }

//This helps somewhat. advising the app what you are aiming for.

//It would be trivial to conditionally include those calls based on build type.

more ▼

answered Nov 25, 2014 at 05:47 PM

avatar image

twobob
111 1 3 9

(comments are locked)
10|3000 characters needed characters left

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x368
x38

asked: Dec 27, 2010 at 01:41 PM

Seen: 4539 times

Last Updated: Jul 22 at 11:42 AM