05-22-2019, 02:50 PM
Hi,
First of all, read these two pages
https://curvyeditor.com/documentation/generator/optimizing_performace (this one is about curvy generators)
https://curvyeditor.com/documentation/splines/cache?s[]=performance (this one is about splines)
Then (and this is maybe something you are already aware of) the first thing to do if you want to optimize is to profile. Unity included a decent profiler https://docs.unity3d.com/Manual/Profiler.html
Also, if you use a recent Unity version you can download this useful package too https://blogs.unity3d.com/2019/05/13/introducing-the-profile-analyzer/
Then, to answer your specific questions:
First of all, read these two pages
https://curvyeditor.com/documentation/generator/optimizing_performace (this one is about curvy generators)
https://curvyeditor.com/documentation/splines/cache?s[]=performance (this one is about splines)
Then (and this is maybe something you are already aware of) the first thing to do if you want to optimize is to profile. Unity included a decent profiler https://docs.unity3d.com/Manual/Profiler.html
Also, if you use a recent Unity version you can download this useful package too https://blogs.unity3d.com/2019/05/13/introducing-the-profile-analyzer/
Then, to answer your specific questions:
- It is best to generate a mesh from a long spline than generating multiple meshes from small splines and combining them.
- If needed, Curvy can serialize and deserialize splines from/to Json. More about it here: https://curvyeditor.com/documentation/import_export (functionality available through the API too)
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.