比较提交

...
此合并请求有变更与目标分支冲突。
/Packages/manifest.json
/Assets/Resources/AppManager.prefab
/Assets/scenes/demo_Island.unity
/ProjectSettings/EditorBuildSettings.asset

10 次代码提交

共有 22 个文件被更改,包括 770 次插入18 次删除
  1. 7
      ProjectSettings/EditorBuildSettings.asset
  2. 10
      Packages/manifest.json
  3. 14
      Assets/Resources/AppManager.prefab
  4. 294
      Assets/scenes/demo_Island.unity
  5. 8
      Assets/Adaptive Performance.meta
  6. 168
      Assets/Adaptive Performance/AdaptivePerformanceDemo.prefab
  7. 7
      Assets/Adaptive Performance/AdaptivePerformanceDemo.prefab.meta
  8. 78
      Assets/Adaptive Performance/AdaptivePerformanceGeneralSettings.asset
  9. 8
      Assets/Adaptive Performance/AdaptivePerformanceGeneralSettings.asset.meta
  10. 91
      Assets/Adaptive Performance/AdaptivePerformanceVisualize.cs
  11. 11
      Assets/Adaptive Performance/AdaptivePerformanceVisualize.cs.meta
  12. 8
      Assets/Adaptive Performance/Provider.meta
  13. 14
      Assets/Adaptive Performance/Provider/Samsung Android Provider Loader.asset
  14. 8
      Assets/Adaptive Performance/Provider/Samsung Android Provider Loader.asset.meta
  15. 14
      Assets/Adaptive Performance/Provider/Simulator Provider Loader.asset
  16. 8
      Assets/Adaptive Performance/Provider/Simulator Provider Loader.asset.meta
  17. 8
      Assets/Adaptive Performance/Settings.meta
  18. 24
      Assets/Adaptive Performance/Settings/Samsung Android Provider Settings.asset
  19. 8
      Assets/Adaptive Performance/Settings/Samsung Android Provider Settings.asset.meta

7
ProjectSettings/EditorBuildSettings.asset


m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes:
- enabled: 1
- enabled: 0
- enabled: 1
- enabled: 0
- enabled: 1
path: Assets/scenes/demo_Island.unity
guid: b3bf1324da98a41e796a5881dd3812eb
m_configObjects:
com.unity.addressableassets: {fileID: 11400000, guid: 3f119a19757f84dac85ee298b9dd65d3,
type: 2}

10
Packages/manifest.json


{
"dependencies": {
"com.unity.2d.sprite": "1.0.0",
"com.unity.addressables": "1.6.0",
"com.unity.adaptiveperformance": "file:../../com.unity.adaptiveperformance",
"com.unity.adaptiveperformance.samsung.android": "file:../../com.unity.adaptiveperformance.samsung.android",
"com.unity.addressables": "1.6.2",
"com.unity.device-simulator": "2.2.1-preview",
"com.unity.ide.rider": "1.2.1",
"com.unity.ide.visualstudio": "2.0.0",
"com.unity.ide.vscode": "1.1.4",

"com.unity.mobile.android-logcat": "1.1.1",
"com.unity.render-pipelines.universal": "7.2.1",
"com.unity.render-pipelines.core": "file:../../Graphics/com.unity.render-pipelines.core",
"com.unity.render-pipelines.universal": "file:../../Graphics/com.unity.render-pipelines.universal",
"com.unity.shadergraph": "file:../../Graphics/com.unity.shadergraph",
"com.unity.terrain-tools": "3.0.1-preview",
"com.unity.textmeshpro": "2.1.0-preview.4",
"com.unity.timeline": "1.2.11",

14
Assets/Resources/AppManager.prefab


m_Script: {fileID: 11500000, guid: 6de62f03c3364421389a6c95485ec756, type: 3}
m_Name:
m_EditorClassIdentifier:
maxRenderSize: 3
maxRenderSize: 2
targetFramerate: 0
targetFramerate: 1
m_SubObjectName:
m_SubObjectName:
--- !u!114 &8490184438857729681
MonoBehaviour:
m_ObjectHideFlags: 0

- boatName: Player 1
boatPrefab:
m_AssetGUID: 405c4bc591de844a3a100e1538790229
m_SubObjectName:
livery:
primaryColor: {r: 0.8773585, g: 0.09518514, b: 0.09518514, a: 0}
trimColor: {r: 0.8679245, g: 0.8679245, b: 0.8679245, a: 0}

m_AssetGUID: 70d78230a0527e74dabc4f14906eef98
m_SubObjectName:
livery:
primaryColor: {r: 0.11053756, g: 0.8679245, b: 0.17524286, a: 0}
trimColor: {r: 0.7354654, g: 0.122774996, b: 0.8396226, a: 0}

m_AssetGUID: 405c4bc591de844a3a100e1538790229
m_SubObjectName:
livery:
primaryColor: {r: 0.098039225, g: 0.8980392, b: 0.8708881, a: 0}
trimColor: {r: 0.14150941, g: 0.14150941, b: 0.14150941, a: 0}

m_AssetGUID: 70d78230a0527e74dabc4f14906eef98
m_SubObjectName:
livery:
primaryColor: {r: 0.1481844, g: 0.2092964, b: 0.8490566, a: 0}
trimColor: {r: 0.9339623, g: 0.7163166, b: 0.074893214, a: 0}

m_SubObjectName:
m_SubObjectName:
m_SubObjectName:
m_SubObjectName:
--- !u!114 &7312333174115242941
MonoBehaviour:
m_ObjectHideFlags: 0

294
Assets/scenes/demo_Island.unity


--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2

m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 112000000, guid: 24dff42e17d0f4e61a3a4c0f017b53fc,
type: 2}
m_UseShadowmask: 0
m_LightingSettings: {fileID: 2098990056}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2

manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}

