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
11a78da4
Commit
11a78da4
authored
11 years ago
by
Xiaohong Bao
Browse files
Options
Downloads
Patches
Plain Diff
more fix for SH-4400: Interesting: Side effect 1 of unloading culled objects.
parent
cdf5a1e1
No related branches found
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
+4
-5
4 additions, 5 deletions
indra/newview/llvocache.cpp
with
4 additions
and
5 deletions
indra/newview/llvocache.cpp
+
4
−
5
View file @
11a78da4
...
...
@@ -374,14 +374,13 @@ bool LLVOCacheEntry::isRecentlyVisible() const
vis
=
(
sCurVisible
-
getVisible
()
<
mMinFrameRange
);
}
if
(
!
vis
&&
!
mParentID
&&
mSceneContrib
>
0.
f
)
//combination of projected area and squared distance
if
(
!
vis
&&
!
mParentID
&&
mSceneContrib
>
0.0311
f
)
//projection angle > 10 (degree)
{
//projection area: mSceneContrib
//squared distance
const
F32
SQUARED_CUT_OFF_DIST
=
2
2
5.0
;
//1
5
m
const
F32
SQUARED_CUT_OFF_DIST
=
25
6
.0
;
//1
6
m
F32
rad
=
getBinRadius
();
vis
=
(
rad
*
rad
/
mSceneContrib
>
SQUARED_CUT_OFF_DIST
);
vis
=
(
rad
*
rad
/
mSceneContrib
<
SQUARED_CUT_OFF_DIST
);
}
return
vis
;
...
...
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