Skip to content

Commit

Permalink
Disable pooling for now as performance seems worse (tested on .NET 4.5).
Browse files Browse the repository at this point in the history
  • Loading branch information
speps committed Feb 13, 2016
1 parent 9be9f3a commit 48afef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*.orig
*.mlpd
*.vspx
*.diagsession
TestResult.xml
obj/
.vscode/
Expand Down
3 changes: 2 additions & 1 deletion LibTessDotNet/Sources/Tess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ public void Tessellate(WindingRule windingRule, ElementType elementType, int pol
OutputPolymesh(elementType, polySize);
}

_mesh.Free();
// Pooling disabled, performance is worse with pooling
//_mesh.Free();
_mesh = null;
}
}
Expand Down

2 comments on commit 48afef4

@AShim3D
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But how about GC allocations?

@speps
Copy link
Owner Author

@speps speps commented on 48afef4 Feb 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can try and enable UsePooling on the Tess instance and compare with/without. That feature has been added in a subsequent commit.

Please sign in to comment.