Skip to content

Commit

Permalink
BitmapFontCache, set low defaults for layouts and pooledLayouts.
Browse files Browse the repository at this point in the history
Most common usage doesn't need higher capacity. When it is needed, it'll grow.
  • Loading branch information
NathanSweet committed May 10, 2024
1 parent ceb57dd commit 3f7fcb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdx/src/com/badlogic/gdx/graphics/g2d/BitmapFontCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public class BitmapFontCache {

private final BitmapFont font;
private boolean integer;
private final Array<GlyphLayout> layouts = new Array();
private final Array<GlyphLayout> pooledLayouts = new Array();
private final Array<GlyphLayout> layouts = new Array(1);
private final Array<GlyphLayout> pooledLayouts = new Array(0);
private int glyphCount;
private float x, y;
private final Color color = new Color(1, 1, 1, 1);
Expand Down

0 comments on commit 3f7fcb8

Please sign in to comment.