New update
https://leopard.hosting/dl/kykyr/Server_RBlood.zip - Fixed FPS issue, your server will no longer become laggier over time
- System now does some performance checks when creating effects, will skip effects if too many are present at the same time
- Now a max blood puddle value, default 350, if this limit is reached the system won't create any more static shapes for blood puddles until we get below this value again
- Limb reddening splash system will time out after 33ms, preventing lag when trying to splash many players with blood at the same time
- Fixed some dumb errors I made in
Armor::Damage causing the system to think all damage was occurring at the origin
New prefs:
$Pref::RBloodMod::MaxPuddles - The maximum amount of blood static shapes that are allowed at a time (default 350)
$Pref::RBloodMod::PerformanceBloodCap - The maximum amount of blood impact effects that can be created in a 50ms window (default 20)
$Pref::RBloodMod::PerformanceGibCap - The maximum amount of body gib explosions that can occur within a 1 second window (default 5)
You can increase these values to huge numbers if you want to circumvent the system entirely, and it'll just act like it did before this update (just without the bad particle effects that pwn your FPS). When tested with blowing up 64 bots at the same time, I experienced a small stutter but pretty much no drop in FPS, albeit with some ghosting lag (which is to be expected)