Allow bigger cache now that we do less clipping

This commit is contained in:
ahocevar
2019-01-25 01:30:16 +01:00
parent 4f487c4df1
commit 59cf0c31b6

View File

@@ -78,7 +78,7 @@ class TileSource extends Source {
const canUseScreen = 'screen ' in self;
const width = canUseScreen ? (screen.availWidth || screen.width) : 1920;
const height = canUseScreen ? (screen.availHeight || screen.height) : 1080;
cacheSize = 2 * Math.ceil(width / tileSize[0]) * Math.ceil(height / tileSize[1]);
cacheSize = 4 * Math.ceil(width / tileSize[0]) * Math.ceil(height / tileSize[1]);
}
/**