tgstation / dev-cycles-initiative

Hub for tracking issues in the Dev Cycles Initiative
1 stars 0 forks source link

Anything that isn't a stock part does not need to be initialized by machines #29

Open Mothblocks opened 1 year ago

Mothblocks commented 1 year ago

Metal, glass, coil, circuitboards. Will investigate later the cost. Cells are considered stock parts.

Mothblocks commented 1 year ago

Related: #1

Cost appears to be 151ms.

SyncIt21 commented 1 year ago

So we close this now?

Mothblocks commented 1 year ago

I want to be confident on the time savings first

SyncIt21 commented 1 year ago

Initializations skipped/saved during map load. This is not the stack amount but the number of actual stacks that were saved from being created during mapload

/obj/item/stack/cable_coil=180
/obj/item/stack/sheet/glass=145
/obj/item/stack/sheet/iron=30
/obj/item/stack/ore/bluespace_crystal/artificial=11
/obj/item/stack/sheet/plasteel=4

How i got these numbers is by a simple message_admins() inside this if condition. then i just manually grouped & added the numbers together https://github.com/tgstation/tgstation/blob/eae6a343e347bf0b772468eae7c5bf213e0c4e61/code/game/objects/items/circuitboards/circuitboard.dm#L94-L95

if(ispath(comp_path, /obj/item/stack))
      continue

Definitely big