Teardown

Teardown

118 ratings
Debris In Peace
5
3
2
2
3
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Type: Global
File Size
Posted
Updated
83.298 KB
Oct 29, 2023 @ 6:58am
Oct 30, 2024 @ 8:01am
10 Change Notes ( view )

Subscribe to download
Debris In Peace

Description
Merge debris originated from any static body back to world body to improve performance after destruction with minimal visual impact*.
⚠️NOTICE⚠️ THIS MOD DOES NOT IMPROVE PERFORMANCE DURING DESTRUCTION
* : Most other performance boosting mods improve scene performance by deleting smaller bodies/shapes, unavoidably affects visuals (since things got deleted). This mod doesn't delete those shapes therefore have minimal visual impact.


Features
  • Merge small debris back to world body
  • Debris falling on dynamic objects (e.g.: vehicle) would not become static unless touching a static object
  • Able to release merged debris from world body (simply grab it)*
*: Debris doesn't carry special tags so can only release those under 500 voxels


Known Issues
  • Does NOT properly handle static standalone bodies.*
  • May cause extra lag during destruction
  • Any mod that's removing "inherittags" tag on bodies can interfere this mod causing roughly 10% of debris being ignored


Preview image edited from GLaDOS's concept.
Localization Project for this mod on crowdin[crowdin.com]
*: As the developer Voxagon (Dennis) said and I quote: "Static bodies shouldn't be used. They have always been problematic, but even more so in 0.7 with new algorithm."(ref: discord message[discord.com]). If any map you're playing in have debris frozen in mid air and not falling with structures, that means the structure is made using standalone static bodies therefore should report the issue to map creator.
90 Comments
Mozzi Apr 9 @ 9:25am 
is there a reason why? no offense not trying to be mean just wish my 2 favorite mods were comptabile but i understand if u chose not to process them
YuLun  [author] Apr 9 @ 5:57am 
there is, as I've said I just chose not to process them
Mozzi Apr 9 @ 12:17am 
i understand , but is there a way to make it also freeze small debris? or is it not possible?
YuLun  [author] Apr 8 @ 7:14am 
I just chose not to process them, it simply doesn't makes much sense to me
Mozzi Apr 8 @ 5:28am 
i know they should be handled by the game, but i like keeping them so i have a mod to keep them. Is it a mod setting that debris that small doesnt get frozen, or is it impossible to make debris that small freeze? the mod that keeps small debris is a pretty popular one so a setting to set the minimum voxel debris to freeze would be nice ig but idk
YuLun  [author] Apr 7 @ 1:43pm 
debris that small should be handled by the game engine thus this mod have no control over them
Mozzi Apr 7 @ 9:18am 
I noticed very consistenly, 99% of debris under 5 voxels never get frozen ( especially with the mod that makes debris under 3 never auto despawn
Sprïnty Mar 25 @ 3:18pm 
It's sad you can't fix it. Still, amazing performance mod! Thanks for making it! :)
YuLun  [author] Mar 25 @ 2:46pm 
1: Feature of this mod otherwise you could never pick up debris when you want to
2: It's not something I could change to resolve, if the easycleaner mod really is intended to delete shapes that's part of world body. There's no fast way (as in not to lag your game while doing so) to check for body connectivity under existing API so I can't make DIP to check for floating chunks. The best I could do is increase or remove the limit for releasing shapes (currently 500 voxels)

Marjory of lags you would be experiencing are due to pile of debris constantly colliding with each other so game have to solve that hundreds even thousands times per tick. DIP reduces collision calculation required by merging debris back to world body.
DIP doesn't change number of shapes involved in rendering process, If your game is no longer lagging after DIP kicked in, it means your GPU is capable hence not necessary to do any further cleaning.
Sprïnty Mar 22 @ 12:33pm 
Hello! I found 2 issues with it (But otherwise it's a lifesaver)
1. When I look at an object INITIALLY attached to the level and press grab, it detaches. Weird but I can live with it
2. When I clean up the debris with easycleaner, some bigger chunks remain floating and I can't detach them by grabbing since they're too big... Stopping and starting physics again doesn't really work