Closed McMurdo42 closed 2 years ago
I think that python doesn't run powers that well so there might be a way to optimize this.
popdensityeffect = (-0.5 * (((2 * (0.01 (alive_organisms - 3000))) - 1) / ((2 * (0.01 (alive_organisms - 3000))) + 1))) + 0.5
Just moved it outside the function so that it is only run once per cycle.
I think that python doesn't run powers that well so there might be a way to optimize this.