Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory improvements #78

Merged
merged 5 commits into from
Oct 27, 2024
Merged

Memory improvements #78

merged 5 commits into from
Oct 27, 2024

Conversation

scd31
Copy link

@scd31 scd31 commented Oct 20, 2024

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
Copy link
Owner

louis-e commented Oct 27, 2024

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. :)

@louis-e louis-e merged commit c71fced into louis-e:main Oct 27, 2024
3 checks passed
@scd31
Copy link
Author

scd31 commented Oct 27, 2024

No worries at all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I can't create a world. Not enough memory.
2 participants