Profiling CPU Usage.

Started by Gentz, July 20, 2016, 08:54:21 PM

Previous topic - Next topic

Gentz

Currently my upcoming mod simply kills your fps. How does one profile the CPU usage to determine which part of the code is consuming the most CPU?
The great one is back.

Sincerely,
    -Gentz

1000101

By running the game in a profiler and compiling with the proper settings.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

Gentz

#2
To my knowledge you'd need the unity profiler window to profile a unity game?
The great one is back.

Sincerely,
    -Gentz

1000101

That sounds reasonable but I really don't know and haven't tried.  I can only give you general answers as far as mono/unity is concerned.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

SURU

I can ask about the same. Can you give tips/instructions for use Unity Profiler Window? From basics like download Unity :D
CraPC: AMD Phenom X3 8750 | Club 3D Radeon 7770 | Gigabyte GA-MA770-DS3 | 4GB RAM DDR2 2x2GB Kingston
Don't go this way!

RawCode

ever release versions of game have profiler hooks inside.

Gentz

#6
Quote from: SURU on July 21, 2016, 04:52:53 AM
I can ask about the same. Can you give tips/instructions for use Unity Profiler Window? From basics like download Unity :D

Get a unity tutorial. Make a unity project according to such tutorial. Check the unity docs for things related to profiling.

:)
The great one is back.

Sincerely,
    -Gentz

Gentz

#7
Quote from: RawCode on July 21, 2016, 05:09:25 AM
even release versions of game have profiler hooks inside.
Interesting, I thought profiler hooks were only inserted in debug builds.

Next time I need to profile something I'll try attaching a profiler and see if it spews errors out of every orifice.
The great one is back.

Sincerely,
    -Gentz