m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!84 &1439510550
RenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: WaterDepthMap
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
serializedVersion: 3
m_Width: 1024
m_Height: 1024
m_AntiAliasing: 1
m_MipCount: -1
m_DepthFormat: 2
m_ColorFormat: 142
m_MipMap: 0
m_GenerateMips: 1
m_SRGB: 0
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 1
m_MipBias: 0
m_WrapU: 1
m_WrapV: 1
m_WrapW: 1
m_Dimension: 2
m_VolumeDepth: 1
--- !u!1 &1490334302
GameObject:
m_ObjectHideFlags: 0

m_PositionOffset: 0
m_SearchRadius: 2
m_SearchResolution: 5
--- !u!850595691 &2098990056
LightingSettings:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Settings.lighting
serializedVersion: 2
m_GIWorkflowMode: 1
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_RealtimeEnvironmentLighting: 1
m_BounceScale: 1
m_AlbedoBoost: 1
m_IndirectOutputScale: 2
m_UsingShadowmask: 0
m_BakeBackend: 1
m_LightmapMaxSize: 2048
m_BakeResolution: 2.5
m_Padding: 2
m_TextureCompression: 1
m_AO: 0
m_AOMaxDistance: 4
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAO: 0
m_MixedBakeMode: 0
m_LightmapsBakeMode: 1
m_FilterMode: 1
m_LightmapParameters: {fileID: 15201, guid: 0000000000000000f000000000000000, type: 0}
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_RealtimeResolution: 2
m_ForceWhiteAlbedo: 0
m_ForceUpdates: 0
m_FinalGather: 0
m_FinalGatherRayCount: 256
m_FinalGatherFiltering: 1
m_PVRCulling: 0
m_PVRSampling: 1
m_PVRDirectSampleCount: 16
m_PVRSampleCount: 128
m_PVREnvironmentSampleCount: 64
m_PVREnvironmentReferencePointCount: 2048
m_LightProbeSampleCountMultiplier: 4
m_PVRBounces: 2
m_PVRRussianRouletteStartBounce: 2
m_PVREnvironmentMIS: 0
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 1
m_PVRFilteringGaussRadiusAO: 0
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
--- !u!1 &2131477505
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2131477515}
- component: {fileID: 2131477514}
- component: {fileID: 2131477513}
- component: {fileID: 2131477512}
- component: {fileID: 2131477511}
- component: {fileID: 2131477510}
- component: {fileID: 2131477509}
- component: {fileID: 2131477508}
- component: {fileID: 2131477507}
- component: {fileID: 2131477506}
- component: {fileID: 2131477516}
m_Layer: 0
m_Name: Scalers
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2131477506
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8ebb5e762e8cde246a26712bc61fd675, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2131477507
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 61df28fa7624cd0488820e14bae0ba28, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2131477508
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 66d17a5ed341cb14fa54af8124541e74, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2131477509
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6169adfcdbc75bd4c8b606b7679d80c4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2131477510
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 945b4528e525b234ab1d92e351848634, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2131477511
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9f364777dca8cf14eba1d2e4e80bb6f4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2131477512
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d86b2cc34176601478a9b0db340d8c3f, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2131477513
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 424df02fb1bb04e4dbd510cc47de75f4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2131477514
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ee73ebd2e18484e40b93631dfbde3689, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &2131477515
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2131477516
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2131477505}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aa0da383c28ee4b4c983ef964726f34a, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Font: {fileID: 0}
m_FontSize: 16
--- !u!1001 &6589000189408555943
PrefabInstance:
m_ObjectHideFlags: 0

propertyPath: m_Name
value: Island Level
objectReference: {fileID: 0}
- target: {fileID: 6589000190219289651, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.33798867
objectReference: {fileID: 0}
- target: {fileID: 6589000190219289651, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.9290833
objectReference: {fileID: 0}
value: 0.011147385
value: 0.011147388
objectReference: {fileID: 0}
- target: {fileID: 7532958370797222331, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}

- target: {fileID: 7532958370797222331, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}
propertyPath: m_LocalRotation.z
value: -0.073744975
value: -0.07374499
objectReference: {fileID: 0}
- target: {fileID: 7532958370797222331, guid: e70416e3bc35d4004a9981d0ac102ba5,
type: 3}

- target: {fileID: 7003470173341666312, guid: 530da10d6c4d9442e9e8d5eeb77a25d8,
type: 3}
propertyPath: m_LocalPosition.x
value: -20.54939
value: 13
value: 14
value: 1.4
value: 49.590775
value: 3.5
value: -0.037609365
value: -0.04308238
value: 0.96143246
value: 0.15628563
value: -0.2132932
value: 0.00682358
value: -0.16952659
value: 0.98674834
objectReference: {fileID: 0}
- target: {fileID: 7003470173341666312, guid: 530da10d6c4d9442e9e8d5eeb77a25d8,
type: 3}

- target: {fileID: 7003470173341666315, guid: 530da10d6c4d9442e9e8d5eeb77a25d8,
type: 3}
propertyPath: field of view
value: 60
value: 40
objectReference: {fileID: 0}
- target: {fileID: 7003470173341666315, guid: 530da10d6c4d9442e9e8d5eeb77a25d8,
type: 3}

8
Assets/Adaptive Performance.meta


fileFormatVersion: 2
guid: d4f552f460cb6ce4cac0f734f0de9057
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

168
Assets/Adaptive Performance/AdaptivePerformanceDemo.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1172835982953389073
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1172835982953389076}
- component: {fileID: 1172835982953389079}
- component: {fileID: 1172835982953389078}
- component: {fileID: 1172835982953389077}
- component: {fileID: 1172835982953389162}
- component: {fileID: 1172835982953389163}
- component: {fileID: 1172835982953389160}
- component: {fileID: 1172835982953389161}
- component: {fileID: -5546153052679288965}
- component: {fileID: 7636946876172372495}
- component: {fileID: 2905590588258338241}
m_Layer: 0
m_Name: AdaptivePerformanceDemo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1172835982953389076
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1172835982953389079
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6169adfcdbc75bd4c8b606b7679d80c4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1172835982953389078
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cf7b772e66356dc4282f10e1863718d8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UpdateInternal: 10
m_UnappiedControllers: []
m_AppiedControllers: []
m_CurrentTime: 0
--- !u!114 &1172835982953389077
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9f364777dca8cf14eba1d2e4e80bb6f4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1172835982953389162
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 945b4528e525b234ab1d92e351848634, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1172835982953389163
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d86b2cc34176601478a9b0db340d8c3f, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1172835982953389160
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8ebb5e762e8cde246a26712bc61fd675, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1172835982953389161
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f2708d04b70f118438d6022e92a5b848, type: 3}
m_Name:
m_EditorClassIdentifier:
SimulationTime: 940
--- !u!114 &-5546153052679288965
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ee73ebd2e18484e40b93631dfbde3689, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &7636946876172372495
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 66d17a5ed341cb14fa54af8124541e74, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2905590588258338241
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1172835982953389073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aa0da383c28ee4b4c983ef964726f34a, type: 3}
m_Name:
m_EditorClassIdentifier:
Font: {fileID: 12800000, guid: d5412b8144c2dad42bbd5fb32d5d86ab, type: 3}

7
Assets/Adaptive Performance/AdaptivePerformanceDemo.prefab.meta


fileFormatVersion: 2
guid: a3bba0b31617ff5469dc517c48bb27c2
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

78
Assets/Adaptive Performance/AdaptivePerformanceGeneralSettings.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cb0ece14d1f711a4fb9325ca819dee95, type: 3}
m_Name: AdaptivePerformanceGeneralSettings
m_EditorClassIdentifier:
Keys: 0700000001000000
Values:
- {fileID: 4008309113040310297}
- {fileID: 855861107550717757}
--- !u!114 &855861107550717757
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 179fc3111e144bc4688dca4038b3265d, type: 3}
m_Name: Standalone Settings
m_EditorClassIdentifier:
m_LoaderManagerInstance: {fileID: 5241795180231990731}
m_InitManagerOnStart: 1
--- !u!114 &4006459906318756557
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 536372c49e1ca914d822849d36de938c, type: 3}
m_Name: Android Providers
m_EditorClassIdentifier:
m_AutomaticLoading: 0
m_AutomaticRunning: 0
m_Loaders:
- {fileID: 11400000, guid: c3995e099e662d845866e053474159b3, type: 2}
--- !u!114 &4008309113040310297
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 179fc3111e144bc4688dca4038b3265d, type: 3}
m_Name: Android Settings
m_EditorClassIdentifier:
m_LoaderManagerInstance: {fileID: 4006459906318756557}
m_InitManagerOnStart: 1
--- !u!114 &5241795180231990731
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 536372c49e1ca914d822849d36de938c, type: 3}
m_Name: Standalone Providers
m_EditorClassIdentifier:
m_AutomaticLoading: 0
m_AutomaticRunning: 0
m_Loaders:
- {fileID: 11400000, guid: 29ed3ea2e654f824ab409d57a812660e, type: 2}

8
Assets/Adaptive Performance/AdaptivePerformanceGeneralSettings.asset.meta


fileFormatVersion: 2
guid: 51632b70189b1c94799197764b4a7971
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

91
Assets/Adaptive Performance/AdaptivePerformanceVisualize.cs


using UnityEngine;
using UnityEngine.AdaptivePerformance;
using System.Collections.Generic;
public class AdaptivePerformanceVisualize : MonoBehaviour
{
[SerializeField] private Font m_Font;
[SerializeField] private int m_FontSize = 16;
private GUIStyle m_DefaultStyle;
private GUIStyle m_BoldStyle;
private List<AdaptivePerformanceScaler> m_AppliedScalers;
private List<AdaptivePerformanceScaler> m_UnappliedScalers;
private void Start()
{
m_DefaultStyle = new GUIStyle() { fontSize = m_FontSize, richText = true, normal = new GUIStyleState() { textColor = Color.white } };
m_BoldStyle = new GUIStyle() { fontSize = m_FontSize, fontStyle = FontStyle.Bold, normal = new GUIStyleState() { textColor = Color.white } };
m_AppliedScalers = new List<AdaptivePerformanceScaler>(16);
m_UnappliedScalers = new List<AdaptivePerformanceScaler>(16);
if (m_Font)
{
m_DefaultStyle.font = m_Font;
m_BoldStyle.font = m_Font;
}
}
private void OnGUI()
{
GUILayout.BeginVertical();
GUILayout.Label(string.Format("performance:"), m_BoldStyle);
var currentFps = (int)(1f / Holder.Instance.PerformanceStatus.FrameTiming.AverageFrameTime);
GUILayout.Label(string.Format(" fps: {0}", currentFps), m_DefaultStyle);
GUILayout.Label(string.Format(" bootlneck: <b>{0}</b>", Holder.Instance.PerformanceStatus.PerformanceMetrics.PerformanceBottleneck), m_DefaultStyle);
GUILayout.Label(string.Format(" gpu frame time: {0:0.####}s", Holder.Instance.PerformanceStatus.FrameTiming.AverageGpuFrameTime), m_DefaultStyle);
GUILayout.Label(string.Format(" cpu frame time: {0:0.####}s", Holder.Instance.PerformanceStatus.FrameTiming.AverageCpuFrameTime), m_DefaultStyle);
GUILayout.Label("thermal", m_BoldStyle);
var tempTrend = Holder.Instance.ThermalStatus.ThermalMetrics.TemperatureTrend;
if (tempTrend <= 0)
GUILayout.Label(string.Format(" trend: <color=lime>{0:0.####}</color>", tempTrend), m_DefaultStyle);
else
GUILayout.Label(string.Format(" trend: <color=red>{0:0.####}</color>", tempTrend), m_DefaultStyle);
var tempLevel = Holder.Instance.ThermalStatus.ThermalMetrics.TemperatureLevel;
if (tempLevel < 0.8f)
GUILayout.Label(string.Format(" level: <color=lime>{0:0.##}</color>", tempLevel), m_DefaultStyle);
else
GUILayout.Label(string.Format(" level: <color=red>{0:0.##}</color>", tempLevel), m_DefaultStyle);
var tempWarning = Holder.Instance.ThermalStatus.ThermalMetrics.WarningLevel;
if (tempWarning == WarningLevel.NoWarning)
GUILayout.Label(string.Format(" warning: <color=lime>{0}</color>", tempWarning), m_DefaultStyle);
else
GUILayout.Label(string.Format(" warning: <color=red>{0}</color>", tempWarning), m_DefaultStyle);
var indexer = Holder.Instance.Indexer;
if (indexer != null)
{
GUILayout.Label(indexer.Active ? "<color=lime>indexer</color>" : "<color=red>indexer</color>", m_BoldStyle);
if (indexer.Active)
{
GUILayout.Label(string.Format(" timer: <b>{0}</b>", Mathf.RoundToInt(indexer.TimeUntilNextAction)), m_DefaultStyle);
GUILayout.Label(" applied scalers:", m_DefaultStyle);
indexer.GetAppliedScalers(ref m_AppliedScalers);
foreach (var scaler in m_AppliedScalers)
GUILayout.Label(string.Format(" name: {0} level: {1}/{2} cost: {3} <b>{4}#{5}</b>",
scaler.GetType().Name, scaler.CurrentLevel, scaler.MaxLevel, scaler.CalculateCost(), scaler.GpuImpact, scaler.CpuImpact), m_DefaultStyle);
GUILayout.Label(" unapplied scalers:", m_DefaultStyle);
indexer.GetUnappliedScaler(ref m_UnappliedScalers);
foreach (var scaler in m_UnappliedScalers)
GUILayout.Label(string.Format(" name: {0} cost: {1} <b>{2}#{3}</b>",
scaler.GetType().Name, scaler.CalculateCost(), scaler.GpuImpact, scaler.CpuImpact), m_DefaultStyle);
var perfAction = indexer.PerformanceAction;
if (perfAction != StateAction.Decrease && perfAction != StateAction.FastDecrease)
GUILayout.Label(string.Format(" performance action: <color=lime>{0}</color>", perfAction), m_DefaultStyle);
else
GUILayout.Label(string.Format(" performance action: <color=red>{0}</color>", perfAction), m_DefaultStyle);
var tempAction = indexer.ThermalAction;
if (tempAction != StateAction.Decrease && perfAction != StateAction.FastDecrease)
GUILayout.Label(string.Format(" thermal action: <color=lime>{0}</color>", tempAction), m_DefaultStyle);
else
GUILayout.Label(string.Format(" thermal action: <color=red>{0}</color>", tempAction), m_DefaultStyle);
}
if (GUILayout.Button(indexer.Active ? "turn off" : "turn on"))
indexer.Active = !indexer.Active;
}
GUILayout.EndVertical();
}
}

11
Assets/Adaptive Performance/AdaptivePerformanceVisualize.cs.meta


fileFormatVersion: 2
guid: aa0da383c28ee4b4c983ef964726f34a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

8
Assets/Adaptive Performance/Provider.meta


fileFormatVersion: 2
guid: 5dc5bf89a4b7b3d40b628311946da855
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

14
Assets/Adaptive Performance/Provider/Samsung Android Provider Loader.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 12368ffd90e3c4ac4889486ab7b2aa78, type: 3}
m_Name: Samsung Android Provider Loader
m_EditorClassIdentifier:

8
Assets/Adaptive Performance/Provider/Samsung Android Provider Loader.asset.meta


fileFormatVersion: 2
guid: c3995e099e662d845866e053474159b3
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

14
Assets/Adaptive Performance/Provider/Simulator Provider Loader.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 921854900f2214d7ab9b1e95d17dbb2b, type: 3}
m_Name: Simulator Provider Loader
m_EditorClassIdentifier:

8
Assets/Adaptive Performance/Provider/Simulator Provider Loader.asset.meta


fileFormatVersion: 2
guid: 29ed3ea2e654f824ab409d57a812660e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
Assets/Adaptive Performance/Settings.meta


fileFormatVersion: 2
guid: 42f74af0f90db9f41b713b54a63e101d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

24
Assets/Adaptive Performance/Settings/Samsung Android Provider Settings.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 02a364304553d4fe797810bd5c88f9d8, type: 3}
m_Name: Samsung Android Provider Settings
m_EditorClassIdentifier:
m_Logging: 1
m_AutomaticPerformanceModeEnabled: 1
m_StatsLoggingFrequencyInFrames: 50
m_IndexerSettings:
m_Active: 1
m_ThermalActionDelay: 10
m_PerformanceActionDelay: 4
m_ThermalStateMode: 0
m_ThermalSafeRange: {x: 0.6, y: 0.7}
m_SamsungProviderLogging: 0

8
Assets/Adaptive Performance/Settings/Samsung Android Provider Settings.asset.meta


fileFormatVersion: 2
guid: 1dd56d45abeb15b47a465e302df0c346
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存