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
  Connections during speed change 3583Bytes 8 390 04-05-2019, 01:12 PM
Last Post: _Aka_
  Adding multiple splines to one connection dazz777 3 356 03-07-2019, 10:44 AM
Last Post: _Aka_
  Connections handling > change by code dazz777 5 465 03-01-2019, 02:18 PM
Last Post: _Aka_
  smooth connection of two splines. Lukango 2 393 01-30-2019, 12:55 PM
Last Post: _Aka_

Forum Jump: