Variable Production rates for machines
term2112 opened this issue ยท 1 comments
Please use the search functionality before reporting an issue. Also take a look at the closed issues!
Issue description: When a machine does not have enough material or energy for it's own operation, it causes it to stutter which in turn causes huge fps drops. For example, if you have a machine using 150j/t and are only able to supply 50j/t, the machine will start start turning on and off really fast "stuttering" when it reaches enough energy to produce the item. This issue is also prevalent with more advanced tier gas using/producing machines where having different production rates causes multiple machines to stutter (x4 ore processing setup).
-an easy way to fix this issue is to add a certain delay to machines so that they are only able to turn on an off once every half second, this helps reduce the load on the computer.
-eventually a variable rate production may be implemented where a machine will only produce the amount of material that is needed or at a rate by which the power is supplied
-this is similar to the enhancement in #5784
Version (make sure you are on the latest version before reporting):
Forge: 31.1.0
Mekanism: 9.9.8
This is in part due to the fact that when flattening things to not use metadata I decided to make the state of if the machine is active be properly stored in the blockstate. I still need to go back through at some point and try to see if there is a good way to re-implement some of the thresholds we added in 1.12 to make machines not "flicker" on and off as much.