I thought I had it implemented correctly, with waste and cleanup process, but my game performed weirdly. After a few turns of no waste cleanup, my environment bar shot up to 100%. I debugged, and saw that while there are 90 waste on my 100 pop planet, it would require 45 BC to clean up. However, I only have 44.5 BC of "Actual Production" (after deducting expenses for fleet), resulting in 101% for environment bar.
So I fired up MoO 1 to see what happens when I don't clean up. And I found something strange:
Turn 1: 30 Factories, 50 Pop. It generates 34 waste! Shouldn't it have only generated 30 (1 waste per factory)? The production is 43 (56). So it'd require 17 BC to clean up. However, the eco bar is set to about 75%. This makes sense if it cleans up the previous turn's waste and current turn's waste (68 waste = 34 BC cleanup).
However, when I again set no cleanup, on next turn, it now have 55 waste, and a population growth of +1 overall (despite the size now being 45, and the pop increased to 51)? Assuming that it requires 15 BC to clean up current waste, and 27.5 for last turn's waste, it'd require 42.5 BC. With production of 44 (57), the Eco is nearly 100%, just one click from full bar. Again, makes sense despite the odd waste amount and pop growth.
Hitting turn with no cleanup, I now have 69 waste, 51 population, and 44 (57) production. Eco slider is set all the way to 100, and says WASTE. This makes sense, since 15 BC is required to clean up 30 factories, plus 35 BC, totalling 50 BC, while I only have 44 production.
Another turn, now it's at 79 waste, 50 population (finally lose 1 population), and 43 (56) production.
So it looks like my game actually got it right, the only difference is the odd number of waste production. I think this may be related to what you've found with factories automatically cleaning waste up.
To sum up:
Turn 1: 34 Waste (despite there only being 30 factories)
Turn 2: 55 Waste
Turn 3: 69 Waste
Turn 4: 79 Waste
It should have looked like this, according to OSG:
Turn 1: 30 Waste
Turn 2: 60 Waste
Turn 3: 90 Waste
Turn 4: 90 Waste
So I fired up MoO 1 to see what happens when I don't clean up. And I found something strange:
Turn 1: 30 Factories, 50 Pop. It generates 34 waste! Shouldn't it have only generated 30 (1 waste per factory)? The production is 43 (56). So it'd require 17 BC to clean up. However, the eco bar is set to about 75%. This makes sense if it cleans up the previous turn's waste and current turn's waste (68 waste = 34 BC cleanup).
However, when I again set no cleanup, on next turn, it now have 55 waste, and a population growth of +1 overall (despite the size now being 45, and the pop increased to 51)? Assuming that it requires 15 BC to clean up current waste, and 27.5 for last turn's waste, it'd require 42.5 BC. With production of 44 (57), the Eco is nearly 100%, just one click from full bar. Again, makes sense despite the odd waste amount and pop growth.
Hitting turn with no cleanup, I now have 69 waste, 51 population, and 44 (57) production. Eco slider is set all the way to 100, and says WASTE. This makes sense, since 15 BC is required to clean up 30 factories, plus 35 BC, totalling 50 BC, while I only have 44 production.
Another turn, now it's at 79 waste, 50 population (finally lose 1 population), and 43 (56) production.
So it looks like my game actually got it right, the only difference is the odd number of waste production. I think this may be related to what you've found with factories automatically cleaning waste up.
To sum up:
Turn 1: 34 Waste (despite there only being 30 factories)
Turn 2: 55 Waste
Turn 3: 69 Waste
Turn 4: 79 Waste
It should have looked like this, according to OSG:
Turn 1: 30 Waste
Turn 2: 60 Waste
Turn 3: 90 Waste
Turn 4: 90 Waste
Dominus Galaxia, a Master of Orion inspired game I'm working on.