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

Memory issues #968

Open
hamster6421 opened this issue Apr 16, 2024 · 8 comments
Open

Memory issues #968

hamster6421 opened this issue Apr 16, 2024 · 8 comments

Comments

@hamster6421
Copy link

My game, which I've been working on for two years, has issues where after playing the game for a while, it runs out of memory and it crashes (this is in the packaged version). It seems that there's a small increase in memory usage every time a new level is loaded, but the usage builds up over time and old assets are never unloaded and it eventually crashes. I've been trying to fix this for around a month and at this point, I've basically already tried everything I can think of to fix the issue, and it helped a little, but nothing has fixed the overall issue. Do you know of any way to fix this?

Also, I do have a good computer (16 GB RAM), and the project is about 340 MB.

@GarboMuffin
Copy link
Member

GarboMuffin commented Apr 16, 2024

what are you using to load levels? an extension?

@GarboMuffin
Copy link
Member

I guess you wouldn't need an extension to see that either, just loading costumes, yes once loaded they currently never get properly unloaded

@hamster6421
Copy link
Author

So do you know a way for me to make my game crash less?

@MeowieGamer
Copy link

I also work on this game. My computer has 32GB of ram, and even still, the project can manage to crash it. We're unable to count the game "finished" until this memory leak is resolved (which, at the moment, might be never, which sucks because we've put our heart and soul into the game.)

I have screenshots of the issue below.
The first is after 5 minutes of gameplay. The second is after 10 minutes.
Screenshot_20240417_175248
Screenshot_20240417_180047

@Sussy-OS
Copy link

Sussy-OS commented Apr 18, 2024

I also am part of Meowie Games, and just having the game open for a few minutes, my memory already went from 11.6 GB to 15.2 Will update if crashes.
Edit: 16 GB now as of 15 minutes after original message

@Da-thing
Copy link

@GarboMuffin That'd probably make a good extension idea, using a block to load/unload sprites, costumes and sounds, though it'd be really difficult to get something like that somehow working.

@Da-thing
Copy link

I also am part of Meowie Games, and just having the game open for a few minutes, my memory already went from 11.6 GB to 15.2 Will update if crashes. Edit: 16 GB now as of 15 minutes after original message

By leaving the green flag on idle? or just having turbowarp open in that project and not touching it.

@Sussy-OS
Copy link

I also am part of Meowie Games, and just having the game open for a few minutes, my memory already went from 11.6 GB to 15.2 Will update if crashes. Edit: 16 GB now as of 15 minutes after original message

By leaving the green flag on idle? or just having turbowarp open in that project and not touching it.

In my case, I just played the game as usual.

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

No branches or pull requests

5 participants