Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable the Update of the CurvySpline
#3
Photo 
[Image: IEuqaNYBpIe_Update.PNG]
[Image: IEuqnBGekWe_CurvyController.PNG]

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.
Reply


Messages In This Thread
RE: Disable the Update of the CurvySpline - by UsernameHed - 05-20-2019, 04:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CG documentation update _Aka_ 0 267 06-19-2026, 11:13 PM
Last Post: _Aka_
  NullReferenceException when enable and disable curves with followups phaix 6 4,111 05-15-2025, 07:55 AM
Last Post: phaix
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 2,048 02-03-2025, 09:34 AM
Last Post: _Aka_
  Update and Black Friday sale _Aka_ 2 2,151 11-23-2024, 11:58 AM
Last Post: _Aka_

Forum Jump: