- Home /
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)
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);