Attachment Optimization (RE_Kenshi)
RE_Kenshi [www.nexusmods.com] is required. Emkejs Mod Core [www.nexusmods.com] is also recommended.
The plugin is designed to improve performance in scenes with many NPCs. It hides less important attachment models at long distances where they are usually barely noticeable, while leaving equipment that strongly affects the character silhouette untouched, such as helmets, armor, legplates, boots, and shirts.
In a test scene with 500 NPCs, all equipped with as many slot-based items as possible and standing far away from the camera, this helped increase FPS from 15-16 to 25-28.
However, do not expect a miracle performance boost from this plugin. Outside of heavy scenes with many NPCs and lots of extra attachments, it does not provide as much performance as one might hope. In my tests, the noticeable improvement mainly appeared with a x3 population multiplier, when cities had around 500-600 NPCs. The effect may be more noticeable for players with weaker PCs.
Plugin features:
– Emkejs Mod Core support, with flexible settings for optimized attachments and hide distance. If you want more performance, you can hide all attachments, including armor and prosthetics. Settings are also available through mod-config in the mod folder. A restart is required after changing any settings.
– Support for hiding attachments added by the Extra Inventory Sections mod.
Loading order with other plugins:
– Other mods
– KenshiExtensionPlugin (if any)
– Emkejs Mod Core (if any)
– Attachment Optimization
– Other mods
Special thanks:
BFrizzleFoShizzle for the enormous work on KenshiLib and RE_Kenshi, without which this mod would not be possible.
Boron for the original idea.
Emkej for the Emkejs Mod Core API, which allowed for more convenient mod customization
I would greatly appreciate any feedback on testing the mod, especially regarding its impact on performance and stability.
If you need the source code, write to me, I will send it, since I don’t have a GitHub yet.