I have noticed a problem with my setup which seems to be a limitation by the engine…
At the moment I have disabled all the physics actors, so the only thing happening is that the destructible meshes are receiving damage and chunks are disappearing. This is what I want. My problem is the performance.
It all runs smooth, until I have between 42 and 46 DM in my level. Then suddenly every new DM I add is causing a severe framedrop. I have created a video to show it to you:
The wall I build is first only created with instances in an ISMC, and only after clicking (applying damage) they get converted to DMs. In the top left you see me printing out the amount of DM I have in the scene.
You see before I have like 40 DM every new one I add does not really affect performance, the cpu time stays at something between 9ms and 15ms. But after I exceed 42 DMs, every new DM I add causes the CPU time to increase to something like 70ms and the GPU time so something like 100ms for one or 2 frames.
Every DM has 200 fractures, so between 42 DM (8400 fractures) and 46 DM (9200 fractures) seems to be like an invisible border between “performance absolutely fine” and “unplayable”.
Do you have an idea what could cause this?