Skip to content

Conversation

@parvit
Copy link

@parvit parvit commented Aug 5, 2025

This PR fixes #1172.

When loading projects which are bigger than usual (~40 levels) the level json caching mechanism allocates a lot of memory and requires more than 4GB of memory, which blocks the editor.

The change (differently to #1176) uses temporary files to keep the memory usage low and at the same time avoids to disable the caching altogether.

The temporary files are deleted on cache invalidation so also on project tidy at closure so no residual files should remain after projects are closed.

Please review and send feedback.

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.

Any way to support >4GB RAM allocations or save/load with a smaller mem footprint?

1 participant