2
\$\begingroup\$

Unity Profiler

I'm a little confused about this column shown in the picture above.

When it shows 0.22 does it mean "22 miliseconds" or does it mean a fraction of a milisecond (i.e. in this case, around 1/5 of a milisecond) ?

\$\endgroup\$
3
\$\begingroup\$

The time is the time taken, during a single frame, in milliseconds. 0.22 ms is 220 microseconds. For reference, if you want 60 frames per second, you cannot spend more than 1000/60 = 16.67 ms per frame.

You can click on the graph above to select a specific frame, which is useful to see what happens if you have some lag "spikes", for example when a new player joins the game, or you transition between different screens.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ @Peter Thanks, that was a very detailed answer! (my apologies for taking so long to mark as "accepted", I had forgotten about it and I don't log in frequently!) \$\endgroup\$ – AnotherUser Mar 17 '18 at 18:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.