Runtime map now loads in ~11 seconds instead of ~40, sped up various other things (#19957)

Runtime map now has a bunch of new areas / items with often-tested
stuffs, and some hard-to-put-at-runtime stuffs.
Runtime map jobs now are positioned to make it faster to reach the
aforementioned often-tested stuffs.
Runtime map doesn't generate an overmap anymore by default, which speeds
up the process.
Runtime map now loads in ~11 seconds instead of ~40 seconds as it was
before.
Updated the maploader to be faster in parsing maps.
Bapi is not engaged anymore if we're only measuring the map size, which
speeds up the process.
In fastboot we do not generate the codexes anymore, which speeds up the
process.
In fastboot and if exoplanets and away sites are not enabled, we do not
parse the map templates anymore, which speeds up the process.
Updated the icon smoothing to be faster.
Optimized cargo area code.
Other optimizations.
This commit is contained in:
Fluffy
2024-10-06 21:31:01 +00:00
committed by GitHub
parent 9636363e60
commit b8902e2e16
124 changed files with 1238 additions and 134598 deletions
-5
View File
@@ -2,11 +2,6 @@
var/map
var/descriptor = "generic ship archetype"
/singleton/submap_archetype/Destroy()
if(SSmapping.submap_archetypes[descriptor] == src)
SSmapping.submap_archetypes -= descriptor
. = ..()
// Generic ships to populate the list.
/singleton/submap_archetype/derelict
descriptor = "drifting wreck"
-25
View File
@@ -1,25 +0,0 @@
/obj/effect/submap_landmark
icon = 'icons/misc/mark.dmi'
invisibility = INVISIBILITY_MAXIMUM
anchored = TRUE
simulated = FALSE
density = FALSE
opacity = FALSE
/obj/effect/submap_landmark/joinable_submap
icon_state = "x4"
var/archetype
var/submap_datum_type = /datum/submap
/obj/effect/submap_landmark/joinable_submap/Initialize(var/mapload)
. = ..(mapload)
if(!SSmapping.submaps[name] && SSmapping.submap_archetypes[archetype])
var/datum/submap/submap = new submap_datum_type(z)
submap.name = name
submap.setup_submap(SSmapping.submap_archetypes[archetype])
else
if(SSmapping.submaps[name])
log_debug( "Submap error - mapped landmark is duplicate of existing.")
else
log_debug( "Submap error - mapped landmark had invalid archetype.")
return INITIALIZE_HINT_QDEL