General code spring cleaning (#3525)

This commit is contained in:
Alexander Bock
2025-02-22 15:28:14 +01:00
committed by GitHub
parent de57307537
commit 5152a7a6e0
156 changed files with 1088 additions and 1390 deletions

View File

@@ -1374,11 +1374,11 @@ void RenderablePointCloud::update(const UpdateData&) {
_colorSettings.colorMapping->update(_dataset, _useCaching);
}
if (_spriteTextureIsDirty) {
if (_spriteTextureIsDirty) [[unlikely]] {
updateSpriteTexture();
}
if (_dataIsDirty) {
if (_dataIsDirty) [[unlikely]] {
updateBufferData();
}
}
@@ -1511,9 +1511,8 @@ void RenderablePointCloud::updateBufferData() {
}
void RenderablePointCloud::updateSpriteTexture() {
bool shouldUpdate = _hasSpriteTexture && _spriteTextureIsDirty;
if (!shouldUpdate) {
const bool shouldUpdate = _hasSpriteTexture && _spriteTextureIsDirty;
if (!shouldUpdate) [[likely]] {
return;
}