Barotrauma

Barotrauma

More Blood
Nupaska  [developer] 30 May @ 12:06pm
Debug Commands
Debugging
The main and the only source of lags here is O(n log n) sprite sorting that happens in Showperf:Draw:Map:BackCharactersItems

There's no way to measure it separatelly so i suggest measuring the number of decals instead

Commands
reloadbloodconfig
Reloads config
reloadbloodprefabs
Reloads blood prefabs
reloadblood
Reloads both
resetbloodconfig
Resets config to default
printbloodprefabs
Prints current prefabs to console
printbloodconfig
Prints current config to console
bleed [amount] [limbcount]
Gives bleeding to controlled character on limbcount limbs
clearblood
Clears blood
spawnblood [size]
Spawns blood splatter
spawnbloodspectrum [offset]
Spawns multiple splatters in a row
spawnbloodpuddle [size]
Spawns 1000 decals on top of each other for performance testing
blooddebug [ConsoleDebug,VisualDebug]
Toggles debug
Numbers on decals in visual debug are size|living time/max lifetime
In console lambda is [0,1] value from the middle of size->lifetime transformation

Also if you want to use multiple commands at once/on hotkey use MultiCommand
Last edited by Nupaska; 30 May @ 12:07pm