Skip to content

Conversation

@Phoenix-Starlight
Copy link
Contributor

When loading a single model/blockstate, a Resource has its BufferedReader reader opened but never closed. This leaks away resources/native memory such as Inflater (traceable via jemalloc). This is possibly slow and insidious, noticeable after several hours of gameplay.
This PR fixes it so it is auto closed and is confirmed to be working on 1.20 and will work on 1.19.4, due to the methods fixed being identical across the branches.

@embeddedt embeddedt merged commit 5fef7dc into embeddedt:1.19.4 Aug 31, 2023
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.

2 participants