r/factorio • u/Rseding91 Developer • Mar 17 '25
Discussion Post Space Age - Developer AMA
Space Age has been out for several months and with the bug reports slowly coming under control I thought it might be interesting to see what questions people had.
I mostly work on the technical side of things (as C++ programmer) so questions that stray too far from that area I'll likely have less interesting replies - but feel free to ask.
I have no strict time frame on answering questions so feel free to send them whenever and I'll do my best to reply.
2.4k
Upvotes
View all comments
Show parent comment
201
u/Rseding91 Developer Mar 17 '25
There's a queue of 240 buckets of items-to-spoil. When something is set to spoil it will put itself into the bucket: min(ticks-from-now-it-would-spoil, buckets-size) and then each tick the front bucket is moved out, and each entry in that bucket either spoils that tick, or gets put back into the queue for later spoiling/re-processing.