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
a94b251b
Commit
a94b251b
authored
4 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Smol opt to occlusion culling from Ansariel
parent
f00a23bb
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/llvieweroctree.cpp
+3
-2
3 additions, 2 deletions
indra/newview/llvieweroctree.cpp
with
3 additions
and
2 deletions
indra/newview/llvieweroctree.cpp
+
3
−
2
View file @
a94b251b
...
...
@@ -1107,9 +1107,10 @@ void LLOcclusionCullingGroup::checkOcclusion()
static
LLCachedControl
<
bool
>
wait_for_query
(
gSavedSettings
,
"RenderSynchronousOcclusion"
,
true
);
if
(
wait_for_query
&&
mOcclusionIssued
[
LLViewerCamera
::
sCurCameraID
]
<
gFrameCount
)
U32
target_read_frame
=
!
gGLManager
.
mIsIntel
?
((
gFrameCount
>
2
)
?
(
gFrameCount
-
2
)
:
0
)
:
gFrameCount
;
if
(
wait_for_query
&&
mOcclusionIssued
[
LLViewerCamera
::
sCurCameraID
]
<
target_read_frame
)
{
//query was issued last frame, wait until it's available
S32
max_loop
=
1024
;
S32
max_loop
=
!
gGLManager
.
mIsIntel
?
64
:
1024
;
LL_RECORD_BLOCK_TIME
(
FTM_OCCLUSION_WAIT
);
while
(
!
available
&&
max_loop
--
>
0
)
{
...
...
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