mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user