summaryrefslogtreecommitdiff
path: root/indra/newview/llreflectionmapmanager.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2023-04-07 11:06:09 -0500
committerDave Parks <davep@lindenlab.com>2023-04-07 11:06:09 -0500
commitde73cf7599e934441fe760f53163b0504c03adc7 (patch)
tree7141fdad76010ccf1cb1f79fa5b016eb806ce7d6 /indra/newview/llreflectionmapmanager.cpp
parent72a0408401e4fa8f22ec8a70584bf90e5f0ccc73 (diff)
SL-19538 Remove clouds from irradiance maps and don't conflate max probe samples with max probe neighbors, and don't move manual probes after they are complete (removes flickering around Sponza).
Diffstat (limited to 'indra/newview/llreflectionmapmanager.cpp')
-rw-r--r--indra/newview/llreflectionmapmanager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp
index 8252b4be36..dc84b0b10e 100644
--- a/indra/newview/llreflectionmapmanager.cpp
+++ b/indra/newview/llreflectionmapmanager.cpp
@@ -861,6 +861,9 @@ void LLReflectionMapManager::updateUniforms()
{
//LL_PROFILE_ZONE_NAMED_CATEGORY_DISPLAY("rmmsu - refNeighbors");
//pack neghbor list
+ const U32 max_neighbors = 64;
+ U32 neighbor_count = 0;
+
for (auto& neighbor : refmap->mNeighbors)
{
if (ni >= 4096)
@@ -876,6 +879,12 @@ void LLReflectionMapManager::updateUniforms()
// this neighbor may be sampled
rpd.refNeighbor[ni++] = idx;
+
+ neighbor_count++;
+ if (neighbor_count >= max_neighbors)
+ {
+ break;
+ }
}
}