mcneel / rhino3dm

Libraries based on OpenNURBS with a RhinoCommon style
MIT License
574 stars 135 forks source link

Draw performance heavily degraded when using empty strings #542

Closed holmes-mike closed 1 year ago

holmes-mike commented 1 year ago

Hopefully this is the correct repo to report this bug.

I'm using Rhino 7 on Windows. The draw calls are being made through a C# plugin using a conduit.

When calling Display.Draw2dText with empty string performance is greatly impacted. In this example my code first avoids rendering values close to zero by using empty strings, I then switch this off and include the near 0 values.

https://github.com/mcneel/rhino3dm/assets/56387624/327ada06-428a-4514-93b8-3b4f3c6daad3

dalefugier commented 1 year ago

Hey @holmes-mike, Display.Draw2dText is not included in Rhino3dm (this repo). It is included in RhinoCommon, which is included with Rhino. So I'm closing this, as there is nothing to do. I see you've posted on Discourse, which is the correct location to post issues about RhinoCommon.

-- Dale