Skip to content

Commit 48afef4

Browse files
committed
Disable pooling for now as performance seems worse (tested on .NET 4.5).
1 parent 9be9f3a commit 48afef4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*.orig
2727
*.mlpd
2828
*.vspx
29+
*.diagsession
2930
TestResult.xml
3031
obj/
3132
.vscode/

LibTessDotNet/Sources/Tess.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,8 @@ public void Tessellate(WindingRule windingRule, ElementType elementType, int pol
722722
OutputPolymesh(elementType, polySize);
723723
}
724724

725-
_mesh.Free();
725+
// Pooling disabled, performance is worse with pooling
726+
//_mesh.Free();
726727
_mesh = null;
727728
}
728729
}

0 commit comments

Comments
 (0)