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 leak in game flow #16

Closed
dixx opened this issue Feb 11, 2014 · 6 comments
Closed

memory leak in game flow #16

dixx opened this issue Feb 11, 2014 · 6 comments
Assignees
Labels

Comments

@dixx
Copy link
Owner

dixx commented Feb 11, 2014

Steps to reproduce:

  • run compiled game, watch the memory it consumes
  • click repeatedly on "Fortsetzen", about 10 times
  • wait for 2 minutes

Actual behavior:
the memory consumption goes up and does not go down by itself

Expected behavior:
the memory consumption goes up and then goes down immediately, latest after 1 minute.

@dixx dixx added bug labels Feb 11, 2014
@dixx dixx self-assigned this Feb 11, 2014
@dixx dixx added wontfix and removed in progress labels Feb 11, 2014
@dixx
Copy link
Owner Author

dixx commented Feb 11, 2014

Did not wait long enough for Irrlicht garbage collector to start. Not a bug.
...
Irrlicht has no garbage collection!

@dixx dixx closed this as completed Feb 11, 2014
@dixx dixx added in progress and removed wontfix labels Feb 11, 2014
@dixx dixx reopened this Feb 11, 2014
@dixx
Copy link
Owner Author

dixx commented Feb 11, 2014

after inserting ObjectManager and such, the memory leak was clearly visible again. it is about 100MB atm.

@dixx
Copy link
Owner Author

dixx commented Feb 11, 2014

the meshes seem to remain in memory, and there is an additional texture added every time the game is loaded.

@dixx
Copy link
Owner Author

dixx commented Feb 11, 2014

there are still 25MB memory leak every turn. Check Ground.cpp and the virutal file system.

@dixx dixx closed this as completed Feb 11, 2014
@dixx dixx reopened this Feb 11, 2014
@dixx
Copy link
Owner Author

dixx commented Feb 11, 2014

to check:

  • internal images
  • dynamic lights
  • virtual file system

@dixx dixx closed this as completed Feb 13, 2014
@dixx dixx reopened this Feb 13, 2014
dixx added a commit that referenced this issue Feb 13, 2014
@dixx
Copy link
Owner Author

dixx commented Feb 13, 2014

the memory still leaks, somewhere in Ground, MapTiles or Collision.

dixx added a commit that referenced this issue Feb 16, 2014
dixx referenced this issue Feb 18, 2014
to be able to transform it independently of other occurences. The copy
is removed, but the original mesh is not for some reason. Investigate!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant