Hello,
I am working with LineRenderers and are updating them in Update. It’s working well, however, it seems that accessing the LineRenderer.widthCurve causes memory to be allocated.
I have confirmed by disabling the LineRenderer that this is in-fact one of our biggest performance bottlenecks at the moment, so I am quite sure that this is worth pursuing further
Our usage of the LineRenderer looks like this, it’s like a ‘Rope’ that the character swings on
It’s made up of 2 LineRenderers, the one with the stripes that are at the center, and the one in the background, which is an ‘Outline’ of the Rope.
And the code looks like this:
Basically the Outline of the rope is matching the widthCurve of the Rope itself, and to do that, we need to access the widthCurve of the Rope
Just wondering if there’s a solution here, or will I need to look at a different Line drawing solution?
Thanks