summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/TankOnTank.java2
-rw-r--r--core/src/ch/asynk/tankontank/screens/GameScreen.java1
2 files changed, 3 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/TankOnTank.java b/core/src/ch/asynk/tankontank/TankOnTank.java
index 8083534..9373acb 100644
--- a/core/src/ch/asynk/tankontank/TankOnTank.java
+++ b/core/src/ch/asynk/tankontank/TankOnTank.java
@@ -44,6 +44,7 @@ public class TankOnTank extends Game
public void unloadAssets()
{
Gdx.app.debug("TankOnTank", "unload assets : " + (Gdx.app.getJavaHeap()/1024.0f) + "KB");
+ Gdx.app.debug("TankOnTank", "diagnostics:\n" + manager.getDiagnostics() );
manager.unload("images/map_a.png");
manager.unload("images/map_b.png");
manager.unload("images/dice.pack");
@@ -53,6 +54,7 @@ public class TankOnTank extends Game
manager.unload("images/hex.png");
// manager.unload("images/cup.jpg");
// manager.unload("images/small.png");
+ Gdx.app.debug("TankOnTank", "diagnostics:\n" + manager.getDiagnostics() );
}
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java
index 97e0089..6e0a2e0 100644
--- a/core/src/ch/asynk/tankontank/screens/GameScreen.java
+++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java
@@ -222,6 +222,7 @@ public class GameScreen extends AbstractScreen
hud.dispose();
gameStage.dispose();
UnitFactory.dispose();
+ game.unloadAssets();
}
@Override