News for hackers. Stuff that matters.
Re:Factorio Developer Discusses Optimizations Used by armchairhacker on Tuesday May 09, 2023 @09:10AM (#35873787)
It’s really nice to see that the solutions they use are really simple.

It seems like no tricky optimizations or complex algorithms, they just tick everything active every frame. The key is that they don’t tick things they don’t have to, and don’t render off-screen sprites, so “ticking” an entity is updating a tiny datastructure and maybe a few other datastructures it points to.

Re:Factorio Developer Discusses Optimizations Used by tomatotomato37 on Tuesday May 09, 2023 @09:38AM (#35874127)
They do gloss over some RAM/processor cache optimizations near the end that in my experience can get a bit wacky implementing, but yeah seems overall very simple.

I especially like the rule that nothing can exceed O(N)