This commit is contained in:
Felipe Lira 2019-05-02 16:57:31 +02:00
Родитель 446a549f90
Коммит 15f55754fe
2 изменённых файлов: 27 добавлений и 18 удалений

Просмотреть файл

@ -3,12 +3,13 @@ using Unity.PerformanceTesting;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Rendering.LWRP;
using UnityEngine.TestTools;
public class RuntimePerformanceTests
{
private static readonly int warmupFrames = 10;
private static readonly int measureFrames = 200;
public const string version = "0.2.0";
public const string version = "0.3.0";
public static readonly string[] sceneNames =
{
@ -27,98 +28,98 @@ public class RuntimePerformanceTests
Builtin,
};
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _001_FillRate_LitShader_DirectionalLight()
{
yield return RunTestScene(PipelineDefine.LWRP, 0);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _002_FillRate_LitShader_MultipleLights()
{
yield return RunTestScene(PipelineDefine.LWRP, 1);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _003_RealtimeShadows()
{
yield return RunTestScene(PipelineDefine.LWRP, 2);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _004_RealtimeCascadedShadows()
{
yield return RunTestScene(PipelineDefine.LWRP, 3);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _005_Batching()
{
yield return RunTestScene(PipelineDefine.LWRP, 4);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _007_Bandwidth()
{
yield return RunTestScene(PipelineDefine.LWRP, 5);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _008_FillRate_Terrain()
{
yield return RunTestScene(PipelineDefine.LWRP, 6);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _101_FillRate_LitShader_DirectionalLight()
{
yield return RunTestScene(PipelineDefine.Builtin, 0);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _102_FillRate_LitShader_MultipleLights()
{
yield return RunTestScene(PipelineDefine.Builtin, 1);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _103_RealtimeShadows()
{
yield return RunTestScene(PipelineDefine.Builtin, 2);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _104_RealtimeCascadedShadows()
{
yield return RunTestScene(PipelineDefine.Builtin, 3);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _105_Batching()
{
yield return RunTestScene(PipelineDefine.Builtin, 4);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _107_Bandwidth()
{
yield return RunTestScene(PipelineDefine.Builtin, 5);
}
[PerformanceUnityTest]
[UnityTest, Performance]
[Version(version)]
public IEnumerator _108_FillRate_Terrain()
{

Просмотреть файл

@ -1,16 +1,24 @@
{
"dependencies": {
"com.unity.2d.sprite": "1.0.0",
"com.unity.2d.tilemap": "1.0.0",
"com.unity.ads": "2.0.8",
"com.unity.analytics": "3.3.2",
"com.unity.collab-proxy": "1.2.16",
"com.unity.package-manager-ui": "2.1.2",
"com.unity.ext.nunit": "1.0.0",
"com.unity.ide.rider": "1.0.4",
"com.unity.ide.visualstudio": "1.0.5",
"com.unity.ide.vscode": "1.0.4",
"com.unity.package-manager-ui": "2.2.0",
"com.unity.purchasing": "2.0.6",
"com.unity.render-pipelines.lightweight": "5.13.0",
"com.unity.test-framework.performance": "0.1.49-preview",
"com.unity.render-pipelines.lightweight": "6.5.2",
"com.unity.test-framework": "1.0.11",
"com.unity.test-framework.performance": "1.0.4-preview",
"com.unity.textmeshpro": "2.0.0",
"com.unity.timeline": "1.0.0",
"com.unity.xr.legacyinputhelpers": "2.0.2",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",