Textures: guarded textures are hashed at every check while they may change behind the guard
The guard on view memory sees no write made through another view of the same pages; such a change was found only by the hash every eighth frame. The boot logo video and the loading animation write their textures that way every frame (a ring of three): each showed up to eight frames late and in turns, so the presented picture cycled through three, a new one every eight frames, and flickered. The six-star screen of the first seconds changed before the hash ever caught it. A guarded texture is now hashed at every check for its first 64 frames, and for 64 frames after each change the guard missed; textures that stay unchanged go back to every eighth frame. VICTORY_TEXTURE_HOT=0: every eighth frame only, as before.
This commit is contained in:
1 parent
29f9e89df6
commit
676c4dc672
2 files changed
+56
-4
No files matched your search
@@ -37,6 +37,8 @@ pub(crate) enum C {
|
||||
TexWatched,
|
||||
TexHashed,
|
||||
TexChanged,
|
||||
/// Changes of guarded textures the hash found and the guard did not see.
|
||||
TexHot,
|
||||
/// Frames presented since the last line (what the line divides by).
|
||||
Frames,
|
||||
/// Calls of list methods that record into a host list, and the
|
||||
@@ -1060,7 +1062,7 @@ pub(crate) fn log(frames: f64) {
|
||||
{:.0} skipped {:.1} MB; {:.0} runs {:.1} ms; {:.0} queries {:.2} ms, moves {:.2} ms, \
|
||||
{:.2} MB unmapped; {:.0} page faults; {:.0} watches {:.2} ms, {:.1} MB checked, {:.1} MB \
|
||||
unchanged; {:.1} fallbacks; {:.0} guard faults; textures {:.1} MB watched and \
|
||||
changed, {:.1} MB hashed, {:.1} MB of them changed",
|
||||
changed, {:.1} MB hashed, {:.1} MB of them changed, {:.1} changes the guard did not see",
|
||||
c[C::Submissions as usize],
|
||||
c[C::Copies as usize],
|
||||
mb(c[C::CopyBytes as usize]),
|
||||
@@ -1084,6 +1086,7 @@ pub(crate) fn log(frames: f64) {
|
||||
mb(c[C::TexWatched as usize]),
|
||||
mb(c[C::TexHashed as usize]),
|
||||
mb(c[C::TexChanged as usize]),
|
||||
c[C::TexHot as usize],
|
||||
);
|
||||
tracing::info!(
|
||||
"recording per frame ({frames:.0} frames): {:.0} list calls {:.1} ms (all recording \
|
||||
|
||||
Reference in new issue
Block a user