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 BerggreenDK · Mar 18, 2012 at 10:58 PM · androidiosperformancecpuidentifier

Can Apps ask for CPU power?

I an trying to build an Android App, which later also will become an iOS App. But as the Android platform is quite ... lets call it fragmented on the hardware platform, I would like to be able to gain some knowledge about the hardware it runs on to ajust the detail-levels.

So, whats the easiest way to pull some CPU / Graphic details from the platform it runs in?

I mean, is there a high-level call from Unity API or do I have to go down into the native OS to get the core info? Like in Android, call some sort of Java API to gain knowledge?

And the same goes for iOS (this can wait though as there are less platforms and I can target the platform)

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
4

Answer by NanoMath · Jan 09, 2013 at 11:29 AM

http://docs.unity3d.com/Documentation/ScriptReference/SystemInfo.html

I Hope it will be helpful !

        Debug.Log("deviceModel " + SystemInfo.deviceModel);
         Debug.Log("deviceName " + SystemInfo.deviceName);
         Debug.Log("deviceType " + SystemInfo.deviceType);
         Debug.Log("deviceUniqueIdentifier " + SystemInfo.deviceUniqueIdentifier);
         Debug.Log("graphicsDeviceID " + SystemInfo.graphicsDeviceID);
         Debug.Log("graphicsDeviceName " + SystemInfo.graphicsDeviceName);
         Debug.Log("graphicsDeviceVendor " + SystemInfo.graphicsDeviceVendor);
         Debug.Log("graphicsDeviceVendorID " + SystemInfo.graphicsDeviceVendorID);
         Debug.Log("graphicsDeviceVersion " + SystemInfo.graphicsDeviceVersion);
         Debug.Log("graphicsMemorySize " + SystemInfo.graphicsMemorySize);
         Debug.Log("graphicsPixelFillrate " + SystemInfo.graphicsPixelFillrate);
         Debug.Log("graphicsShaderLevel " + SystemInfo.graphicsShaderLevel);
         Debug.Log("operatingSystem " + SystemInfo.operatingSystem);
         Debug.Log("processorCount " + SystemInfo.processorCount);
         Debug.Log("processorType " + SystemInfo.processorType);
         Debug.Log("supportedRenderTargetCount " + SystemInfo.supportedRenderTargetCount);
         Debug.Log("supports3DTextures " + SystemInfo.supports3DTextures);
         Debug.Log("supportsAccelerometer " + SystemInfo.supportsAccelerometer);
         Debug.Log("supportsComputeShaders " + SystemInfo.supportsComputeShaders);
         Debug.Log("supportsGyroscope " + SystemInfo.supportsGyroscope);
         Debug.Log("supportsImageEffects " + SystemInfo.supportsImageEffects);
         Debug.Log("supportsInstancing " + SystemInfo.supportsInstancing);
         Debug.Log("supportsLocationService " + SystemInfo.supportsLocationService);
         Debug.Log("supportsRenderTextures " + SystemInfo.supportsRenderTextures);
         Debug.Log("supportsShadows " + SystemInfo.supportsShadows);
         Debug.Log("supportsVertexPrograms " + SystemInfo.supportsVertexPrograms);
         Debug.Log("supportsVibration " + SystemInfo.supportsVibration);
         Debug.Log("systemMemorySize " + SystemInfo.systemMemorySize);
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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Vsync on or off? 1 Answer

Creating object and collections at runtime 1 Answer

What is better to preserve, Draw calls or Tris? [Mobile] 4 Answers

Empty public script variables. 1 Answer

Why is there a performance discrepancy between LG G4 and iPhone 6s 0 Answers


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