perf: v3.26.141 边线 SVG 视口化(graphics 1.6GB 主因)

This commit is contained in:
qiqi committed 2026-11-30 21:48:07 +08:00
1 parent 20a67d4c38
commit bf0886ee0e
10 files changed
+174 -27

No files matched your search

+3
View File
@@ -284,6 +284,9 @@
for (const f of list) {
if (!alive) break
const refs = o.refs || {}
// 用户正在平移/拖拽/缩放时暂停预热:缩略图生成会解码 320px 图,抢主线程会让手势掉帧。
while (alive && (refs.pan || refs.drag || refs.resize || refs.box)) await new Promise((r) => setTimeout(r, 250))
if (!alive) break
if (refs.genRuns && refs.genRuns.size) break
if (refs.saving) { await new Promise((r) => setTimeout(r, 1200)); continue }
try { await F.galleryThumbOfEntry(f, 320) } catch (e) { /* 单张失败忽略 */ }