Memory usage increases continuously during gameplay #24
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TheZone/ScuffedMinecraft#24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While the program is running, the memory usage keeps rising until all memory is exhausted.
A few minutes after the program started:
Some time later:
I'd say this is a pretty significant issue.
Are you sure this is a general issue and not just happening when loading chunks until the render distance is being reached?
In my experience, memory usage does spike initially while chunks are loading but then stabilizes once the target render distance is reached.
My observation
At startup, memory usage is around
115M
:When the render distance is set to 10, memory usage stabilizes at around
497M
after initial loading:Increasing the render distance to 25 and render height to 10 results in a peak of around
2.6G
, which then remains steady:It took some time for all those chunks to render, but as soon as the chunks variable stopped rising, I checked btop and took the screenshots. It seems that memory usage scales predictably with render distance and height settings but doesn't continually increase once the chunks are fully loaded. The spike is probably more a function of the initial loading process rather than a persistent memory leak.
How can you check?
To verify if this behavior matches what you are seeing, you could monitor the number of chunks loaded. This should provide a better insight into whether memory usage is tied to chunk-loading or if it continues to increase abnormally over time.