Icon smoothing subsystem update (#17383)

* sfasdf

* sfsaf

* sadfas

* sdfasdf
This commit is contained in:
Fluffy
2023-09-27 10:23:15 +00:00
committed by GitHub
parent 5623822d0d
commit 870f97c1c7
34 changed files with 370 additions and 175 deletions
+3 -3
View File
@@ -48,7 +48,7 @@
var/list/atoms_to_initialise = list()
var/shuttle_state = pre_init_shuttles()
//Since queue_smooth() manually wakes the subsystem, we have to use enable/disable.
//Since SSicon_smooth.add_to_queue() manually wakes the subsystem, we have to use enable/disable.
SSicon_smooth.disable()
for (var/mappath in mappaths)
var/datum/map_load_metadata/M = maploader.load_map(file(mappath), x, y, no_changeturf = no_changeturf)
@@ -162,7 +162,7 @@
var/list/atoms_to_initialise = list()
var/shuttle_state = pre_init_shuttles()
//Since queue_smooth() manually wakes the subsystem, we have to use enable/disable.
//Since SSicon_smooth.add_to_queue() manually wakes the subsystem, we have to use enable/disable.
SSicon_smooth.disable()
for (var/mappath in mappaths)
var/datum/map_load_metadata/M = maploader.load_map(file(mappath), T.x, T.y, T.z, cropMap=TRUE)
@@ -171,7 +171,7 @@
else
SSicon_smooth.enable()
return FALSE
//initialize things that are normally initialized after map load
init_atoms(atoms_to_initialise)
init_shuttles(shuttle_state)
+4 -4
View File
@@ -307,7 +307,7 @@ var/global/dmm_suite/preloader/_preloader = new
//since we've switched off autoinitialisation, record atoms to initialise later
var/list/atoms_to_initialise = list()
//turn off base new Initialization until the whole thing is loaded
SSatoms.map_loader_begin()
SSatoms.map_loader_begin(text_ref(src))
//The next part of the code assumes there's ALWAYS an /area AND a /turf on a given tile
var/turf/crds = locate(xcrd,ycrd,zcrd)
@@ -355,7 +355,7 @@ var/global/dmm_suite/preloader/_preloader = new
for(index in 1 to first_turf_index-1)
atoms_to_initialise += instance_atom(members[index],members_attributes[index],crds,no_changeturf)
//Restore initialization to the previous value
SSatoms.map_loader_stop()
SSatoms.map_loader_stop(text_ref(src))
var/datum/grid_load_metadata/M = new
M.atoms_to_initialise = atoms_to_initialise
@@ -381,9 +381,9 @@ var/global/dmm_suite/preloader/_preloader = new
//custom CHECK_TICK here because we don't want things created while we're sleeping to not initialize
if(TICK_CHECK)
SSatoms.map_loader_stop()
SSatoms.map_loader_stop(text_ref(src))
stoplag()
SSatoms.map_loader_begin()
SSatoms.map_loader_begin(text_ref(src))
/dmm_suite/proc/create_atom(path, crds)
// Doing this async is impossible, as we must return the ref.