sullerandras / UtilizationMonitor

UtilizationMonitor: Factorio mod to see if factories are fully utilized
MIT License
0 stars 6 forks source link

Hotkey to shorttime boost tracking updates #16

Open ST-DDT opened 6 years ago

ST-DDT commented 6 years ago

Currently newly build entities start with a average of 0%. And it takes quite a while to update the long term average to the final result. This would be even more true once: https://github.com/sullerandras/UtilizationMonitor/issues/15 gets implemented

It would be nice if the was some kind of hotkey that forces the next 60 updates to directly update the long term average.

ST-DDT commented 6 years ago

I will look at this once I got the time.

ST-DDT commented 6 years ago

@sullerandras What do you think about this feature?

sullerandras commented 6 years ago

Originally it worked very similar to how you described it above: the count and capacity was different, and the count started from 0. So the percentage after 60 tick was the utilization for the first second. The percentage was getting closer and closer to the "real" utilization every second. This got lost in a refactoring: https://github.com/sullerandras/UtilizationMonitor/commit/343e94973204c5c8db3319d70e22646ceb592137#diff-2f29ee9c98c28d035046fb40285456daL7 Maybe we should bring this feature back.

Feel free to look into it, to be honest i don't have much time these days to play Factorio.