Path-Creator
Path-Creator copied to clipboard
Slowdown when calculating normals to draw
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; }
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.