mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
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:
+7
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user