Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

High Memory Usage and Slow Startup on Linux #35

Open
ForLoveOfCats opened this issue Apr 6, 2018 · 6 comments
Open

High Memory Usage and Slow Startup on Linux #35

ForLoveOfCats opened this issue Apr 6, 2018 · 6 comments

Comments

@ForLoveOfCats
Copy link

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
Copy link

pipe01 commented Apr 6, 2018

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

@ForLoveOfCats ForLoveOfCats changed the title Hight Memory Usage on Linux High Memory Usage on Linux Apr 6, 2018
@ForLoveOfCats
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

ForLoveOfCats commented Apr 18, 2018

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

  • It has been determined that the performance drop in 0.2.5 was not related to high memory usage. Instead it was a cross-platform issue regarding GPU utilization.
  • It has been determined that the high thread count (50+) appears to be normal and having no ill effects to overall performance.
  • 0.2.6 has lowered RAM usage on Linux slightly but is still rather high.

End of this comment

@ForLoveOfCats
Copy link
Author

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.

@ForLoveOfCats ForLoveOfCats changed the title High Memory Usage on Linux High Memory Usage and Slow Startup on Linux Apr 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants