Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Curvy Refresh hierrarchy heavy on profiler
#1
Hi,

got several calls, all taking a large amount of resources according to the profiler : 

CurvySpline._RefreshHierarchy --> List.Sort

My game is always getting laggy at this call, kind of problematic.

Seems that this line in CurvySpline.cs is the culprit : 


        mControlPoints.Sort((a, b) => string.Compare(a.name, b.name));

Is there a workaround ? Tried to comment this line, but obviously nothing works anymore Smile
Reply
#2
There is no easy fix for v1.61. In 2.0 refreshment mechanism and hierarchy syncing is completely rewritten, so this will get fixed.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Unity's SplineContainer in Curvy Splines dlees9191 3 8 02-26-2024, 09:49 AM
Last Post: _Aka_
  Curvy in Unreal Engine SAMYTHEBIGJUICY 4 5 02-02-2024, 12:12 PM
Last Post: _Aka_
  Curvy discards Input Spline Range VoltDriver 3 4 11-28-2023, 07:14 PM
Last Post: _Aka_
  Problematic Curvy API XtroTheArctic 8 23 10-16-2023, 08:41 AM
Last Post: _Aka_

Forum Jump: