-
-
Notifications
You must be signed in to change notification settings - Fork 378
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
HTML5 memory leak #1862
Comments
Do you have a code that can reproduce the problem? |
Gave you access to my private repo. The memory runs up as soon as you load it in the html5 target. |
I built the game and it works fine. |
I contacted you on discord. |
Weird, you're right, I just built it on my old Linux laptop and no memory leak there. It must be my OS/hardware (macOS 15.1, M2 Mac mini). |
try to update flixel with |
Ok, It's a combo of my project/hardware/OS. I'm gonna comment out every line of code tomorrow until I find the line that is causing the issue and post here to close the issue. |
Ok I found the problem, the problem is debug draw can you please start the program without debug and retry? |
That's it! |
I think don't close issue because it is a problem that debug draw causes this. |
Please create the issue here: https://github.com/HaxeFlixel/flixel/issues |
Will do. |
I don't really know where to start to look into this. There's no terminal or console warnings. I was using Phaser and am now porting my game over to HaxeFlixel. I ran into a bad memory leak today in my project (a simple object catching game with pngs, spritesheets, fonts, and sounds). It ran all the way up to 150GB in a matter of seconds.
What I've tried: update haxelib, using git versions of lime/openfl/hcxpp, and using different browsers. I'm stumped so I thought I would make this public. Will happily provide private access to my repo if anyone has time to take a look.
Only is happening in the html5 target (tried debug & final options). Memory usage is fine in neko target although my sound wasn't playing which is why I tried html5 in the first place.
The text was updated successfully, but these errors were encountered: