Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ScanConnections() causes heavy load in play mode, even with all Curvy objects removed
#2
Hi
That method is used to build the list of game objects with connections for editor UI purpose (to add a gizmo next to them). So if you deactivate it, besides not having that gizmo anymore, nothing will break.
You can deactivate the automatic call to that method by going to CurvyProject.cs, and comment the following line
EditorApplication.hierarchyChanged += ScanConnections
In order for me to enhance the performance of that method, can you please help me by providing me one or more of the following:
- A reproduction case
- A screenshot of the profiler window showing the call to that method
- The number of game objects you have in your scene, the number of control points, and the number of connections.

Let me know if my work around didn't work
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: ScanConnections() causes heavy load in play mode, even with all Curvy objects removed - by _Aka_ - 07-22-2021, 07:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play() does not cause SplineController to produce expected behaviour ConCat 8 1,351 02-08-2026, 11:54 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 6,220 07-13-2025, 07:11 PM
Last Post: _Aka_
  Method of scattering objects along spline joebain 1 1,398 11-26-2024, 03:20 PM
Last Post: _Aka_
  making objects solid cielpandapie 1 1,322 10-18-2024, 12:17 AM
Last Post: _Aka_

Forum Jump: