Skip to content

Commit

Permalink
turned off logging for WebGL
Browse files Browse the repository at this point in the history
resulted in a dramatic performance increase for the animations
  • Loading branch information
bazola committed Jul 2, 2015
1 parent 79f11a3 commit faac4f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gdx/core/src/com/cardshifter/gdx/CardshifterGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ public void create () {
CardshifterGame.STAGE_HEIGHT = 480; //Gdx.graphics.getHeight();
}

Gdx.app.setLogLevel(Application.LOG_INFO);
Gdx.app.setLogLevel(Application.LOG_INFO);
if (Gdx.app.getType() == ApplicationType.WebGL) {
Gdx.app.setLogLevel(Application.LOG_NONE);
}

batch = new SpriteBatch();
skin = new Skin(Gdx.files.internal("data/uiskin.json"));
camera = new OrthographicCamera(STAGE_WIDTH, STAGE_HEIGHT);
Expand Down

0 comments on commit faac4f7

Please sign in to comment.