Light rendering optimization

This commit is contained in:
Regalis
2015-12-19 16:02:05 +02:00
parent 4234aa2094
commit e10bffde9b
6 changed files with 52 additions and 13 deletions

View File

@@ -151,6 +151,9 @@ namespace Barotrauma
{
if (WallVertices == null || WallVertices.Length <= 0) return;
Stopwatch sw = new Stopwatch();
sw.Start();
basicEffect.World = cam.ShaderTransform
* Matrix.CreateOrthographic(GameMain.GraphicsWidth, GameMain.GraphicsHeight, -1, 1) * 0.5f;
@@ -194,6 +197,10 @@ namespace Barotrauma
}
}
sw.Stop();
Debug.WriteLine("level render: "+sw.ElapsedTicks);
}
}