- Home /
How to detect Tegra devices
I want to ramp up my games graphics on Tegra 2 Android devices. How can i detect this in a non-hacky way. In other words, i don't want to check OS version, screen resolution or gl extensions ( unless it is something like GL_EXT_TEGRA ). It seems that some games have done this, but i have no clue how.
Thanks in advance!!
Good question. Using the resolution check is the only way I know of but yes, tis very hacky and prone to problems down the line.
Answer by GlitchEnzo2 · Jun 22, 2012 at 05:14 AM
SystemInfo.graphicsDeviceName is what you're looking for. As you saw, it does return "NVIDIA AP" if the Android Player Settings are set to use OpenGL ES 1.1. If you change it to be OpenGL ES 2.0, SystemInfo.graphicsDeviceName should return "NVIDIA Tegra 2".
Answer by Waz · Jun 28, 2011 at 01:24 PM
SystemInfo.graphicsPixelFillrate is generic and correlates... if you get any useful value.
i get -1 on my Acer Iconia. That doesn't seem helpful... however it does look like graphicsDeviceName returns NVIDIA AP. This seems the same on the Xoom, but still not really like a long term non-hacky solution.