Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Avoiding runtime GC allocations on control point position change
#3
Hello, apologies for the late reply- not been able to work on this for a bit.

[Image: JE7QFbO.png]

Seems to happen in CurvySpline Refresh. Also getting allocations in the generator- I assume that is because I am moving extruded splines. Is it possible to avoid allocations on that too? Not too bad if not as I can work around it. The main thing I need is the spline to match, so good to know that should work without allocations.

If I disable the extrusion, and comment out:
Code:
controlPoints[i].SetPosition(anchors[i].transform.position);

No more allocations. If I use that line with the extrusions disabled, still allocations. If I move the spline from child of the generator objects, no allocations. So I assume spline is still finding the components and doing something, even if disabled?
Reply


Messages In This Thread
RE: Avoiding runtime GC allocations on control point position change - by Ell223 - 02-18-2024, 04:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Control Point Interpolation Overrides. rickgplus 1 530 12-11-2025, 08:52 AM
Last Post: _Aka_
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 2,136 06-07-2025, 09:44 AM
Last Post: _Aka_
  12_Train junction point richardzzzarnold 5 3,414 04-16-2025, 02:19 PM
Last Post: _Aka_
  OnAfterControlPointAdded - Control Point is null jh092 5 3,194 02-04-2025, 09:31 PM
Last Post: _Aka_

Forum Jump: