Skip to content
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

Open
GreaterThen0 opened this issue Dec 18, 2024 · 4 comments
Open

Major memory leak #7196

GreaterThen0 opened this issue Dec 18, 2024 · 4 comments

Comments

@GreaterThen0
Copy link

GreaterThen0 commented Dec 18, 2024

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

@aylaylay
Copy link

If you take the terrain out does it still leak?

@GreaterThen0
Copy link
Author

GreaterThen0 commented Dec 18, 2024

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.

@GreaterThen0
Copy link
Author

did a test with a new less complex component to remove variables.

https://www.youtube.com/watch?v=ShF7IBiEIUE

@GreaterThen0
Copy link
Author

i forgot to specify but the memory leak is on the GPU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

2 participants