mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-15 00:54:16 +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:
@@ -266,7 +266,6 @@ var/list/gamemode_cache = list()
|
||||
var/static/radiation_material_resistance_divisor = 1
|
||||
var/static/radiation_lower_limit = 0.35 //If the radiation level for a turf would be below this, ignore it.
|
||||
|
||||
var/static/random_submap_orientation = FALSE // If true, submaps loaded automatically can be rotated.
|
||||
var/static/autostart_solars = FALSE // If true, specifically mapped in solar control computers will set themselves up when the round starts.
|
||||
|
||||
// New shiny SQLite stuff.
|
||||
@@ -943,9 +942,6 @@ var/list/gamemode_cache = list()
|
||||
if("ipr_minimum_age")
|
||||
config.ipr_minimum_age = text2num(value)
|
||||
|
||||
if("random_submap_orientation")
|
||||
config.random_submap_orientation = 1
|
||||
|
||||
if("autostart_solars")
|
||||
config.autostart_solars = TRUE
|
||||
|
||||
|
||||
@@ -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