Too many movable static instances

DDemon
Mon, 05 Apr 2021 21:26:57 +0000
Asset Creation

Good evening, I am creating a space game similar to space engineers, and my dynamic ship is built from thousands of static instances. At first, I had a lot of lag so I found and fixed the sources one by one, such as collision, lighting, and general tweaks.

Now the last problem is the most problematic when the ship moves the game lags, I found out that it’s because I have too many instances so when the ship moves it updates thousands of them to move too. The solution to this problem is quite simple to add most of the instances together, of course, I prefer not to do that because I would like to have armor, walls, and props separated. If I add them all together I will have a lot of mesh duplicates as there is variety in my props.

I thought maybe to add them all together(the props) and just mask the ones that I don’t need, but I suspect it will tank the performance because of the big invisible vertex count.

I would like to hear your opinion, have I missed something? Maybe I don’t know of some tool in unreal? Maybe I just overthinking it, please every opinion helps.

Thanks in advance.

5 posts - 1 participant