Removed unnecessary locks when updating grass/path graphics - Improved apparent performance of grass painting when FPS is high

This commit is contained in:
dexy
2018-12-05 18:26:28 +11:00
Unverified
parent a7e2c7a0b6
commit 05d3e37394
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -245,7 +245,7 @@ namespace CodeWalker.Project.Panels
var wf = ProjectForm.WorldForm;
if (wf == null) return;
lock (wf.RenderSyncRoot)
//lock (wf.RenderSyncRoot)
{
CurrentBatch.CreateInstancesAtMouse(
CurrentBatch,
@@ -270,7 +270,7 @@ namespace CodeWalker.Project.Panels
var wf = ProjectForm.WorldForm;
if (wf == null) return;
var changed = false;
lock (wf.RenderSyncRoot)
//lock (wf.RenderSyncRoot)
{
if (CurrentBatch.EraseInstancesAtMouse(
CurrentBatch,