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
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
  How could I get position in spline from "From" value in BuildRasterizedPath? Chanon 1 8 02-12-2024, 09:54 PM
Last Post: _Aka_

Forum Jump: