Fix All Exoplanet Atmosphere Lag (#22924)

Y'know, probably. It certainly seems to work locally!

changes:
- code_imp: "Exoplanets now cache their main outdoor atmospheric region
instead of trying to search their entire map once per second."
- code_imp: "Exoplanet atmospheric calculations now run only when
necessary using new update_revision counter."
- code_imp: "Exoplanet atmospheres now wait until all random ruins have
been placed before trying to resolve the air everywhere."
- admin: "Adds new admin debug verb, 'Toggle Non-Horizon Temperature
Graphics', which toggles all off-ship gas temp graphics to address lag
in a pinch, if still necessary, without removing actual environmental
hazard."
This commit is contained in:
Batrachophreno
2026-08-02 01:25:35 +00:00
committed by GitHub
parent 9eb7413a75
commit d2e5fbca75
7 changed files with 190 additions and 8 deletions
+7 -1
View File
@@ -6,7 +6,13 @@
/turf/simulated/proc/update_graphic(list/graphic_add = null, list/graphic_remove = null)
if(graphic_add && LAZYLEN(graphic_add))
add_vis_contents(graphic_add)
if(SSair.suppress_nonhorizon_temperature_graphics && !is_station_level(z))
for(var/obj/gas_overlay/graphic in graphic_add)
if(graphic.gas_id == GAS_HEAT || graphic.gas_id == GAS_COLD)
continue
add_vis_contents(graphic)
else
add_vis_contents(graphic_add)
if(graphic_remove && LAZYLEN(graphic_remove))
remove_vis_contents(graphic_remove)