Disposing part of greased line mesh in instance mode

Hi,

So I’m using the greased line mesh and currently I’m creating a new mesh for every object. For performance purposes I’m trying to use the instance mode. It works but I would like to be able to dispose any line inside the instance after creating them but I’m not sure if this is possible. Could I dispose line 5 for example?

Thanks for the help!

cc @roland (but then I believe that since it’s constructed, you wouldn’t be able to change it without rebuild?) There might be a way though… Probably is… Best is to just wait for the creator’s answer… shouldn’t be all too long :smiley: :hourglass_flowing_sand:

2 Likes

@sulicsbalint

Yep, @mawa is right. One single mesh is created when you call the updateLazy function or when using instance mode so you can’t dispose only one single line. :frowning:

lazy mode however speeds up the creation of the line a lot:

2 Likes

I see, thank you for the information! :slight_smile:

1 Like