aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/lib.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-07-18 12:28:27 +0300
committerValentin Popov <valentin@popov.link>2026-07-18 12:28:27 +0300
commit564edf0bc1d5fed1cbfc00db2ba5c4cd9d1b94ea (patch)
tree5774de073f48c44195c149298bb67d4f2f12da95 /crates/fparkan-runtime/src/lib.rs
parent2474e480200a8dfa260a069730c19c4bb2cbdf8e (diff)
downloadfparkan-564edf0bc1d5fed1cbfc00db2ba5c4cd9d1b94ea.tar.xz
fparkan-564edf0bc1d5fed1cbfc00db2ba5c4cd9d1b94ea.zip
feat(runtime): trace visual cache sizes
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
-rw-r--r--crates/fparkan-runtime/src/lib.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs
index 1ab8e38..a80d58e 100644
--- a/crates/fparkan-runtime/src/lib.rs
+++ b/crates/fparkan-runtime/src/lib.rs
@@ -133,6 +133,12 @@ pub enum MissionLoadPhase {
graph_node_count: usize,
/// Graph edges materialized before the request.
graph_edge_count: usize,
+ /// Distinct WEAR validation keys retained before the request.
+ wear_cache_entries: usize,
+ /// Distinct MAT0 validation keys retained before the request.
+ material_cache_entries: usize,
+ /// Distinct TEXM validation keys retained before the request.
+ texture_cache_entries: usize,
},
/// Validate TEXM documents while expanding visual dependencies.
GraphVisualTextures,
@@ -144,6 +150,12 @@ pub enum MissionLoadPhase {
graph_node_count: usize,
/// Graph edges materialized before the request.
graph_edge_count: usize,
+ /// Distinct WEAR validation keys retained before the request.
+ wear_cache_entries: usize,
+ /// Distinct MAT0 validation keys retained before the request.
+ material_cache_entries: usize,
+ /// Distinct TEXM validation keys retained before the request.
+ texture_cache_entries: usize,
},
/// Prepare all reachable visual/resource dependencies.
Assets,
@@ -747,6 +759,9 @@ fn load_mission_with_options_and_progress(
request_count: progress.request_count,
graph_node_count: progress.graph_node_count,
graph_edge_count: progress.graph_edge_count,
+ wear_cache_entries: progress.cache_entries.wear_entries,
+ material_cache_entries: progress.cache_entries.material_entries,
+ texture_cache_entries: progress.cache_entries.texture_entries,
})
}
VisualDependencyPhase::Texture => {
@@ -754,6 +769,9 @@ fn load_mission_with_options_and_progress(
request_count: progress.request_count,
graph_node_count: progress.graph_node_count,
graph_edge_count: progress.graph_edge_count,
+ wear_cache_entries: progress.cache_entries.wear_entries,
+ material_cache_entries: progress.cache_entries.material_entries,
+ texture_cache_entries: progress.cache_entries.texture_entries,
})
}
};