Page 1 of 1

"Suspend" inactive lamps

Posted: Fri Jul 21, 2017 6:53 pm
by Mimos
Hi,

during testing a factory with the UPS mod to disable pollution, biters and everything else I could, I noticed some odd active chunks where nothing was going on. After some searching I found out that the lamps seem to be the cause, no matter if day or night.
So mabye you could just activate the lamps for a short time if they need to switch their state. This would allow many chunks in my factory to be inactive.

Maybe you could even do the same for radars because they don't seem to do much except for their animation and occasionally uncovering a tile.

Regards,
Mimos

Re: "Suspend" inactive lamps

Posted: Fri Jul 21, 2017 11:44 pm
by Rseding91
That's already a planned thing for 0.16 :) You can see in the latest FF we talked about it: https://www.factorio.com/blog/post/fff-200

But do keep in mind: "active chunks" doesn't mean anything. It's what's in the chunk that gets update() called that determines if a chunk being active actually takes any measurable CPU time.
An active chunk because of 2 lamps is not even measurable compared to an active chunk that has 200 transport belts, 50 pipes, and 20 assembling machines working.

Re: "Suspend" inactive lamps

Posted: Sat Jul 22, 2017 12:07 pm
by Mimos
Well... perfect timing. I was hoping that having chunks completely inactive would cause some significant speedup compared to chunks with minimal activity. Thanks for your quick reply, though.