From 67c604959c1bbcf549498759dbd166f876f9bb7c Mon Sep 17 00:00:00 2001 From: vis2k Date: Sat, 6 Jun 2020 11:06:11 +0200 Subject: [PATCH] 2k Demo: enable GPU Instancing for Monster & Player materials to reduce batches from 8k to 26 when drawing all 2k monsters --- .../Examples/Benchmarks/2k NetworkTransforms/Materials/Red.mat | 2 +- .../Benchmarks/2k NetworkTransforms/Materials/White.mat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Examples/Benchmarks/2k NetworkTransforms/Materials/Red.mat b/Assets/Mirror/Examples/Benchmarks/2k NetworkTransforms/Materials/Red.mat index ffb2fa0ee..5c2496899 100644 --- a/Assets/Mirror/Examples/Benchmarks/2k NetworkTransforms/Materials/Red.mat +++ b/Assets/Mirror/Examples/Benchmarks/2k NetworkTransforms/Materials/Red.mat @@ -11,7 +11,7 @@ Material: m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_ShaderKeywords: _EMISSION m_LightmapFlags: 0 - m_EnableInstancingVariants: 0 + m_EnableInstancingVariants: 1 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {} diff --git a/Assets/Mirror/Examples/Benchmarks/2k NetworkTransforms/Materials/White.mat b/Assets/Mirror/Examples/Benchmarks/2k NetworkTransforms/Materials/White.mat index 07c30213a..aaf30878a 100644 --- a/Assets/Mirror/Examples/Benchmarks/2k NetworkTransforms/Materials/White.mat +++ b/Assets/Mirror/Examples/Benchmarks/2k NetworkTransforms/Materials/White.mat @@ -11,7 +11,7 @@ Material: m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_ShaderKeywords: _EMISSION m_LightmapFlags: 0 - m_EnableInstancingVariants: 0 + m_EnableInstancingVariants: 1 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {}