mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 19:15:11 +01:00
Add bapi-dmm to reduce startup time by... a lot (#16148)
* Add bapi-dmm, a rust maploader that goes BRRRRRRR * A few more maps switched away from file paths * Update to include 48f4879d8704cb057a (better path error handling)
This commit is contained in:
@@ -5,7 +5,6 @@ SUBSYSTEM_DEF(mapping)
|
||||
flags = SS_NO_FIRE
|
||||
|
||||
var/list/map_templates = list()
|
||||
var/dmm_suite/maploader = null
|
||||
var/obj/effect/landmark/engine_loader/engine_loader
|
||||
var/list/shelter_templates = list()
|
||||
|
||||
@@ -17,7 +16,6 @@ SUBSYSTEM_DEF(mapping)
|
||||
if(subsystem_initialized)
|
||||
return
|
||||
world.max_z_changed() // This is to set up the player z-level list, maxz hasn't actually changed (probably)
|
||||
maploader = new()
|
||||
load_map_templates()
|
||||
|
||||
if(CONFIG_GET(flag/generate_map))
|
||||
@@ -173,3 +171,10 @@ SUBSYSTEM_DEF(mapping)
|
||||
if (!Debug2)
|
||||
return // Only show up in stat panel if debugging is enabled.
|
||||
. = ..()
|
||||
|
||||
// VOREStation Edit: BAPI-dmm
|
||||
/datum/controller/subsystem/mapping/Shutdown()
|
||||
// Force bapi to drop it's cached maps on server shutdown.
|
||||
_bapidmm_clear_map_data()
|
||||
fdel("data/baked_dmm_files/")
|
||||
// VOREStation Edit End
|
||||
|
||||
Reference in New Issue
Block a user