05-20-2019, 04:01 PM
(This post was last modified: 05-20-2019, 04:20 PM by UsernameHed.)
Here SplineController Update take 0.53ms, wich is enormous for only one call.
There are a LOT of if(), switch statement every frame in the function InitializedApplyDeltaTime, ComputeTargetPositionAndRotation for exemple
A Simple InterpolateFast(percent + speed) wouldn't be more efficient ?
An optimise SplineController from a static spline should just pick a value in an array of precalculated point. (2 value, an Vector3 and a Quaternion) I don't know if it's the case, and how to have a faster SplineController.