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.
- 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.
- I tried to create a procedural mesh and each spline has its own section. Very low FPS.
- 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?