From 0cec93ade6596db20cc62a603ee0f72eec1b467c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 10 Jan 2021 15:09:28 -0500 Subject: [PATCH] v0.9.1c: adjusted justResumed functionality to include cold starts --- SPD-classes/src/main/java/com/watabou/noosa/Game.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SPD-classes/src/main/java/com/watabou/noosa/Game.java b/SPD-classes/src/main/java/com/watabou/noosa/Game.java index b95ecab7d..0f3ddadfd 100644 --- a/SPD-classes/src/main/java/com/watabou/noosa/Game.java +++ b/SPD-classes/src/main/java/com/watabou/noosa/Game.java @@ -89,7 +89,7 @@ public class Game implements ApplicationListener { //FIXME this is a temporary workaround to improve start times on android (first frame is 'cheated' and only renders a black screen) //this is partly to improve stats on google play, and partly to try and diagnose what the cause of slow loading times is //ultimately once the cause is found it should be fixed and this should no longer be needed - private boolean justResumed = false; + private boolean justResumed = true; @Override public void create() { @@ -149,6 +149,7 @@ public class Game implements ApplicationListener { if (justResumed){ Gdx.gl.glClear(Gdx.gl.GL_COLOR_BUFFER_BIT); justResumed = false; + System.out.println("resuming!"); return; }