keiwando / evolution

A sandbox game/simulator that demonstrates machine learning with evolutionary algorithms.
https://keiwan.itch.io/evolution
361 stars 56 forks source link

Memory Leak #1

Closed tpendergrass closed 4 years ago

tpendergrass commented 6 years ago

Love this simulation! had to buy it, nice work.

Myself and others are getting an out of memory error in WebGL after X amount of generations. When running locally on Windows 10, I notice that memory usage starts around 250MB and increases about 6MB per generation when simulating 40 entities for 10 seconds. This increase continues indefinitely.

When I save the simulation, exit it, and load it again, the simulation continues without issue and the memory resets back to around 250MB.

keiwando commented 6 years ago

Yes, I'm aware of that problem but I haven't had the time to profile it yet to see what exactly is happening. I'll make sure to fix this in the next big update, but it's unfortunately going to take a couple of months before I can work on this project again.

Thanks a lot for the support and the patience!

keiwando commented 4 years ago

Memory leaks should be fixed with today's v3.0.0 release.