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
Information New free asset: Converter For Dreamteck Splines _Aka_ 0 0 07-19-2024, 08:27 PM
Last Post: _Aka_
Information New free asset: Converter For Unity Splines _Aka_ 20 61 07-19-2024, 05:15 PM
Last Post: _Aka_
  Invisible Gizmos In Latest Curvy Splines orrenravid1 1 5 06-11-2024, 07:36 AM
Last Post: _Aka_
  Twisting Splines ZiggZagg 6 14 05-14-2024, 04:48 PM
Last Post: _Aka_

Forum Jump: