简体   繁体   English

如何使用unity3D根据CPU性能限制android设备

[英]How to limit android devices according to CPU performance with unity3D

I have recently published my unity game on App Store. 我最近在App Store上发布了我的统一游戏。 I Targeted iOS 7 to eliminate iPhone 3GS for performance reasons. 由于性能原因,我将iOS 7定位为淘汰iPhone 3GS。 Now i am willing to publish my game for android devices with unity but i am not sure how to restrict my game. 现在,我愿意统一发布Android设备的游戏,但是我不确定如何限制我的游戏。 which configuration should i use with min API level or device filter? 最低API级别或设备过滤器应使用哪种配置? My game uses about 100 % CPU with iPhone 4 and about 50% with iPad 4 retina. 我的游戏在iPhone 4上使用大约100%的CPU,在iPad 4视网膜上使用大约50%的CPU。 Any help would be appreciated. 任何帮助,将不胜感激。 Thanks. 谢谢。

If you want to target higher-end android devices, first of all, try setting the API level to IceCreamSandwhich or above. 如果您要定位高端android设备,请首先尝试将API级别设置为IceCreamSandwhich或更高。 Next, try limiting your app(in code) to a specific minimum resolution like WVGA (800x480). 接下来,尝试将您的应用程序(以代码形式)限制为特定的最低分辨率,例如WVGA(800x480)。 Any resolution lower than that will mostly be a very old device which cannot run your game. 任何低于该分辨率的分辨率都将是非常老旧的设备,无法运行您的游戏。 You can also specify model numbers in unity to be exactly for those devices, but I don't really recommend doing that, because many users root their phones and you could have some issues with it. 您也可以统一指定型号以精确地适合那些设备,但我不建议您这样做,因为许多用户都将其手机扎根,因此您可能会遇到一些问题。 You can also write some code so that your game checks if the device has multiple cores of CPU, but that cannot be done in the Play Store. 您还可以编写一些代码,以便游戏检查设备是否具有多个CPU内核,但不能在Play商店中完成。 So for example if a user has a 800x480 screen with ICS+ running, but has a 800Mhz CPU, you cannot do anything about it, he can install the game from the store. 因此,例如,如果用户运行ICS +的屏幕为800x480,但CPU为800Mhz,则您无能为力,那么他可以从商店中安装游戏。 But you can force check the CPU cores in game so the game does not start for single core devices etc. Overall limit the api to ICS+ and the minimum resolution to 800x480. 但是您可以强制检查游戏中的CPU内核,以使游戏无法在单核设备等上启动。总体上,将api限制为ICS +,最低分辨率为800x480。 Hope I could help. 希望我能帮上忙。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM