niels747 / 2D-Weather-Sandbox

Two-dimensional, realtime, interactive simulation of earth's troposphere.
https://niels747.github.io/2D-Weather-Sandbox/
GNU General Public License v3.0
81 stars 27 forks source link

Improve Precipitation Spawning System #118

Closed niels747 closed 3 months ago

niels747 commented 5 months ago

The current Precipitation Spawning System has some problems such as inconsistent spawn rates because of bad pseudorandom number generation, or bad / duplicate seeds. This caused droplets to overlap each other perfectly, or not spwan at all sometimes.

Great pseudorandom number generation is the first step to fixing the spawning system. Ensuring good unique seeds for each droplet at all times is the most difficult task.