Open icarus7074 opened 3 weeks ago
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.
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.
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.
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.