Fix issue with uin32-limited tilecache size in bytes restricting larger caches (which caused the flickering and bad performance on the Moon surface)

This commit is contained in:
Alexander Bock
2019-06-10 10:52:27 +02:00
parent e5acc6c69a
commit 4b405fc5a7

View File

@@ -215,7 +215,7 @@ void MemoryAwareTileCache::TextureContainer::reset() {
tex->setDataOwnership(Texture::TakeOwnership::Yes);
tex->uploadTexture();
tex->setFilter(Texture::FilterMode::AnisotropicMipMap);
tex->setFilter(Texture::FilterMode::Linear);
_textures.push_back(std::move(tex));
}
@@ -256,7 +256,7 @@ MemoryAwareTileCache::MemoryAwareTileCache()
, _numTextureBytesAllocatedOnCPU(0)
, _cpuAllocatedTileData(CpuAllocatedDataInfo, 1024, 128, 16384, 1)
, _gpuAllocatedTileData(GpuAllocatedDataInfo, 1024, 128, 16384, 1)
, _tileCacheSize(TileCacheSizeInfo, 1024, 128, 16384, 1)
, _tileCacheSize(TileCacheSizeInfo, 2048, 128, 16384, 1)
, _applyTileCacheSize(ApplyTileCacheInfo)
, _clearTileCache(ClearTileCacheInfo)
{
@@ -287,7 +287,7 @@ MemoryAwareTileCache::MemoryAwareTileCache()
);
addProperty(_tileCacheSize);
setSizeEstimated(_tileCacheSize * 1024 * 1024);
setSizeEstimated(uint64_t(_tileCacheSize) * 1024ul * 1024ul);
}
void MemoryAwareTileCache::clear() {