perf(render): v3.26.140 对齐 108(world/grid 常驻合成 + 裁剪边距 240/80)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m2s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m2s
This commit is contained in:
1 parent
b841a9103f
commit
20a67d4c38
8 files changed
+21
-11
No files matched your search
@@ -358,8 +358,8 @@
|
||||
// 动机:节点一旦挂上 <img>,浏览器就为它保留解码位图(1024 缩略图约 4MB、原图 6~20MB)。
|
||||
// 原来统一 240px 边距 ⇒ 屏幕外一两屏的图仍常驻解码(实测 WebContent footprint 1.2G / 峰值 2.7G)。
|
||||
// 现在带图节点只留 80px,同一时刻常驻解码的图片数量明显下降;纯文本节点仍用 240px,避免平移时文字闪。
|
||||
const CULL_PAD_WIDE = 480 // v3.26.137:240→480,减少「节点从边缘突然冒出来」的观感
|
||||
const CULL_PAD_TIGHT = 240 // v3.26.137:80→240(带图节点提前挂载,代价是少量常驻 DOM)
|
||||
const CULL_PAD_WIDE = 240 // v3.26.140:回到 108 的 240(480 会让每帧多挂载节点 ⇒ 卡)
|
||||
const CULL_PAD_TIGHT = 80 // v3.26.140:回到 108 的 80
|
||||
const heavyNodeOf = (type) => {
|
||||
const t = String(type || '')
|
||||
return /^(ref|out|image|combine|batch)$/.test(t) || /^plugin:(album|gallery)/.test(t)
|
||||
|
||||
Reference in new issue
Block a user