Minor startup performance improvements (#2177)

changes:

Reduced Asteroid setup time by ~4 seconds on average.
Fixed a bug where jump-to-turf may have not worked on mine turfs.
Possible minor startup time improvements for SSair and Xenoarch.
This commit is contained in:
Lohikar
2017-05-04 16:51:47 -05:00
committed by skull132
parent 6f1c7adb1e
commit f7d150d7a6
4 changed files with 7 additions and 7 deletions
@@ -19,11 +19,7 @@
new /datum/random_map/noise/ore(null, 0, 0, 5, 64, 64)
new /datum/random_map/noise/ore(null, 0, 0, 4, 64, 64)
new /datum/random_map/noise/ore(null, 0, 0, 3, 64, 64)
var/counting_number
for(var/turf/simulated/open/chasm in world)
counting_number += 1
chasm.update()
var/counting_result = "Total number of chasms: [counting_number]"
var/counting_result = "Total number of chasms: [SSopenturf.openspace_turfs.len]"
admin_notice(span("danger", counting_result))
game_log("ASGEN", counting_result)
@@ -19,7 +19,7 @@ var/datum/controller/subsystem/xenoarch/SSxenoarch
/datum/controller/subsystem/xenoarch/Initialize(timeofday)
//create digsites
for(var/turf/simulated/mineral/M in block(locate(1,1,1), locate(world.maxx, world.maxy, world.maxz)))
for(var/turf/simulated/mineral/M in turfs)
if(isnull(M.geologic_data))
M.geologic_data = new/datum/geosample(M)