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
  Possible to jump from platform to platform with Curvy splines? yun844 1 4 01-04-2022, 11:47 AM
Last Post: _Aka_
Information 50% discount on Curvy Splines _Aka_ 0 6 12-15-2021, 11:19 AM
Last Post: _Aka_
  Curvy not appearing in Unity 2019.2.14f1 bmacdonald1986 5 3,110 11-25-2021, 10:52 AM
Last Post: _Aka_
  Is Curvy splines appropriate to build city streets? atantoine 3 248 11-17-2021, 12:03 PM
Last Post: _Aka_

Forum Jump: