|
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
(comments are locked)
|
|
If you want to see the fps(frames per second), you can use this, http://www.unifycommunity.com/wiki/index.php?title=FramesPerSecond 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)
|
|
Open the project in XCode and then set this attribute ENABLE_INTERNAL_PROFILER=1 in the iPhone_Profiler.h file
Now go to your console and you should see lots of important stats, including FPS.
(comments are locked)
|


"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.
I need to know about cpu usage, ram usage and rendering