JimmyCushnie / TUNG

The Ultimate Nerd Game bug tracker
4 stars 0 forks source link

High Memory Usage and Slow Startup on Linux #35

Open ForLoveOfCats opened 6 years ago

ForLoveOfCats commented 6 years ago

OS: Manjaro GNU/Linux x64 w/ Plasma 5 TUNG Version: 0.2.4 Mods or Addons: None

TUNG uses 1.29 Gigabytes of RAM sitting on the main menu. image This causes excessive swapping on system with smaller amounts of RAM. Perhaps the long game startup time on Linux is related to this?

Cheers!

pipe01 commented 6 years ago

785 MB on main menu for me on Ubuntu 16.04, compared to about 200 MB on Windows.

ForLoveOfCats commented 6 years ago

0.2.5 now uses between 2.7 to 3 gigs of ram on a relatively simple world. In addition to this it fires up over 50 threads (Is this normal?). World download below.

Data Storage.zip

JimmyCushnie commented 6 years ago

In addition to this it fires up over 50 threads (Is this normal?)

No. Crap. I screwed up, 0.2.5's new system for colored component pieces is sucking up threads waaaaay more than it needs to. Looks like I'm doing a 0.2.6.

JimmyCushnie commented 6 years ago

This is absolutely baffling. I too am getting memory usage that's too high, but when I profile the game it tells me that <200MB are being used, so there's no way to tell where all that extra memory is going. image

ForLoveOfCats commented 6 years ago

This comment is intended to correct information stated earlier as well as add information already discussed via other communication methods.

End of this comment

ForLoveOfCats commented 6 years ago

I have determined that the high memory usage is not caused by a memory leak as the absurdly high memory usage is allocated on game boot up and all actions taking place after that point do not raise memory usage significantly.