game state checks (updating) question
Posted: Thu Jan 21, 2016 3:46 am
I've been looking into mods more closely lately, having done only minor tweaks to mods or the game in the past. I had always heard that Treefarm slows the game down, and I just read a thread that says once you get a lot of them it's because the game has to do a status check a whole bunch. In other words, I guess a mod can be "too busy" and clog up the game.
Thus I was wondering, how often is too often? If I wanted an item to check for the state of other things, what's a good balance? For example, if I wanted something to check if something has an item in it, or perhaps if turrets have fired, or if an enemy has entered an area. Checking too often is obviously bad, but checking too rarely would be dumb too. I hope this makes sense, because I'm not amazing at this, obviously.
Edit: This is the post I was referring to: https://forums.factorio.com/forum/vie ... 34&t=19258 and this specifically:
Thus I was wondering, how often is too often? If I wanted an item to check for the state of other things, what's a good balance? For example, if I wanted something to check if something has an item in it, or perhaps if turrets have fired, or if an enemy has entered an area. Checking too often is obviously bad, but checking too rarely would be dumb too. I hope this makes sense, because I'm not amazing at this, obviously.
Edit: This is the post I was referring to: https://forums.factorio.com/forum/vie ... 34&t=19258 and this specifically:
The problem is, when you have LOTS of treefarms, each one has that 60 tick delay. So with 60 treefarms you would at best get one updating every tick. And this REALLY lags the game.