MapCache performance improvements

This commit is contained in:
Pavlos Touboulidis
2014-05-15 02:24:48 +03:00
parent 441d602a6d
commit 7d352fdad1
2 changed files with 39 additions and 30 deletions

View File

@@ -79,9 +79,9 @@ namespace OpenRA.Graphics
dirty = true;
}
if (dirty)
lock (dirtyLock)
{
lock (dirtyLock)
if (dirty)
{
texture.SetData(data, Size.Width, Size.Height);
dirty = false;