一边学习,一边记录,关于PlayerSettings

1、PlayerSettings.graphicsJobs

Description

Enable graphics jobs (multi threaded rendering).

This enables rendering code to be split and run in parallel on multiple cores on multi core machines.

启用后可将Jobs从主线程迁移到工作线程从而获得极大的渲染性能提升,注意这个还是在实验性的,慎用 

2、PlayerSettings.muteOtherAudioSources

Description

Stops or allows audio from other applications to play in the background while your Unity application is running.

This setting is shared between iOS and Android platforms.

Set this to true and your Unity application stops audio from other applications in the background, set to false and audio from background applications continues to play alongside your Unity application.

Note: Starting with Android Marshmallow (6.0), setting this to false mutes the sound of your Unity application during an incoming phone call (while the phone is ringing). If you want to have this behavior on older Android versions, you have to add the READ_PHONE_STATE permission to the manifest. See the Android documentation for more information on build manifests.

是否当app进入后台后继续播放音频。

3、PlayerSettings.Device Filter

FAT(ARMv7+x86),代表支持ARM架构和x86架构的CPU,如果选择ARMv7,在当前的版本下apk包体可以减少8M。

那么问题来了,x86架构的用户到底有多少?可以看到在2016-09月的时候,x86的用户只有1.3%。对于绝大多数用户来说,

Device Filter选择ARMv7可以减少.apk包体的大小,同时又不会影响绝大多数用户的使用。

4、PlayerSettings.Prebake Collision Meshes

是否在构建时将碰撞数据加到mesh里。

5、PlayerSettings.Keep loaded shaders alive

保证已经加载的Shader不会被卸载。

6、PlayerSettings.Preloaded Assets

当app启动时被预先加载的资源数组。

7、PlayerSettings.Optimize Mesh Data

从mesh中移除掉材质不需要的数据包括tangents(切线),normals(法线),colors,和UV 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值