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

Unload Lazily loaded resources on load/exit or high memory usage. #51

Open
finnhartshorn opened this issue Aug 25, 2024 · 0 comments
Open

Comments

@finnhartshorn
Copy link
Member

As part of #46 resources are lazily loaded as they are used. To prevent running out of memory resources should unloaded when a new save is loaded or the user exits to the main menu. We should also unload resources via some LRU mechanism if the resource usage approaches some predefined limit (sane default but user can override up to ~3gb)

finnhartshorn added a commit that referenced this issue Sep 8, 2024
Description

Load both OpenZT data and Zoo Tycoon Data from each .ztd, based on ztd_type in meta.toml
Proposed Changes

    Addresses 

Combined OpenZT and vanilla mods #44
Adds lazy loading of resources rather than loading all resources on start (to be expanded in

    Unload Lazily loaded resources on load/exit or high memory usage. #51)

Checklist

Docs
* Add documentation for combined vanilla and OpenZT mods GoosiferIO/ZooBerry-Docs#2
* Manually tested
* Unit tests (where possible)
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

No branches or pull requests

1 participant