louis-e / arnis

Arnis - Generate cities from real life in Minecraft
GNU General Public License v3.0
432 stars 23 forks source link

Memory improvements #78

Closed scd31 closed 1 month ago

scd31 commented 1 month ago

There is probably more that could be done here, but I'd say this fixes #72 and #63. My city took 40GB of RAM originally, and then 20GB after #74. It now only takes 2-3GB of RAM for the same city.

The main improvement comes from reducing the size of the Block struct. It's now only 1 byte long. This has also improved performance a bit.

louis-e commented 1 month ago

Amazing, I can't keep up with my changes since you're so fast haha! Huge thanks for your contributions. Sorry for being a bit late on merging them, I'm trying to find some more time for Arnis again. I'm really motivated on pushing the development of this project forward to a new release. :)

scd31 commented 1 month ago

No worries at all!