Can't delete previous "Add spline mesh component" meshes from spline

I’m making a gps system and the gps trail keep flooding, how can i sort of refresh those previous meshes and keep updating?
problem

Keep adding SMCs to an array, reverse loop to destroy the comps. You mention delete in the topic but refresh in the post. Not too sure where this is heading. But similar logic would apply, loop over the array of SMCs fetching spline data and apply it to the SMCs.

Oops, “delete” the meshes. I put it wrong. But yes, reverse for each loop is the way., i was already working with him. It works, but there are drops in performance. I use a for loop for the spline to be filled from a line of meshes. What could it be? A spline consists of too few points to give a huge drop in performance.

Spline mesh components are very slow if you want to update them every frame. Without knowing exactly what you’re doing (and how), it’s hard to advise.

I know well that working with splines is costly in performance, my question was about only the created meshes that end up being a separate instance. Thank you very much for your help, it gave me some light on how to solve the problem. I wasn’t using “Reverse for each loop”. :slightly_smiling_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.