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
#3
Thanks. The problem is produced because we have a large project with tens of thousands of objects in the scene (which makes a repro case hard to make). There are no curvy objects and no connections loaded, but this gets called all the time in edit and play mode even though we aren't using any curvy functions in play mode at all (we just use it as a nice tool for making static meshes)

I'll try to get you a profiler screenshot.

/edit basically you can't be calling FindGameObjectsOfType every frame, either at edit or run time, because in large scenes it's just going to always tank performance.
Reply


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

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

Forum Jump: