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

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?


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[]=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.

ok, thanks for your reply!

Possibly Related Threads…
Thread Author Replies Views Last Post
Information New free asset: Converter For Unity Splines _Aka_ 9 26 05-17-2024, 09:35 AM
Last Post: _Aka_
  Twisting Splines ZiggZagg 6 11 05-14-2024, 04:48 PM
Last Post: _Aka_
  Help with procedural roads and splines ramiroflores 1 6 05-07-2024, 08:57 AM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_

Forum Jump: