浏览代码

Update to working state with 3fps improvement and less power consumption.

/adaptive-performance
davidbe 4 年前
当前提交
5d585c81
共有 6 个文件被更改,包括 26 次插入29 次删除
  1. 32
      Assets/Adaptive Performance/Settings/Samsung Android Provider Settings.asset
  2. 2
      Assets/Objects/misc/Main Camera.prefab
  3. 4
      Assets/Resources/AppManager.prefab
  4. 6
      Assets/Scripts/GameSystem/AppSettings.cs
  5. 4
      Packages/manifest.json
  6. 7
      ProjectSettings/QualitySettings.asset

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


m_EditorClassIdentifier:
m_Logging: 1
m_AutomaticPerformanceModeEnabled: 1
m_StatsLoggingFrequencyInFrames: 50
m_StatsLoggingFrequencyInFrames: 150
m_ThermalActionDelay: 10
m_ThermalActionDelay: 15
m_Enabled: 0
m_Enabled: 1
m_MinBound: 15
m_MaxBound: 60
m_MinBound: 28
m_MaxBound: 30
m_Enabled: 0
m_Enabled: 1
m_MinBound: 0.5
m_MinBound: 0.33668905
m_Enabled: 0
m_Enabled: 1
m_Scale: -1
m_VisualImpact: 1
m_Target: 1

m_AdaptiveLOD:
m_Name: Adaptive LOD
m_Enabled: 0
m_Enabled: 1
m_Scale: -1
m_VisualImpact: 2
m_Target: 2

m_AdaptiveLut:
m_Name: Adaptive Lut
m_Enabled: 0
m_Enabled: 1
m_Scale: -1
m_VisualImpact: 1
m_Target: 3

m_AdaptiveMSAA:
m_Name: Adaptive MSAA
m_Enabled: 0
m_Enabled: 1
m_Scale: -1
m_VisualImpact: 1
m_Target: 6

m_AdaptiveShadowCascades:
m_Name: Adaptive Shadow Cascade
m_Enabled: 0
m_Enabled: 1
m_Scale: -1
m_VisualImpact: 1
m_Target: 3

m_AdaptiveShadowDistance:
m_Name: Adaptive Shadow Distance
m_Enabled: 0
m_Enabled: 1
m_Scale: -1
m_VisualImpact: 0
m_Target: 2

m_AdaptiveShadowmapResolution:
m_Name: Adaptive Shadowmap Resolution
m_Enabled: 0
m_Enabled: 1
m_Scale: -1
m_VisualImpact: 0
m_Target: 2

m_AdaptiveShadowQuality:
m_Name: Adaptive Shadow Quality
m_Enabled: 0
m_Enabled: 1
m_Scale: -1
m_VisualImpact: 2
m_Target: 3

m_AdaptiveSorting:
m_Name: Adaptive Sorting
m_Enabled: 0
m_Enabled: 1
m_Scale: -1
m_VisualImpact: 1
m_Target: 1

2
Assets/Objects/misc/Main Camera.prefab


m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_AllowDynamicResolution: 1
m_ForceIntoRT: 1
m_OcclusionCulling: 0
m_StereoConvergence: 10

4
Assets/Resources/AppManager.prefab


m_Script: {fileID: 11500000, guid: 6de62f03c3364421389a6c95485ec756, type: 3}
m_Name:
m_EditorClassIdentifier:
maxRenderSize: 3
maxRenderSize: 0
targetFramerate: 0
targetFramerate: 1
speedFormat: 0
loadingScreen:
m_AssetGUID: 179a2376fe443449d9046bc913164c8b

6
Assets/Scripts/GameSystem/AppSettings.cs


private void OnEnable()
{
Initialize();
RenderPipelineManager.beginCameraRendering += SetRenderScale;
//RenderPipelineManager.beginCameraRendering += SetRenderScale;
SceneManager.sceneLoaded += LevelWasLoaded;
}

#endif
}
private void Update()
/*private void Update()
{
if (!MainCamera) return;

{
MainCamera.allowDynamicResolution = false;
}
}
}*/
public void ToggleSRPBatcher(bool enabled)
{

4
Packages/manifest.json


"com.unity.mathematics": "1.1.0",
"com.unity.memoryprofiler": "0.2.4-preview.1",
"com.unity.mobile.android-logcat": "1.1.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.render-pipelines.universal": "7.5.1",
"com.unity.terrain-tools": "3.0.1-preview",
"com.unity.textmeshpro": "2.1.1",
"com.unity.timeline": "1.3.4",

7
ProjectSettings/QualitySettings.asset


QualitySettings:
m_ObjectHideFlags: 0
serializedVersion: 5
m_CurrentQuality: 1
m_CurrentQuality: 2
m_QualitySettings:
- serializedVersion: 2
name: Low

softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 0
vSyncCount: 1
vSyncCount: 0
lodBias: 4
maximumLODLevel: 0
streamingMipmapsActive: 1

type: 2}
excludedTargetPlatforms:
- iPhone
- Android
Android: 0
Android: 2
Nintendo 3DS: 0
Nintendo Switch: 1
PS4: 2

正在加载...
取消
保存