vertices became smaller, decrease poolitem size

This commit is contained in:
Hannes Janetzek 2012-09-07 21:11:08 +02:00
parent 18d10e744c
commit 2f0270e696
2 changed files with 3 additions and 3 deletions

View File

@ -24,6 +24,6 @@ public class ShortItem {
used = 0; used = 0;
} }
// must be multiple of 6 and 4 (expected in LineLayer/PolygonLayer) // must be multiple of 4 (expected in LineLayer/PolygonLayer)
static final int SIZE = 480; static final int SIZE = 256;
} }

View File

@ -17,7 +17,7 @@ package org.mapsforge.android.glrenderer;
import android.util.Log; import android.util.Log;
public class ShortPool { public class ShortPool {
private static final int POOL_LIMIT = 2500; private static final int POOL_LIMIT = 6000;
static private ShortItem pool = null; static private ShortItem pool = null;
static private int count = 0; static private int count = 0;