I have made a scene in which every elements are destructible with damage localization.
Those elements don't simply explode as you can see on many tutorials
When you shoot on a element, he loose a small part where you shot.
The gameobject of this small part is simply destroyed.
In order to do that, I have broken my models into hundreds of smaller parts
As expected if I put about 50 of those items infront of my camera, the game start to lag due to the thousands of meshs (or at least I think it is because of that).
I had the idea to hide the smaller pieces until you shoot on an item, but if, for some reason you shoot only one bullet on each item the final result will be the same
Any one have any idea on what I could try to implement in order to reduce lag as much as possible ?
Or is it simply a dead end?
Any help would be very appreciated.
Thanks
PS: I also tried without any elements on the small parts (no collider neither rigidbody) just to be sure the lag came from the meshs