v0.9.1c: adjusted justResumed functionality to include cold starts
This commit is contained in:
parent
6e76071113
commit
0cec93ade6
|
@ -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)
|
//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
|
//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
|
//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
|
@Override
|
||||||
public void create() {
|
public void create() {
|
||||||
|
@ -149,6 +149,7 @@ public class Game implements ApplicationListener {
|
||||||
if (justResumed){
|
if (justResumed){
|
||||||
Gdx.gl.glClear(Gdx.gl.GL_COLOR_BUFFER_BIT);
|
Gdx.gl.glClear(Gdx.gl.GL_COLOR_BUFFER_BIT);
|
||||||
justResumed = false;
|
justResumed = false;
|
||||||
|
System.out.println("resuming!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user