perf(terminal): cache webgl row vertex templates

This commit is contained in:
zhangheng
2026-06-24 21:18:32 +08:00
parent fb54acf88b
commit 057d74d44c
4 changed files with 225 additions and 53 deletions

View File

@@ -187,6 +187,12 @@ fn append_webgl_stats(probe: &wasm_bindgen::JsValue, stats: crate::terminal::Web
set_f64(&frame, "cells", stats.cells as f64);
set_f64(&frame, "rowCacheHits", stats.row_cache_hits as f64);
set_f64(&frame, "rowCacheMisses", stats.row_cache_misses as f64);
set_f64(&frame, "vertexCacheHits", stats.vertex_cache_hits as f64);
set_f64(
&frame,
"vertexCacheMisses",
stats.vertex_cache_misses as f64,
);
set_f64(&frame, "atlasEntries", stats.atlas_entries as f64);
set_f64(&frame, "atlasInsertions", stats.atlas_insertions as f64);
set_f64(&frame, "atlasResets", stats.atlas_resets as f64);