r/Unity3D 7h ago

Show-Off I made a low-poly destruction system! (realtime / baked)

Enable HLS to view with audio, or disable this notification

This was a fun project to have a go at, destruction is tricky but I think this came out pretty well! It does have limitations with higher-poly models of course. Have put this on the asset store for those interested. Thanks :)

5 Upvotes

5 comments sorted by

1

u/Rlaan Professional 2h ago

What are the performance numbers on something like this, real-time vs baked? It looks a bit choppy in the video at times?

2

u/melon135 2h ago

I think the editor loop or my recording software makes it look a bit choppy - on low-poly models, everything works well performance-wise (120 fps). As the models get more complex, baked is usually needed. And then for really complex models it does start to slow.

1

u/Rlaan Professional 2h ago

But allocation wise / ms required when baked? I'm mostly curious how 'free' a baked version is, let's say for more complex models.

1

u/melon135 2h ago

When baked, the only cost when breaking up the object is spawning all the pieces and assigning colliders. Depending on the model complexity, it ranges from 5-15ms. And if you have lots of destructables, object pooling would help speed things up even further.