Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best practice for multiple splines
#1
Hello!

I need to extrude meshes out of multiple splines using Generators. The game already joins splines that can be joined but I feel like the performance could still be enhanced.

Is it better to use one generator per spline or one generator for like 5 splines or one generator for all splines? 

Also when using NOT Auto Refresh, does the Curvy Splines or Generator have any impact on performance after everything was extruded?

Thanks!
Reply
#2
Hi,

When Auto Refresh is not set, the generator has a minor overhead because the Update function gets called anyways, but that function does vurtually nothing in this case. So it should not be an issue.

Having 5 extrusions in one Generator is slightly better than 1 extrusion per generator, but what makes generators slow lays elsewhere: it's the generation of the mesh data itself.

Read this page if not done already, it might help
https://curvyeditor.com/documentation/generator/optimizing_performace?s[]=performance

In general, I would advise you to profile the editor to see what takes time. See the Unity profiler documentation to learn more about this.

If after trying all of this you can't enhance the performance, you could send me your scene and I might figure out something that can be improved further

Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Hi,

ok, thanks for your reply!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  Using Unity's SplineContainer in Curvy Splines dlees9191 3 14 02-26-2024, 09:49 AM
Last Post: _Aka_
  Distance travelled across multiple splines jh092 1 7 02-23-2024, 09:44 AM
Last Post: _Aka_
  Finding relative position across connected splines DekoGames 1 8 02-05-2024, 10:11 PM
Last Post: _Aka_

Forum Jump: