Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connections for large splines
#1
I'm using long Catmull Rom splines (500m - 800m)  to create rail track models and find that whenever I try to connect end CPs the performance slows down terribly (42 FPS down to 0.8 FPS). I've tried to segment the longer splines into short pieces with only 3 or 4 CPs but it helps only a little (2 FPS). I've also tried disabling Check Transform which doesn't make a great difference. If I use linear splines, however, the problem disappears.

Is there a best practice for using connections? Is it generally best to connect several short splines, or is it not recommended to use long spines?
Reply
#2
Hi,
Can you please send me a scene where I can witness the frame rate drop?
If not possible, please tell me:
  1. How many splines do you have in your scene
  2. How many control points per spline
  3. What are the caching parameters of your splines
  4. What does your game do with your splines (using Spline Controllers? Curvy Generator? ...)
  5. If the issue happen also for Bezier Splines
  6. Any other useful information
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
(01-01-2019, 11:09 PM)DekoGames Wrote: Is there a best practice for using connections? Is it generally best to connect several short splines, or is it not recommended to use long spines?

In general, it's best to have one long spline rather than a lot of small ones. Same about segments within a spline. Then, there are some special cases where the opposite is true.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#4
Thanks, the project file is big so I'll need to strip it down to the relevant parts and send an example. 

A small update -- I found that I don't have the problem when connecting one spline end to the middle point of another. In other words, it seems that connecting two long splines end-to-end is causing the slowdown.
Chip
Deko Games
dekogames.com
Reply
#5
After exchanging with DekoGames via mail, we found that the issue was due to a bug in an old Curvy version, which was fixed several versions ago. Users with a recent version should not encounter this bug.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#6
(01-03-2019, 11:33 AM)_Aka_ Wrote: After exchanging with DekoGames via mail, we found that the issue was due to a bug in an old Curvy version, which was fixed several versions ago. Users with a recent version should not encounter this bug.

Thank you for your feedback -- I have updated to the current version and performance is much better! I appreciate the fast response and guidance. Smile
Chip
Deko Games
dekogames.com
Reply
#7
You are welcome
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  Connections Problem Juton 3 16 03-06-2024, 10:41 AM
Last Post: _Aka_
  Using Unity's SplineContainer in Curvy Splines dlees9191 3 15 02-26-2024, 09:49 AM
Last Post: _Aka_

Forum Jump: