optimization, fix to breath, experimenting with speed

This commit is contained in:
Putnam
2021-06-13 07:31:01 -07:00
parent 5b84155ac7
commit a9db30d6d9
4 changed files with 5 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -50,7 +50,7 @@ SUBSYSTEM_DEF(air)
var/log_explosive_decompression = TRUE // If things get spammy, admemes can turn this off.
// Max number of turfs equalization will grab.
var/equalize_turf_limit = 25
var/equalize_turf_limit = 10
// Max number of turfs to look for a space turf, and max number of turfs that will be decompressed.
var/equalize_hard_turf_limit = 2000
// Whether equalization should be enabled at all.
@@ -58,11 +58,9 @@ SUBSYSTEM_DEF(air)
// Whether turf-to-turf heat exchanging should be enabled.
var/heat_enabled = FALSE
// Max number of times process_turfs will share in a tick.
var/share_max_steps = 1
// If process_turfs finds no pressure differentials larger than this, it'll stop for that tick.
var/share_pressure_diff_to_stop = 101.325
var/share_max_steps = 2
// Excited group processing will try to equalize groups with total pressure difference less than this amount.
var/excited_group_pressure_goal = 1
var/excited_group_pressure_goal = 0.25
/datum/controller/subsystem/air/stat_entry(msg)
msg += "C:{"

View File

@@ -125,7 +125,8 @@
var/obj/loc_as_obj = loc
loc_as_obj.handle_internal_lifeform(src,0)
breath.set_volume(BREATH_VOLUME)
if(breath)
breath.set_volume(BREATH_VOLUME)
check_breath(breath)
if(breath)