Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
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
JennaHuntsman
XDG Integration
Commits
6e234d97
Commit
6e234d97
authored
3 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Faster VAO name list
parent
819e96d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llrender/llvertexbuffer.cpp
+6
-6
6 additions, 6 deletions
indra/llrender/llvertexbuffer.cpp
indra/llrender/llvertexbuffer.h
+2
-2
2 additions, 2 deletions
indra/llrender/llvertexbuffer.h
with
8 additions
and
8 deletions
indra/llrender/llvertexbuffer.cpp
+
6
−
6
View file @
6e234d97
...
@@ -94,7 +94,7 @@ U64 LLVBOPool::sBytesPooled = 0;
...
@@ -94,7 +94,7 @@ U64 LLVBOPool::sBytesPooled = 0;
U64
LLVBOPool
::
sIndexBytesPooled
=
0
;
U64
LLVBOPool
::
sIndexBytesPooled
=
0
;
std
::
vector
<
U32
>
LLVBOPool
::
sPendingDeletions
;
std
::
vector
<
U32
>
LLVBOPool
::
sPendingDeletions
;
std
::
list
<
U32
>
LLVertexBuffer
::
sAvailableVAOName
;
std
::
vector
<
U32
>
LLVertexBuffer
::
sAvailableVAOName
;
U32
LLVertexBuffer
::
sCurVAOName
=
1
;
U32
LLVertexBuffer
::
sCurVAOName
=
1
;
U64
LLVertexBuffer
::
sAllocatedIndexBytes
=
0
;
U64
LLVertexBuffer
::
sAllocatedIndexBytes
=
0
;
...
@@ -509,8 +509,8 @@ U32 LLVertexBuffer::getVAOName()
...
@@ -509,8 +509,8 @@ U32 LLVertexBuffer::getVAOName()
if
(
!
sAvailableVAOName
.
empty
())
if
(
!
sAvailableVAOName
.
empty
())
{
{
ret
=
sAvailableVAOName
.
front
();
ret
=
sAvailableVAOName
.
back
();
sAvailableVAOName
.
pop_
front
();
sAvailableVAOName
.
pop_
back
();
}
}
else
else
{
{
...
@@ -1058,12 +1058,12 @@ void LLVertexBuffer::cleanupClass()
...
@@ -1058,12 +1058,12 @@ void LLVertexBuffer::cleanupClass()
sDynamicVBOPool
.
cleanup
();
sDynamicVBOPool
.
cleanup
();
clean_validate_buffers
();
clean_validate_buffers
();
while
(
!
sAvailableVAOName
.
empty
())
if
(
!
sAvailableVAOName
.
empty
())
{
{
#if GL_ARB_vertex_array_object
#if GL_ARB_vertex_array_object
glDeleteVertexArrays
(
1
,
&
sAvailableVAOName
.
front
());
glDeleteVertexArrays
(
sAvailableVAOName
.
size
()
,
sAvailableVAOName
.
data
());
#endif
#endif
sAvailableVAOName
.
pop_front
();
sAvailableVAOName
.
clear
();
}
}
sLastMask
=
0
;
sLastMask
=
0
;
...
...
This diff is collapsed.
Click to expand it.
indra/llrender/llvertexbuffer.h
+
2
−
2
View file @
6e234d97
...
@@ -121,8 +121,8 @@ class LLVertexBuffer final : public LLRefCount, public LLTrace::MemTrackable<LLV
...
@@ -121,8 +121,8 @@ class LLVertexBuffer final : public LLRefCount, public LLTrace::MemTrackable<LLV
static
LLVBOPool
sDynamicVBOPool
;
static
LLVBOPool
sDynamicVBOPool
;
static
LLVBOPool
sStreamIBOPool
;
static
LLVBOPool
sStreamIBOPool
;
static
LLVBOPool
sDynamicIBOPool
;
static
LLVBOPool
sDynamicIBOPool
;
static
std
::
list
<
U32
>
sAvailableVAOName
;
static
std
::
vector
<
U32
>
sAvailableVAOName
;
static
U32
sCurVAOName
;
static
U32
sCurVAOName
;
static
bool
sUseStreamDraw
;
static
bool
sUseStreamDraw
;
...
...
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