Aleksandr Kirillov
7 年前
当前提交
1f46d9ea
共有 36 个文件被更改,包括 1969 次插入 和 3676 次删除
-
4ScriptableRenderPipeline/LightweightPipeline/LWRP/Materials/Lightweight-StandardSimpleLighting.mat
-
6Tests/GraphicsTests/RenderPipeline/LightweightPipeline/LightweightPipelineAsset.asset
-
113Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene.unity
-
65Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/LightingData.asset
-
999Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-0_comp_dir.png
-
17Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-0_comp_dir.png.meta
-
1001Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-0_comp_light.exr
-
17Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-0_comp_light.exr.meta
-
999Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-1_comp_dir.png
-
17Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-1_comp_dir.png.meta
-
1001Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-1_comp_light.exr
-
17Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-1_comp_light.exr.meta
-
10Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/ArchesMaterial.mat
-
10Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/BloxMaterial.mat
-
21Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/ClockGlassMaterial.mat
-
11Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/ClockMaterial.mat
-
11Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/DollhouseMaterial.mat
-
10Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/DrawersMaterial.mat
-
10Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/EyesMaterial.mat
-
14Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/FluffParticleMaterial.mat
-
14Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/GunMaterial.mat
-
14Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/HearseMaterial.mat
-
14Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/HellephantMaterial.mat
-
10Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/PlanksMaterial.mat
-
14Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/PlayerMaterial.mat
-
14Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/RobotMaterial.mat
-
10Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/SpinningTopMaterial.mat
-
13Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/StarMaterial.mat
-
13Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/TrainMaterial.mat
-
14Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/WallMaterial.mat
-
14Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/ZombearMaterial.mat
-
11Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Materials/CurrentMaterials/ZombunnyMaterial.mat
-
47Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/PerfTracker.cs
-
11Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/PerfTracker.cs.meta
-
78Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/ReflectionProbe-0.exr.meta
-
1001Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/ReflectionProbe-0.exr
65
Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/LightingData.asset
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-0_comp_dir.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
1001
Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-0_comp_light.exr
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-1_comp_dir.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
1001
Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/Lightmap-1_comp_light.exr
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
public class PerfTracker : MonoBehaviour { |
|||
|
|||
const float clipLength = 20.0f; |
|||
|
|||
float elapsed = 0.0f; |
|||
float duration = 0.0f; |
|||
int frames = 0; |
|||
List<float> msData = new List<float>(); |
|||
|
|||
// Use this for initialization
|
|||
void Start () { |
|||
|
|||
} |
|||
|
|||
// Update is called once per frame
|
|||
void Update () { |
|||
float dt = Time.deltaTime; |
|||
if (elapsed >= clipLength) |
|||
{ |
|||
if (duration >= clipLength) |
|||
{ |
|||
float averageFps = frames / duration; |
|||
float averageMs = 1000.0f * duration / frames; |
|||
msData.Sort(); |
|||
float[] msArray = msData.ToArray(); |
|||
Debug.LogError("AVG FPS: " + averageFps.ToString() + ", AVG MS: " + averageMs.ToString()); |
|||
float medMs = msArray[msArray.Length / 2]; |
|||
float medFps = 1.0f / medMs; |
|||
medMs *= 1000.0f; |
|||
Debug.LogError("MED FPS: " + medFps.ToString() + ", MED MS: " + medMs.ToString()); |
|||
|
|||
Application.Quit(); |
|||
} |
|||
|
|||
msData.Add(dt); |
|||
|
|||
duration += dt; |
|||
++frames; |
|||
} |
|||
|
|||
elapsed += dt; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 5919459e925c043deaaa564893bc3890 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 4d536d9cd95ff4ac88bbbbaa37b40844 |
|||
timeCreated: 1509632247 |
|||
licenseType: Pro |
|||
TextureImporter: |
|||
fileIDToRecycleName: |
|||
8900000: generatedCubemap |
|||
externalObjects: {} |
|||
serializedVersion: 4 |
|||
mipmaps: |
|||
mipMapMode: 0 |
|||
enableMipMap: 1 |
|||
sRGBTexture: 1 |
|||
linearTexture: 0 |
|||
fadeOut: 0 |
|||
borderMipMap: 0 |
|||
mipMapsPreserveCoverage: 0 |
|||
alphaTestReferenceValue: 0.5 |
|||
mipMapFadeDistanceStart: 1 |
|||
mipMapFadeDistanceEnd: 3 |
|||
bumpmap: |
|||
convertToNormalMap: 0 |
|||
externalNormalMap: 0 |
|||
heightScale: 0.25 |
|||
normalMapFilter: 0 |
|||
isReadable: 0 |
|||
grayScaleToAlpha: 0 |
|||
generateCubemap: 6 |
|||
cubemapConvolution: 1 |
|||
seamlessCubemap: 1 |
|||
textureFormat: 1 |
|||
maxTextureSize: 2048 |
|||
textureSettings: |
|||
serializedVersion: 2 |
|||
filterMode: 2 |
|||
aniso: 0 |
|||
mipBias: 0 |
|||
wrapU: 1 |
|||
wrapV: 1 |
|||
wrapW: 1 |
|||
nPOTScale: 1 |
|||
lightmap: 0 |
|||
compressionQuality: 50 |
|||
spriteMode: 0 |
|||
spriteExtrude: 1 |
|||
spriteMeshType: 1 |
|||
alignment: 0 |
|||
spritePivot: {x: 0.5, y: 0.5} |
|||
spriteBorder: {x: 0, y: 0, z: 0, w: 0} |
|||
spritePixelsToUnits: 100 |
|||
alphaUsage: 1 |
|||
alphaIsTransparency: 0 |
|||
spriteTessellationDetail: -1 |
|||
textureType: 0 |
|||
textureShape: 2 |
|||
maxTextureSizeSet: 0 |
|||
compressionQualitySet: 0 |
|||
textureFormatSet: 0 |
|||
platformSettings: |
|||
- buildTarget: DefaultTexturePlatform |
|||
maxTextureSize: 2048 |
|||
resizeAlgorithm: 0 |
|||
textureFormat: -1 |
|||
textureCompression: 1 |
|||
compressionQuality: 100 |
|||
crunchedCompression: 0 |
|||
allowsAlphaSplitting: 0 |
|||
overridden: 0 |
|||
androidETC2FallbackOverride: 0 |
|||
spriteSheet: |
|||
serializedVersion: 2 |
|||
sprites: [] |
|||
outline: [] |
|||
physicsShape: [] |
|||
spritePackingTag: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
1001
Tests/GraphicsTests/RenderPipeline/LightweightPipeline/Scenes/040_UpgradeScene/ReflectionProbe-0.exr
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
撰写
预览
正在加载...
取消
保存
Reference in new issue