Adapt to new compile option style and fix warnings (#3773)

This commit is contained in:
Alexander Bock
2025-08-12 14:19:45 +02:00
committed by GitHub
parent da029c2cbf
commit 19e9e2c1fb
106 changed files with 449 additions and 681 deletions

View File

@@ -345,24 +345,12 @@ void RenderableMultiresVolume::initializeGL() {
constexpr unsigned int MaxInitialBudget = 2048;
int initialBudget = std::min(MaxInitialBudget, maxNumBricks);
_currentTime = properties::IntProperty(
CurrentTimeInfo,
0,
0,
_tsp->header().numTimesteps - 1
);
_memoryBudget = properties::IntProperty(
MemoryBudgetInfo,
initialBudget,
0,
maxNumBricks
);
_streamingBudget = properties::IntProperty(
StreamingBudgetInfo,
initialBudget,
0,
maxNumBricks
);
_currentTime.setMaxValue(_tsp->header().numTimesteps - 1);
_memoryBudget = initialBudget;
_memoryBudget.setMaxValue(maxNumBricks);
_streamingBudget = initialBudget;
_streamingBudget.setMaxValue(maxNumBricks);
addProperty(_currentTime);
addProperty(_memoryBudget);
addProperty(_streamingBudget);