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
f04fe801
Commit
f04fe801
authored
11 years ago
by
Xiaohong Bao
Browse files
Options
Downloads
Patches
Plain Diff
cancel redundant memory alignments for some base classes to get better memory performance
parent
736efc7b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llvieweroctree.h
+6
-6
6 additions, 6 deletions
indra/newview/llvieweroctree.h
with
6 additions
and
6 deletions
indra/newview/llvieweroctree.h
+
6
−
6
View file @
f04fe801
...
...
@@ -70,7 +70,7 @@ S32 AABBSphereIntersect(const LLVector3& min, const LLVector3& max, const LLVect
S32
AABBSphereIntersectR2
(
const
LLVector3
&
min
,
const
LLVector3
&
max
,
const
LLVector3
&
origin
,
const
F32
&
radius_squared
);
//defines data needed for octree of an entry
LL_ALIGN_PREFIX
(
16
)
//
LL_ALIGN_PREFIX(16)
class
LLViewerOctreeEntry
:
public
LLRefCount
{
friend
class
LLViewerOctreeEntryData
;
...
...
@@ -128,10 +128,10 @@ class LLViewerOctreeEntry : public LLRefCount
mutable
S32
mBinIndex
;
mutable
U32
mVisible
;
}
LL_ALIGN_POSTFIX
(
16
);
}
;
//
LL_ALIGN_POSTFIX(16);
//defines an abstract class for entry data
LL_ALIGN_PREFIX
(
16
)
//
LL_ALIGN_PREFIX(16)
class
LLViewerOctreeEntryData
:
public
LLRefCount
{
protected:
...
...
@@ -178,11 +178,11 @@ class LLViewerOctreeEntryData : public LLRefCount
LLPointer
<
LLViewerOctreeEntry
>
mEntry
;
LLViewerOctreeEntry
::
eEntryDataType_t
mDataType
;
static
U32
sCurVisible
;
// Counter for what value of mVisible means currently visible
}
LL_ALIGN_POSTFIX
(
16
);
}
;
//
LL_ALIGN_POSTFIX(16);
//defines an octree group for an octree node, which contains multiple entries.
LL_ALIGN_PREFIX
(
16
)
//
LL_ALIGN_PREFIX(16)
class
LLviewerOctreeGroup
:
public
LLOctreeListener
<
LLViewerOctreeEntry
>
{
friend
class
LLViewerOctreeCull
;
...
...
@@ -279,7 +279,7 @@ class LLviewerOctreeGroup : public LLOctreeListener<LLViewerOctreeEntry>
public
:
S32
mVisible
[
LLViewerCamera
::
NUM_CAMERAS
];
}
LL_ALIGN_POSTFIX
(
16
);
}
;
//
LL_ALIGN_POSTFIX(16);
//octree group which has capability to support occlusion culling
//LL_ALIGN_PREFIX(16)
...
...
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