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
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Alchemy Archive
Alchemy Viewer
Commits
2c722655
Commit
2c722655
authored
15 years ago
by
Xiaohong Bao
Browse files
Options
Downloads
Patches
Plain Diff
fix for DEV-34094: texture console stats are obscured by the loading textures
parent
d6101558
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/lltextureview.cpp
+15
-14
15 additions, 14 deletions
indra/newview/lltextureview.cpp
with
15 additions
and
14 deletions
indra/newview/lltextureview.cpp
+
15
−
14
View file @
2c722655
...
@@ -62,14 +62,14 @@ std::set<LLViewerImage*> LLTextureView::sDebugImages;
...
@@ -62,14 +62,14 @@ std::set<LLViewerImage*> LLTextureView::sDebugImages;
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
static
std
::
string
title_string1a
(
"Tex UUID Area DDis(Req) DecodePri(Fetch) [download]
pk/max"
);
static
std
::
string
title_string1a
(
"Tex UUID Area DDis(Req) DecodePri(Fetch) [download] pk/max"
);
static
std
::
string
title_string1b
(
"Tex UUID Area DDis(Req) Fetch(DecodePri) [download]
pk/max"
);
static
std
::
string
title_string1b
(
"Tex UUID Area DDis(Req) Fetch(DecodePri) [download] pk/max"
);
static
std
::
string
title_string2
(
"State"
);
static
std
::
string
title_string2
(
"State"
);
static
std
::
string
title_string3
(
"Pkt Bnd"
);
static
std
::
string
title_string3
(
"Pkt Bnd"
);
static
std
::
string
title_string4
(
" W x H (Dis) Mem"
);
static
std
::
string
title_string4
(
" W x H (Dis) Mem"
);
static
S32
title_x1
=
0
;
static
S32
title_x1
=
0
;
static
S32
title_x2
=
4
4
0
;
static
S32
title_x2
=
4
6
0
;
static
S32
title_x3
=
title_x2
+
40
;
static
S32
title_x3
=
title_x2
+
40
;
static
S32
title_x4
=
title_x3
+
50
;
static
S32
title_x4
=
title_x3
+
50
;
static
S32
texture_bar_height
=
8
;
static
S32
texture_bar_height
=
8
;
...
@@ -406,7 +406,7 @@ void LLGLTexMemBar::draw()
...
@@ -406,7 +406,7 @@ void LLGLTexMemBar::draw()
S32
max_total_mem
=
LLViewerImage
::
sMaxTotalTextureMemInMegaBytes
;
S32
max_total_mem
=
LLViewerImage
::
sMaxTotalTextureMemInMegaBytes
;
F32
discard_bias
=
LLViewerImage
::
sDesiredDiscardBias
;
F32
discard_bias
=
LLViewerImage
::
sDesiredDiscardBias
;
S32
line_height
=
(
S32
)(
LLFontGL
::
getFontMonospace
()
->
getLineHeight
()
+
.5
f
);
S32
line_height
=
(
S32
)(
LLFontGL
::
getFontMonospace
()
->
getLineHeight
()
+
.5
f
);
S32
h_offset
=
(
texture_bar_height
+
2.8
f
)
*
mTextureView
->
mNumTextureBars
;
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
LLGLSUIDefault
gls_ui
;
LLGLSUIDefault
gls_ui
;
F32
text_color
[]
=
{
1.
f
,
1.
f
,
1.
f
,
0.75
f
};
F32
text_color
[]
=
{
1.
f
,
1.
f
,
1.
f
,
0.75
f
};
...
@@ -419,13 +419,13 @@ void LLGLTexMemBar::draw()
...
@@ -419,13 +419,13 @@ void LLGLTexMemBar::draw()
max_bound_mem
,
max_bound_mem
,
discard_bias
);
discard_bias
);
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
text
,
0
,
0
,
line_height
*
3
,
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
text
,
0
,
0
,
h_offset
+
line_height
*
3
,
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
S32
bar_left
=
380
;
S32
bar_left
=
380
;
S32
bar_width
=
200
;
S32
bar_width
=
200
;
S32
top
=
line_height
*
3
-
2
;
S32
top
=
line_height
*
3
-
2
+
h_offset
;
S32
bottom
=
top
-
6
;
S32
bottom
=
top
-
6
;
S32
left
=
bar_left
;
S32
left
=
bar_left
;
S32
right
=
left
+
bar_width
;
S32
right
=
left
+
bar_width
;
...
@@ -486,40 +486,40 @@ void LLGLTexMemBar::draw()
...
@@ -486,40 +486,40 @@ void LLGLTexMemBar::draw()
LLImageRaw
::
sRawImageCount
,
LLViewerImage
::
sRawCount
,
LLViewerImage
::
sAuxCount
,
LLImageRaw
::
sRawImageCount
,
LLViewerImage
::
sRawCount
,
LLViewerImage
::
sAuxCount
,
gImageList
.
mCallbackList
.
size
());
gImageList
.
mCallbackList
.
size
());
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
text
,
0
,
0
,
line_height
*
2
,
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
text
,
0
,
0
,
h_offset
+
line_height
*
2
,
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
S32
dx1
=
0
;
S32
dx1
=
0
;
if
(
LLAppViewer
::
getTextureFetch
()
->
mDebugPause
)
if
(
LLAppViewer
::
getTextureFetch
()
->
mDebugPause
)
{
{
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
std
::
string
(
"!"
),
0
,
title_x1
,
line_height
,
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
std
::
string
(
"!"
),
0
,
title_x1
,
h_offset
+
line_height
,
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
dx1
+=
8
;
dx1
+=
8
;
}
}
if
(
mTextureView
->
mFreezeView
)
if
(
mTextureView
->
mFreezeView
)
{
{
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
std
::
string
(
"*"
),
0
,
title_x1
,
line_height
,
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
std
::
string
(
"*"
),
0
,
title_x1
,
h_offset
+
line_height
,
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
dx1
+=
8
;
dx1
+=
8
;
}
}
if
(
mTextureView
->
mOrderFetch
)
if
(
mTextureView
->
mOrderFetch
)
{
{
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string1b
,
0
,
title_x1
+
dx1
,
line_height
,
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string1b
,
0
,
title_x1
+
dx1
,
h_offset
+
line_height
,
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
}
}
else
else
{
{
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string1a
,
0
,
title_x1
+
dx1
,
line_height
,
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string1a
,
0
,
title_x1
+
dx1
,
h_offset
+
line_height
,
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
}
}
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string2
,
0
,
title_x2
,
line_height
,
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string2
,
0
,
title_x2
,
h_offset
+
line_height
,
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string3
,
0
,
title_x3
,
line_height
,
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string3
,
0
,
title_x3
,
h_offset
+
line_height
,
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string4
,
0
,
title_x4
,
line_height
,
LLFontGL
::
getFontMonospace
()
->
renderUTF8
(
title_string4
,
0
,
title_x4
,
h_offset
+
line_height
,
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
text_color
,
LLFontGL
::
LEFT
,
LLFontGL
::
TOP
);
}
}
...
@@ -701,6 +701,7 @@ void LLTextureView::draw()
...
@@ -701,6 +701,7 @@ void LLTextureView::draw()
static
S32
max_count
=
50
;
static
S32
max_count
=
50
;
S32
count
=
0
;
S32
count
=
0
;
mNumTextureBars
=
0
;
for
(
display_list_t
::
iterator
iter
=
display_image_list
.
begin
();
for
(
display_list_t
::
iterator
iter
=
display_image_list
.
begin
();
iter
!=
display_image_list
.
end
();
iter
++
)
iter
!=
display_image_list
.
end
();
iter
++
)
{
{
...
...
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