From bd3b2ef32218bf5a388907dae32737c1444b7340 Mon Sep 17 00:00:00 2001 From: Jens Pitkanen Date: Wed, 22 Apr 2020 13:33:28 +0300 Subject: [PATCH] Add some optimizations --- Assets/Post Processing/Global Profile.asset | 143 -------------------- Assets/Scenes/MainScene.unity | 18 +-- ProjectSettings/QualitySettings.asset | 28 ++-- 3 files changed, 26 insertions(+), 163 deletions(-) diff --git a/Assets/Post Processing/Global Profile.asset b/Assets/Post Processing/Global Profile.asset index b5807f5..243dacc 100644 --- a/Assets/Post Processing/Global Profile.asset +++ b/Assets/Post Processing/Global Profile.asset @@ -1,49 +1,5 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!114 &-3867344767123534107 -MonoBehaviour: - m_ObjectHideFlags: 3 - 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: 40b924e2dad56384a8df2a1e111bb675, type: 3} - m_Name: Vignette - m_EditorClassIdentifier: - active: 1 - enabled: - overrideState: 1 - value: 1 - mode: - overrideState: 0 - value: 0 - color: - overrideState: 0 - value: {r: 0, g: 0, b: 0, a: 1} - center: - overrideState: 0 - value: {x: 0.5, y: 0.5} - intensity: - overrideState: 1 - value: 0.1 - smoothness: - overrideState: 0 - value: 0.2 - roundness: - overrideState: 0 - value: 1 - rounded: - overrideState: 0 - value: 0 - mask: - overrideState: 0 - value: {fileID: 0} - defaultState: 1 - opacity: - overrideState: 0 - value: 1 --- !u!114 &11400000 MonoBehaviour: m_ObjectHideFlags: 0 @@ -58,58 +14,6 @@ MonoBehaviour: m_EditorClassIdentifier: settings: - {fileID: 4497101660291343525} - - {fileID: 7912138405537174518} - - {fileID: 874794986963742608} - - {fileID: -3867344767123534107} ---- !u!114 &874794986963742608 -MonoBehaviour: - m_ObjectHideFlags: 3 - 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: c1cb7e9e120078f43bce4f0b1be547a7, type: 3} - m_Name: AmbientOcclusion - m_EditorClassIdentifier: - active: 0 - enabled: - overrideState: 1 - value: 1 - mode: - overrideState: 0 - value: 1 - intensity: - overrideState: 1 - value: 0.2 - color: - overrideState: 0 - value: {r: 0, g: 0, b: 0, a: 1} - ambientOnly: - overrideState: 0 - value: 1 - noiseFilterTolerance: - overrideState: 0 - value: 0 - blurTolerance: - overrideState: 0 - value: -4.6 - upsampleTolerance: - overrideState: 0 - value: -12 - thicknessModifier: - overrideState: 0 - value: 1 - directLightingStrength: - overrideState: 0 - value: 0 - radius: - overrideState: 0 - value: 0.25 - quality: - overrideState: 0 - value: 2 --- !u!114 &4497101660291343525 MonoBehaviour: m_ObjectHideFlags: 3 @@ -1421,50 +1325,3 @@ MonoBehaviour: - 0.5 - 0.5 - 0.5 ---- !u!114 &7912138405537174518 -MonoBehaviour: - m_ObjectHideFlags: 3 - 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: 48a79b01ea5641d4aa6daa2e23605641, type: 3} - m_Name: Bloom - m_EditorClassIdentifier: - active: 1 - enabled: - overrideState: 1 - value: 1 - intensity: - overrideState: 1 - value: 1 - threshold: - overrideState: 0 - value: 1 - softKnee: - overrideState: 0 - value: 0.5 - clamp: - overrideState: 0 - value: 65472 - diffusion: - overrideState: 0 - value: 7 - anamorphicRatio: - overrideState: 0 - value: 0 - color: - overrideState: 0 - value: {r: 1, g: 1, b: 1, a: 1} - fastMode: - overrideState: 0 - value: 0 - dirtTexture: - overrideState: 0 - value: {fileID: 0} - defaultState: 1 - dirtIntensity: - overrideState: 0 - value: 0 diff --git a/Assets/Scenes/MainScene.unity b/Assets/Scenes/MainScene.unity index 311e36d..1ea1c1e 100644 --- a/Assets/Scenes/MainScene.unity +++ b/Assets/Scenes/MainScene.unity @@ -51,7 +51,7 @@ LightmapSettings: m_IndirectOutputScale: 1 m_AlbedoBoost: 1 m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 + m_EnableBakedLightmaps: 0 m_EnableRealtimeLightmaps: 0 m_LightmapEditorSettings: serializedVersion: 12 @@ -2603,7 +2603,7 @@ Light: m_InnerSpotAngle: 21.80208 m_CookieSize: 10 m_Shadows: - m_Type: 2 + m_Type: 0 m_Resolution: -1 m_CustomResolution: -1 m_Strength: 0.5 @@ -17579,7 +17579,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1585922906} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: c520d478f3d2445429bd7ac9c92b03a3, type: 3} m_Name: @@ -24724,6 +24724,11 @@ PrefabInstance: propertyPath: debugLayer.lightMeter.showCurves value: 1 objectReference: {fileID: 0} + - target: {fileID: 6125707628839966535, guid: 558201eae20fa5540a826edb23937665, + type: 3} + propertyPath: antialiasingMode + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6125707630481988370, guid: 558201eae20fa5540a826edb23937665, type: 3} propertyPath: GameState @@ -24862,7 +24867,7 @@ PrefabInstance: - target: {fileID: 8702400494665140028, guid: 558201eae20fa5540a826edb23937665, type: 3} propertyPath: Radius.Array.data[0] - value: 40 + value: 50 objectReference: {fileID: 0} - target: {fileID: 8702400494665140028, guid: 558201eae20fa5540a826edb23937665, type: 3} @@ -24938,11 +24943,6 @@ PrefabInstance: propertyPath: ShowInEditor value: 0 objectReference: {fileID: 0} - - target: {fileID: 5133887194504435357, guid: 8cf3939d3cb6e684c8ac9618e68c8259, - type: 3} - propertyPath: DisableOnStart - value: 0 - objectReference: {fileID: 0} - target: {fileID: 6166170817692975782, guid: 8cf3939d3cb6e684c8ac9618e68c8259, type: 3} propertyPath: m_LocalPosition.x diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset index 7b7658d..d5415e0 100644 --- a/ProjectSettings/QualitySettings.asset +++ b/ProjectSettings/QualitySettings.asset @@ -4,7 +4,7 @@ QualitySettings: m_ObjectHideFlags: 0 serializedVersion: 5 - m_CurrentQuality: 5 + m_CurrentQuality: 1 m_QualitySettings: - serializedVersion: 2 name: Very Low @@ -18,7 +18,7 @@ QualitySettings: shadowCascade2Split: 0.33333334 shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} shadowmaskMode: 0 - blendWeights: 1 + skinWeights: 1 textureQuality: 1 anisotropicTextures: 0 antiAliasing: 0 @@ -40,11 +40,12 @@ QualitySettings: asyncUploadBufferSize: 16 asyncUploadPersistentBuffer: 1 resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} excludedTargetPlatforms: [] - serializedVersion: 2 - name: Low - pixelLightCount: 0 - shadows: 0 + name: Low (Performance Build) + pixelLightCount: 2 + shadows: 1 shadowResolution: 0 shadowProjection: 1 shadowCascades: 1 @@ -53,11 +54,11 @@ QualitySettings: shadowCascade2Split: 0.33333334 shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} shadowmaskMode: 0 - blendWeights: 2 + skinWeights: 2 textureQuality: 0 anisotropicTextures: 0 antiAliasing: 0 - softParticles: 0 + softParticles: 1 softVegetation: 0 realtimeReflectionProbes: 0 billboardsFaceCameraPosition: 0 @@ -75,6 +76,7 @@ QualitySettings: asyncUploadBufferSize: 16 asyncUploadPersistentBuffer: 1 resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} excludedTargetPlatforms: [] - serializedVersion: 2 name: Medium @@ -88,7 +90,7 @@ QualitySettings: shadowCascade2Split: 0.33333334 shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} shadowmaskMode: 0 - blendWeights: 2 + skinWeights: 2 textureQuality: 0 anisotropicTextures: 1 antiAliasing: 0 @@ -110,6 +112,7 @@ QualitySettings: asyncUploadBufferSize: 16 asyncUploadPersistentBuffer: 1 resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} excludedTargetPlatforms: [] - serializedVersion: 2 name: High @@ -123,7 +126,7 @@ QualitySettings: shadowCascade2Split: 0.33333334 shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} shadowmaskMode: 1 - blendWeights: 2 + skinWeights: 2 textureQuality: 0 anisotropicTextures: 1 antiAliasing: 0 @@ -145,6 +148,7 @@ QualitySettings: asyncUploadBufferSize: 16 asyncUploadPersistentBuffer: 1 resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} excludedTargetPlatforms: [] - serializedVersion: 2 name: Very High @@ -158,7 +162,7 @@ QualitySettings: shadowCascade2Split: 0.33333334 shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} shadowmaskMode: 1 - blendWeights: 4 + skinWeights: 4 textureQuality: 0 anisotropicTextures: 2 antiAliasing: 2 @@ -180,6 +184,7 @@ QualitySettings: asyncUploadBufferSize: 16 asyncUploadPersistentBuffer: 1 resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} excludedTargetPlatforms: [] - serializedVersion: 2 name: Ultra @@ -193,7 +198,7 @@ QualitySettings: shadowCascade2Split: 0.33333334 shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} shadowmaskMode: 1 - blendWeights: 4 + skinWeights: 4 textureQuality: 0 anisotropicTextures: 2 antiAliasing: 2 @@ -215,6 +220,7 @@ QualitySettings: asyncUploadBufferSize: 16 asyncUploadPersistentBuffer: 1 resolutionScalingFixedDPIFactor: 1 + customRenderPipeline: {fileID: 0} excludedTargetPlatforms: [] m_PerPlatformDefaultQuality: Android: 2