mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-20 07:24:42 +00:00
Reduce the size of the LRU cache by 2
This commit is contained in:
1 parent
366a1c91b8
commit
c5293ef21f
1 file changed
+1
-1
@@ -7,7 +7,7 @@ import com.limelight.LimeLog;
|
||||
|
||||
public class MemoryAssetLoader implements CachedAppAssetLoader.CachedLoader {
|
||||
private static final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);
|
||||
private static final LruCache<String, Bitmap> memoryCache = new LruCache<String, Bitmap>(maxMemory / 4) {
|
||||
private static final LruCache<String, Bitmap> memoryCache = new LruCache<String, Bitmap>(maxMemory / 8) {
|
||||
@Override
|
||||
protected int sizeOf(String key, Bitmap bitmap) {
|
||||
// Sizeof returns kilobytes
|
||||
|
||||
Reference in new issue
Block a user