summaryrefslogtreecommitdiff
path: root/indra/newview/llreflectionmapmanager.cpp
diff options
context:
space:
mode:
authormobserveur <mobserveur@gmail.com>2025-09-08 17:26:53 +0200
committermobserveur <mobserveur@gmail.com>2025-09-08 17:26:53 +0200
commitccf0114f36968d6cf6dfb11e1c5a035406314924 (patch)
tree50edc786a62ee0b1e2aa6bf06251b655806123f3 /indra/newview/llreflectionmapmanager.cpp
parent7f0c81918575d3f05e4eadc160b600eaa8b383d1 (diff)
Optimisations and experimental HDR display support on mac
This commit completes the previous ones for performance optimisations, and adds HDR display support on mac
Diffstat (limited to 'indra/newview/llreflectionmapmanager.cpp')
-rw-r--r--indra/newview/llreflectionmapmanager.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp
index 9f8a21694f..68a849714c 100644
--- a/indra/newview/llreflectionmapmanager.cpp
+++ b/indra/newview/llreflectionmapmanager.cpp
@@ -297,8 +297,8 @@ void LLReflectionMapManager::update()
U32 color_fmt = render_hdr ? GL_R11F_G11F_B10F : GL_RGB8;
- static LLCachedControl<bool> MPLowColorPrecision(gSavedSettings, "MPLowColorPrecision", 0);
- if(MPLowColorPrecision)
+ static LLCachedControl<U32> MPColorPrecision(gSavedSettings, "MPColorPrecision", 0);
+ if(MPColorPrecision == 1)
{
color_fmt = GL_RGB8;
}
@@ -566,12 +566,10 @@ void LLReflectionMapManager::update()
if(probe->mCompletedCount < 2)
{
- LL_WARNS() << "we program a short delay for this probe" << LL_ENDL;
probe->mNextUpdateTime = gFrameTimeSeconds + fmax( ((F32)sMPUpdatePeriod / 2.0), 0.25);
}
else
{
- LL_WARNS() << "we program a long delay for this probe" << LL_ENDL;
probe->mNextUpdateTime = gFrameTimeSeconds + fmax( (F32)sMPUpdatePeriod, 0.25);
}
@@ -826,7 +824,6 @@ void LLReflectionMapManager::doProbeUpdate()
mUpdatingProbe->mCompletedCount++;
mUpdatingProbe = nullptr;
mRadiancePass = false;
- LL_WARNS() << "probe updated !" << LL_ENDL;
}
else
{
@@ -1033,7 +1030,6 @@ void LLReflectionMapManager::updateProbeIrradiance(LLReflectionMap* probe)
static LLStaticHashedString sSourceIdx("sourceIdx");
- LL_WARNS() << "IRRADIANCE 1" << LL_ENDL;
mMipChain[0].bindTarget("irradiance", 0);
mMipChain[0].clear(0);
@@ -1110,7 +1106,6 @@ void LLReflectionMapManager::updateProbeRadiance(LLReflectionMap* probe)
static LLStaticHashedString sSourceIdx("sourceIdx");
- LL_WARNS() << "RADIANCE" << LL_ENDL;
//LL_RECORD_BLOCK_TIME(FTM_RENDER_RADIANCE);
mMipChain[0].bindTarget("radiance", 0);
@@ -1799,7 +1794,6 @@ void LLReflectionMapManager::initReflectionMaps()
touch_default_probe(mDefaultProbe);
- LL_WARNS() << "====== END initReflectionMaps() =======" << LL_ENDL;
}
if (mVertexBuffer.isNull())