检测在Android良好的GPU [英] Detecting good GPU on Android

查看:149
本文介绍了检测在Android良好的GPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个安全的方式来检测当前的GPU是否属于当前高端的个人资料(如摩托罗拉的Atrix或银河S2)这样我就可以在运行时,能够在我的游戏中的一些更复杂的视觉效果

I am looking for a safe way to detect whether the current GPU belongs to the current high end profile (such as Motorola's Atrix or Galaxy s2) so I can, in run-time, enable some more sophisticated visual effects in my game.

有没有人成功地做过类似的事情?我虽然关于检测的双核CPU,这通常会配有一个良好的GPU,但我没有足够的设备来测试,如果它要在工作大多数情况确定。

Has anyone successfully done anything similar? I though about detecting dual-core CPU, which would usually come with a good GPU, but I don't have enough devices to test if it is going to work OK on most situations.

推荐答案

如果那些更复杂的视觉效果需要OpenGL ES的扩展,你可以简单地测试这些扩展的presence。

If those "more sophisticated visual effects" require OpenGL ES extensions, you can simply test for the presence of those extensions.

如果他们不这样做,它很可能是从长远来看,最好只允许用户配置他们的图形设置。否则,如果一个新的GPU出来,它不会是GPU的您辛苦codeD名单上,因此他们将获得低质量的图像。

If they do not, it would probably be better in the long run to simply allow the user to configure their graphics setup. Otherwise, if a new GPU comes out, it won't be on your hard-coded list of GPUs and thus they'll get low-quality graphics.

这篇关于检测在Android良好的GPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