Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by shubhamgarg1234 · Jun 07, 2012 at 12:14 PM · androidiosfpsperformance

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

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Jun 07, 2012 at 12:43 PM 0
Share

"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.

avatar image shubhamgarg1234 · Jun 07, 2012 at 04:47 PM 0
Share

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

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by BlackPanda · Apr 05, 2014 at 06:43 PM

Use the Internal Profiler. For Android:

  • First enable USB debugging in Developer Options in your mobile.

  • And then in Unity, enable Internal Profiler in Project Settings -> Player -> Other Settings.

  • Then connect your mobile to the computer and run adb logcat in Command Prompt or Powershell and start your game.

There you can see some of the performance information which are explained here: http://docs.unity3d.com/Documentation/Manual/iphone-InternalProfiler.html

  • run adb logcat -d > logcat.txt to save the logcat to a logcat.txt file

  • run adb logcat -c to clear the logcat

Happy programming :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by sambsp · Jun 07, 2012 at 12:27 PM

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

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

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image shubhamgarg1234 · Jun 07, 2012 at 12:36 PM 0
Share

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)

avatar image Bunny83 · Jun 07, 2012 at 12:38 PM 0
Share

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

I've converted your answer into a comment.

avatar image shubhamgarg1234 · Jun 07, 2012 at 04:46 PM 0
Share

thank @Bunny83 i will keep all these things in $$anonymous$$d

avatar image
1

Answer by anilo · Apr 15, 2013 at 08:56 AM

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.


screen shot 2013-04-15 at 1.01.00 am.png (106.7 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

FPS of up-to-date action game on mobile devices? 60 vs 30 FPS? 0 Answers

Android fps problem. 0 Answers

Vsync on or off? 1 Answer

What Facebook account to use for creating app ID 1 Answer

Creating object and collections at runtime 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges