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
  What is the performance of Curvy in iOS/Android ? codehawk64 5 418 09-01-2021, 10:30 AM
Last Post: _Aka_
  Curvy 7.1.5 is live _Aka_ 0 135 08-20-2021, 03:40 PM
Last Post: _Aka_
  Curvy Spline can't export connection? Yang Yi 1 244 07-31-2021, 03:09 PM
Last Post: _Aka_
  ScanConnections() causes heavy load in play mode, even with all Curvy objects removed bennett 5 398 07-23-2021, 03:32 PM
Last Post: bennett

Forum Jump: