Path-Creator icon indicating copy to clipboard operation
Path-Creator copied to clipboard

Slowdown when calculating normals to draw

Open benthroop opened this issue 5 years ago • 1 comments

Hey Sebastian -

Great tool, thanks for sharing it!

When making a long path (many hundreds of units) the number of normals to calculate and draw was getting out of hand and slowing down the editor profoundly. Maybe consider not drawing each normal or showing every N where it's not doing too many?

for (int i = 0; i < normalsVertexPath.NumPoints; i++) { normalLines[i * 2] = normalsVertexPath.GetPoint (i); normalLines[i * 2 + 1] = normalsVertexPath.GetPoint (i) + normalsVertexPath.GetNormal (i) * globalDisplaySettings.normalsLength; }

benthroop avatar Jul 11 '19 18:07 benthroop

Just wanted to follow up and say I realized after writing this that folding up the Normals foldout would make normals not draw, which is a workaround. However using the foldout as a display toggle is not obvious. Would suggest a checkbox here, possibly in the data object.

benthroop avatar Jul 12 '19 17:07 benthroop