summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2024-06-26 12:56:37 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-06-26 12:56:37 -0700
commit3e38ba0c4d448b98f0d1e32c77716af337b53d18 (patch)
tree482870c65cbe8056bcb28930cdcbd23aeb2db712 /indra/newview
parent0f2bb1bd8307a0802a6e24c7eb50f6a0082edea4 (diff)
parent39473866fc8119a8ec10935f21b6d8d76432ecd1 (diff)
Merge branch 'release/webrtc-voice' of github.com:secondlife/viewer into roxie/webrtc-voice-crash-fixes
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvocache.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index bfac68b68f..a65e49a724 100644
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -529,6 +529,16 @@ F32 LLVOCacheEntry::getSquaredPixelThreshold(bool is_front)
bool LLVOCacheEntry::isAnyVisible(const LLVector4a& camera_origin, const LLVector4a& local_camera_origin, F32 dist_threshold)
{
+#if 0
+ // this is ill-conceived and should be removed pending QA
+ // In the name of saving memory, we evict objects that are still within view distance from memory
+ // This results in constant paging of objects in and out of memory, leading to poor performance
+ // and many unacceptable visual glitches when rotating the camera
+
+ // Honestly, the entire VOCache partition system needs to be removed since it doubles the overhead of
+ // the spatial partition system and is redundant to the object cache, but this is a start
+ // - davep 2024.06.07
+
LLOcclusionCullingGroup* group = (LLOcclusionCullingGroup*)getGroup();
if(!group)
{
@@ -565,6 +575,9 @@ bool LLVOCacheEntry::isAnyVisible(const LLVector4a& camera_origin, const LLVecto
}
return vis;
+#else
+ return true;
+#endif
}
void LLVOCacheEntry::calcSceneContribution(const LLVector4a& camera_origin, bool needs_update, U32 last_update, F32 max_dist)