x


How to check performance of the game in the device made in Unity 3d

I have made a game in Unity3D. I want to check all the performance related facts about my game.I want to deploy my game for android and iOS. further more currently i doesn't have a pro licence of Unity(I have basic licence). If anyone have made any script related pls share with me and anybody have any idea please share.

Thanks in advance

more ▼

asked Jun 07 '12 at 12:14 PM

shubhamgarg1234 gravatar image

shubhamgarg1234
15 1 4 5

"all the performance related facts" is not very specific. What in particular? If you don't have unity pro you don't have the profiler, so you have to "measure" those things yourself. That means you have to add alot stuff to your scripts to "log" those times / stats.

The fps script is a good start, but you need to go a bit more in detail what you actually want to know.

"performance" is relative and subjective.

edit Usually you would use a PerformanceCounter in C#, but the class isn't available on mobile or webbuilds. I don't think there's any way to get the cpu or memory usage from a managed script. The best bet would be to have a native code library which you can use to get such stats.

Jun 07 '12 at 12:43 PM Bunny83

I need to know about cpu usage, ram usage and rendering

Jun 07 '12 at 04:47 PM shubhamgarg1234
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

If you want to see the fps(frames per second), you can use this,

http://www.unifycommunity.com/wiki/index.php?title=FramesPerSecond

more ▼

answered Jun 07 '12 at 12:27 PM

sambsp gravatar image

sambsp
48 2 7 9

thank sambsp

I have already added this script and i get the fps But i also want some other performance related facts for example how much CPU is used by the game and other facts that are with Unity Profiler(pro only)

Jun 07 '12 at 12:36 PM shubhamgarg1234

@shubhamgarg1234: Use comments. Answers should answer the question.

I've converted your answer into a comment.

Jun 07 '12 at 12:38 PM Bunny83

thank @Bunny83 i will keep all these things in mind

Jun 07 '12 at 04:46 PM shubhamgarg1234
(comments are locked)
10|3000 characters needed characters left

Open the project in XCode and then set this attribute

ENABLE_INTERNAL_PROFILER=1

in the iPhone_Profiler.h file

alt text

Now go to your console and you should see lots of important stats, including FPS.

more ▼

answered Apr 15 at 08:56 AM

anilo gravatar image

anilo
1 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

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:

x2464
x1958
x1172
x842
x662

asked: Jun 07 '12 at 12:14 PM

Seen: 751 times

Last Updated: Apr 15 at 08:56 AM