How to render huge numbers of splines?

Screenshot 2023-02-04 154939

I faced with the following problem.
I have 2000+ splines (some data that describes the splines - start point, end point and tangents).
I need to somehow render them in the game world.
The problem is that I need to update the data in Tick (rebuild all splines or part of it). Some of them should contain unique materials.

  1. I tried to render the spline through the SplineMeshComponent. (each spline as a separate SplineMeshComponent). Too many components - too many draw calls and polygons. Very low FPS on tick updates.
  2. I tried to create a procedural mesh and each spline has its own section. Very low FPS.
  3. I tried InstancedStaticMeshComponent. The spline consisted of mesh segments.

What other options can you suggest for drawing a large number of splines at the same time?

Hey,

Did you find a solution to this problem ?
And if you did, can you share it ?

I think that’s what I’m looking for,
Hopefully you have an answer :slight_smile: