浏览代码

Revert "Revert "Merge branch 'master' into consoles-perf""

This reverts commit 628cf845cedb98c0222c62d65e0c249507bcf1eb.
/consoles-perf
sophia 3 年前
当前提交
cf98a7eb
共有 9 个文件被更改,包括 40 次插入56 次删除
  1. 2
      Assets/Scripts/Editor/LodLightmapCopy.cs
  2. 4
      Assets/Scripts/GameSystem/AppSettings.cs
  3. 6
      Assets/Scripts/GameSystem/DefaultVolume.cs
  4. 2
      Assets/Scripts/GameSystem/RaceManager.cs
  5. 4
      Assets/Scripts/Utility/Utility.cs
  6. 4
      Packages/com.verasl.water-system/Scripts/GerstnerWavesJobs.cs
  7. 16
      Packages/manifest.json
  8. 54
      Packages/packages-lock.json
  9. 4
      ProjectSettings/ProjectVersion.txt

2
Assets/Scripts/Editor/LodLightmapCopy.cs


private static void Execute()
{
if(UniversalRenderPipeline.asset.debugLevel != PipelineDebugLevel.Disabled)
if(Debug.isDebugBuild)
Debug.Log("Baking LOD Lightmap values");
var lodGroups= Object.FindObjectsOfType<LODGroup>();
foreach (var lodGroup in lodGroups)

4
Assets/Scripts/GameSystem/AppSettings.cs


// Use this for initialization
private void Awake()
{
if(UniversalRenderPipeline.asset.debugLevel == PipelineDebugLevel.Profiling)
if(Debug.isDebugBuild)
Debug.Log("AppManager initializing");
Initialize();
CmdArgs();

};
var renderScale = Mathf.Clamp(res / Screen.width, 0.1f, 1.0f);
if(UniversalRenderPipeline.asset.debugLevel == PipelineDebugLevel.Profiling)
if(Debug.isDebugBuild)
Debug.Log($"Settings render scale to {renderScale * 100}% based on {maxRenderSize.ToString()}");
maxScale = renderScale;

6
Assets/Scripts/GameSystem/DefaultVolume.cs


if (Instance != null && Instance != this)
{
if (UniversalRenderPipeline.asset.debugLevel != PipelineDebugLevel.Disabled)
if (Debug.isDebugBuild)
Debug.Log($"Extra Volume Manager cleaned up. GUID:{gameObject.GetInstanceID()}");
StopAllCoroutines();
Utility.SafeDestroy(gameObject);

Instance = this;
gameObject.name = "[DefaultVolume]";
if (UniversalRenderPipeline.asset.debugLevel != PipelineDebugLevel.Disabled)
if (Debug.isDebugBuild)
Debug.Log($"Default Volume is {gameObject.GetInstanceID()}");
Utility.QualityLevelChange += UpdateVolume;
UpdateVolume(0, Utility.GetTrueQualityLevel()); // First time set

volQualityComponent.sharedProfile = vol.OperationHandle.Result as VolumeProfile;
_loading = false;
if (UniversalRenderPipeline.asset.debugLevel == PipelineDebugLevel.Disabled) yield break;
if (!Debug.isDebugBuild) yield break;
Debug.Log(message: "Updated volumes:\n" +
$" Base Volume : {(volBaseComponent.sharedProfile ? volBaseComponent.sharedProfile.name : "none")}\n" +
$" Quality Volume : {(volQualityComponent.sharedProfile ? volQualityComponent.sharedProfile.name : "none")}\n" +

2
Assets/Scripts/GameSystem/RaceManager.cs


private void Awake()
{
if(UniversalRenderPipeline.asset.debugLevel != PipelineDebugLevel.Disabled)
if(Debug.isDebugBuild)
Debug.Log("RaceManager Loaded");
Instance = this;
}

4
Assets/Scripts/Utility/Utility.cs


var curLevel = QualitySettings.GetQualityLevel();
if (lastQualityLevel == curLevel) return;
if(UniversalRenderPipeline.asset.debugLevel != PipelineDebugLevel.Disabled)
if(Debug.isDebugBuild)
Debug.Log($"Quality level changed:{lastQualityLevel} to {curLevel}");
var realIndex = GetTrueQualityLevel(curLevel);
QualityLevelChange?.Invoke(curLevel, realIndex);

static UtilityScheduler()
{
// setup the things
if(UniversalRenderPipeline.asset.debugLevel != PipelineDebugLevel.Disabled)
if(Debug.isDebugBuild)
Debug.Log("Setting up some utilities");
EditorApplication.update += Utility.CheckQualityLevel;
}

4
Packages/com.verasl.water-system/Scripts/GerstnerWavesJobs.cs


public static void Init()
{
if(UniversalRenderPipeline.asset.debugLevel != PipelineDebugLevel.Disabled)
if(Debug.isDebugBuild)
Debug.Log("Initializing Gerstner Waves Jobs");
//Wave data
_waveCount = Water.Instance._waves.Length;

public static void Cleanup()
{
if(UniversalRenderPipeline.asset.debugLevel != PipelineDebugLevel.Disabled)
if(Debug.isDebugBuild)
Debug.Log("Cleaning up Gerstner Wave Jobs");
_waterHeightHandle.Complete();

16
Packages/manifest.json


{
"dependencies": {
"com.unity.2d.sprite": "1.0.0",
"com.unity.addressables": "1.16.10",
"com.unity.addressables": "1.16.19",
"com.unity.burst": "1.4.1",
"com.unity.cinemachine": "2.6.3",
"com.unity.burst": "1.4.8",
"com.unity.cinemachine": "2.6.5",
"com.unity.ide.visualstudio": "2.0.5",
"com.unity.ide.vscode": "1.2.3",
"com.unity.inputsystem": "1.1.0-preview.2",
"com.unity.inputsystem": "1.1.0-preview.3",
"com.unity.render-pipelines.universal": "10.2.2",
"com.unity.textmeshpro": "3.0.3",
"com.unity.timeline": "1.4.3",
"com.unity.render-pipelines.universal": "10.5.0",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.4.8",
"com.unity.ugui": "1.0.0",
"net.peeweek.gameplay-ingredients": "https://github.com/peeweek/net.peeweek.gameplay-ingredients.git",
"com.unity.modules.ai": "1.0.0",

54
Packages/packages-lock.json


"dependencies": {}
},
"com.unity.addressables": {
"version": "1.16.10",
"version": "1.16.19",
"com.unity.scriptablebuildpipeline": "1.14.1",
"com.unity.scriptablebuildpipeline": "1.15.2",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0"

"url": "https://packages.unity.com"
},
"com.unity.burst": {
"version": "1.4.1",
"version": "1.4.8",
"depth": 0,
"source": "registry",
"dependencies": {

},
"com.unity.cinemachine": {
"version": "2.6.3",
"version": "2.6.5",
"depth": 0,
"source": "registry",
"dependencies": {},

"url": "https://packages.unity.com"
},
"com.unity.ext.nunit": {
"version": "1.0.5",
"version": "1.0.6",
"depth": 2,
"source": "registry",
"dependencies": {},

},
"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
"version": "2.0.5",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.ide.vscode": {
"version": "1.2.3",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"version": "1.1.0-preview.2",
"version": "1.1.0-preview.3",
"depth": 0,
"source": "registry",
"dependencies": {},

"url": "https://packages.unity.com"
},
"com.unity.memoryprofiler": {
"version": "0.2.6-preview.1",
"version": "0.2.9-preview.3",
"depth": 0,
"source": "registry",
"dependencies": {

},
"com.unity.render-pipelines.core": {
"version": "10.2.2",
"version": "10.5.0",
"depth": 1,
"source": "registry",
"dependencies": {

},
"com.unity.render-pipelines.universal": {
"version": "10.2.2",
"version": "10.5.0",
"com.unity.render-pipelines.core": "10.2.2",
"com.unity.shadergraph": "10.2.2"
"com.unity.render-pipelines.core": "10.5.0",
"com.unity.shadergraph": "10.5.0"
"version": "1.14.1",
"version": "1.15.2",
"depth": 1,
"source": "registry",
"dependencies": {},

"version": "4.3.1",
"version": "4.3.2",
"depth": 2,
"source": "registry",
"dependencies": {},

"version": "10.2.2",
"version": "10.5.0",
"com.unity.render-pipelines.core": "10.2.2",
"com.unity.searcher": "4.3.1"
"com.unity.render-pipelines.core": "10.5.0",
"com.unity.searcher": "4.3.2"
"version": "1.1.19",
"version": "1.1.24",
"com.unity.ext.nunit": "1.0.5",
"com.unity.ext.nunit": "1.0.6",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
},

"version": "3.0.3",
"version": "3.0.6",
"depth": 0,
"source": "registry",
"dependencies": {

},
"com.unity.timeline": {
"version": "1.4.3",
"version": "1.4.8",
"depth": 0,
"source": "registry",
"dependencies": {

4
ProjectSettings/ProjectVersion.txt


m_EditorVersion: 2020.3.2f1
m_EditorVersionWithRevision: 2020.3.2f1 (aa26d59537bc)
m_EditorVersion: 2020.3.9f1
m_EditorVersionWithRevision: 2020.3.9f1 (108be757e447)
正在加载...
取消
保存