Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
0828011e
Commit
0828011e
authored
9 months ago
by
David Parks
Committed by
Rye Mutt
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
#1771 Fix for objects disappearing and not reappearing until LoD switch
parent
eab76609
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llvocache.cpp
+13
-0
13 additions, 0 deletions
indra/newview/llvocache.cpp
with
13 additions
and
0 deletions
indra/newview/llvocache.cpp
+
13
−
0
View file @
0828011e
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment