mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 04:30:09 -05:00
Removing more warnings
This commit is contained in:
+7
-4
@@ -263,10 +263,13 @@ void MemoryAwareTileCache::put(const ProviderTileKey& key,
|
||||
}
|
||||
|
||||
void MemoryAwareTileCache::update() {
|
||||
size_t dataSizeCPU = getCPUAllocatedDataSize();
|
||||
size_t dataSizeGPU = getGPUAllocatedDataSize();
|
||||
_cpuAllocatedTileData.setValue(dataSizeCPU / 1024 / 1024);
|
||||
_gpuAllocatedTileData.setValue(dataSizeGPU / 1024 / 1024);
|
||||
const size_t dataSizeCPU = getCPUAllocatedDataSize();
|
||||
const size_t dataSizeGPU = getGPUAllocatedDataSize();
|
||||
|
||||
const size_t ByteToMegaByte = 1024 * 1024;
|
||||
|
||||
_cpuAllocatedTileData.setValue(dataSizeCPU / ByteToMegaByte);
|
||||
_gpuAllocatedTileData.setValue(dataSizeGPU / ByteToMegaByte);
|
||||
}
|
||||
|
||||
size_t MemoryAwareTileCache::getGPUAllocatedDataSize() const {
|
||||
|
||||
Reference in New Issue
Block a user