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
4c0ba539
Commit
4c0ba539
authored
4 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Improve information in about floater for texture and disk cache
parent
5536f7b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/llfilesystem/lldiskcache.cpp
+4
-3
4 additions, 3 deletions
indra/llfilesystem/lldiskcache.cpp
indra/newview/llappviewer.cpp
+6
-0
6 additions, 0 deletions
indra/newview/llappviewer.cpp
indra/newview/skins/default/xui/en/strings.xml
+1
-0
1 addition, 0 deletions
indra/newview/skins/default/xui/en/strings.xml
with
11 additions
and
3 deletions
indra/llfilesystem/lldiskcache.cpp
+
4
−
3
View file @
4c0ba539
...
...
@@ -198,10 +198,11 @@ const std::string LLDiskCache::metaDataToFilepath(const LLUUID& id,
const
std
::
string
LLDiskCache
::
getCacheInfo
()
{
F32
max_in_mb
=
(
F32
)
mMaxSizeBytes
/
(
1024.0
*
1024.0
);
F32
percent_used
=
((
F32
)
dirFileSize
(
sCacheDir
)
/
(
F32
)
mMaxSizeBytes
)
*
100.0
;
uintmax_t
cache_used_mb
=
dirFileSize
(
sCacheDir
)
/
(
1024U
*
1024U
);
uintmax_t
max_in_mb
=
mMaxSizeBytes
/
(
1024U
*
1024U
);
F64
percent_used
=
((
F64
)
cache_used_mb
/
(
F64
)
max_in_mb
)
*
100.0
;
return
llformat
(
"
Max size %1.f
MB (%.1f
%% used)"
,
max_in_mb
,
percent_used
);
return
llformat
(
"
%juMB / %ju
MB (%.1f%% used)"
,
cache_used_mb
,
max_in_mb
,
percent_used
);
}
void
LLDiskCache
::
clearCache
()
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llappviewer.cpp
+
6
−
0
View file @
4c0ba539
...
...
@@ -3300,6 +3300,12 @@ LLSD LLAppViewer::getViewerInfo() const
info
[
"SERVER_RELEASE_NOTES_URL"
]
=
mServerReleaseNotesURL
;
}
// populate field for the texture cache with some details
S64Bytes
texture_cache_used
=
getTextureCache
()
->
getUsage
();
S64Bytes
texture_cache_max
=
getTextureCache
()
->
getMaxUsage
();
F64
percent_used
=
((
F64
)
texture_cache_used
.
value
()
/
(
F64
)
texture_cache_max
.
value
())
*
100.0
;
info
[
"TEXTURE_CACHE_INFO"
]
=
llformat
(
"%dMB / %dMB (%.1f%% used)"
,
S32Megabytes
(
texture_cache_used
).
value
(),
S32Megabytes
(
texture_cache_max
).
value
(),
percent_used
);
// populate field for new local disk cache with some details
info
[
"DISK_CACHE_INFO"
]
=
LLDiskCache
::
getInstance
()
->
getCacheInfo
();
...
...
This diff is collapsed.
Click to expand it.
indra/newview/skins/default/xui/en/strings.xml
+
1
−
0
View file @
4c0ba539
...
...
@@ -60,6 +60,7 @@ LOD factor: [LOD_FACTOR]
Render quality: [RENDER_QUALITY]
Advanced Lighting Model: [GPU_SHADERS]
Texture memory: [TEXTURE_MEMORY]MB
Texture cache: [TEXTURE_CACHE_INFO]
Disk cache: [DISK_CACHE_INFO]
</string>
<string
name=
"AboutOSXHiDPI"
>
...
...
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