0

I'm using the latest Unity 5 and working on android project. I found out that Unity can show processor type and core count by SystemInfo.processorType and SystemInfo.processorCount.

Could it be possible to show CPU freqeuncy in Ghz on any android devices? It can either written in C# or UnityScript code.

user3071284
  • 6,955
  • 6
  • 43
  • 57
Happy Face
  • 1,061
  • 7
  • 18
  • 2
    To the best of my knowledge Unity does not provide an API for this. So you're going to have to write something yourself, for example along the lines as indicated in this post: http://stackoverflow.com/questions/16331538/find-the-processor-speed-of-an-android-device-in-mhz – Bart Jul 23 '15 at 12:44

1 Answers1

0

This is though task, witch may require a lot of work to do. First i thought there have to be way that Android OS hold that kind of data somewhere in storage. So i found this http://android-er.blogspot.com/2009/09/read-android-cpu-info.html. In short you read all the data from manufacturer, but on different phones there might or may not be data you are looking for.

Second thought was you have to count it on your own https://stackoverflow.com/a/27821658/2531209 This might come in handy, but its not perfect since you need to make calculations and you wont receive result in Hz.

Third thought if this is your core of application and you want to support it you may want to create list of all phones and processors architectures (or find one in convenient form) and display associated with it score in GHz.

Community
  • 1
  • 1
Tomasz Juszczak
  • 2,276
  • 15
  • 25
  • I get few errors in http://stackoverflow.com/a/27821658/2531209 . I'm kinda new to C#, I guess I need to include `using Something...` on the top of the script? Thanks for the information btw – Happy Face Jul 23 '15 at 15:36