-
Notifications
You must be signed in to change notification settings - Fork 12
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
Major memory leak #7196
Comments
If you take the terrain out does it still leak? |
I did some testing and it seems to be coralated to the number of terrain chunks. If no chunks spawn memory is fine. If one chunk is spawned the memory leaks a few percent each run. (3 - 5 %) with a 3x3 grid of chunks it starts to accumulate but at a lesser rate. ( 10% ) 5x5 chunks gives what was seen in the video. |
did a test with a new less complex component to remove variables. |
i forgot to specify but the memory leak is on the GPU |
Describe the bug
my project appears to have a large memory leak even after nulling variables on game stop
I don't think there is any crazy code that should be causing this big of a leak.
To Reproduce
Link 1: https://docs.google.com/document/d/1d_84L7S8mSMGZ5byrttl1JZUnMmAD8VurPaXAe0ZdV0/edit?usp=sharing
Link 2: https://pastebin.com/5UGRNJsi
here is the code.
if you plan on running the code, attach the above component to an empty object
make a terrain prefab this terrain file: https://drive.google.com/file/d/1OCyCgHgc_YzeO5RhBnFd3Kw-jCRWiTXa/view?usp=sharing
and set the chunk spacing to 4988
all the other settings shouldn't be required
Expected behavior
allocated memory to decrease when game stoped
Media/Files
2024-12-17.22-16-27.mp4
Additional context
No response
The text was updated successfully, but these errors were encountered: