Infinite Self-solar ratios


Adds the 'infinite energy' objects. The ratios are actually a little *worse* than perfect solar, at the cost of not requiring a "Perfect Setup"

Content
5 years ago
0.16
4
Power

g "Less laggy than perfect-ratio solars" is not true.

5 years ago

Just so you know, placing just two of your entities will be more laggy than perfect ratio solar. Solar panels and accumulators are both O(1). You can't make something that is O(n) faster than that.

5 years ago

Solars have to calculate max power * percentage based on time and day, so add time for the if(time) statements, * by time, etc.

The Entity just does "add max power" - ignores time of date.

Basically:
Solars:every tick, if(time) add(power) else if(different time) add(0 power) else add(power based on what% of day and night)
The Entity: every tick, add(power)

5 years ago

Solar panel power production is 4 lines of code for an unlimited amount of solar panels. Electric energy interface power production is 11 lines of code executed for every electric energy interface that exists in the game.

No matter what you do, the Electric Energy Interface will take more CPU time to calculate than solar panels because 2 lines of the solar panel logic is executed regardless of even having solar panels in the electric network.

New response