浏览代码

fix additional lightdata stuff in NewBatcherBench test scenes (for shadows)

/Branch_batcher
Arnaud Carre 8 年前
当前提交
a1f0c0eb
共有 4 个文件被更改,包括 7 次插入5 次删除
  1. 9
      Assets/TestScenes/Common/Scripts/MiniProfiler.cs
  2. 3
      ProjectSettings/EditorBuildSettings.asset

9
Assets/TestScenes/Common/Scripts/MiniProfiler.cs


new RecorderEntry() { name="RenderLoop.Draw" },
// new RecorderEntry() { name="BatchRenderer.Flush" },
new RecorderEntry() { name="Shadows.Draw" },
new RecorderEntry() { name="BatchRenderer.ApplyShaderPass" },
new RecorderEntry() { name="Batch.DrawStatic" },
// new RecorderEntry() { name="gDrawBatchPointers" },
new RecorderEntry() { name="DrawBuffersBatchMode" },
// new RecorderEntry() { name="BatchRenderer.ApplyShaderPass" },
// new RecorderEntry() { name="Batch.DrawStatic" },
// new RecorderEntry() { name="DrawBuffersBatchMode" },
/*
new RecorderEntry() { name="NewBatch.Instances" },
new RecorderEntry() { name="NewBatch.Elements" },

}
*/
GUI.color = new Color(1, 1, 1, .75f);
float w = 500, h = recordersList.Length * 18 + 24;
float w = 500, h = 24 + (recordersList.Length+1) * 16 + 8;
GUILayout.BeginArea(new Rect(10, 50, w, h), "Mini Profiler", GUI.skin.window);
string sLabel = System.String.Format("<b>{0:F2} FPS ({1:F2}ms)</b>\n", 1.0f / m_AvgDeltaTime, Time.deltaTime * 1000.0f);

3
ProjectSettings/EditorBuildSettings.asset


- enabled: 1
path: Assets/TestScenes/HDTest/NewBatcherBench1.unity
guid: efeef759b5144ef4fa1cfc182ddbaea5
- enabled: 0
path: Assets/TestScenes/HDTest/NewBatcherBench2.unity
guid: 1816611d7c1a9bc41bbe1ae56076f699

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存