perf: v3.26.180 停用常驻合成层(窗口可见时持续 CPU)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 9m19s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 9m19s
This commit is contained in:
1 parent
7ca372efec
commit
190ec3934b
5 files changed
+8
-6
No files matched your search
@@ -123,7 +123,7 @@
|
||||
// v3.26.117:内存回收。只清可重建的缓存(撤销历史/缩略图/图片字节缓存)并把非活动画板降回引用形态,不删用户数据。
|
||||
el('button', { className: 'iwb-btn iwb-btn-sm', title: '立即回收内存:清撤销历史、缩略图缓存与图片字节缓存,非活动画板降回引用形态(不删任何画板/图片)', onClick: async () => { if (typeof reclaimMemory === 'function') await reclaimMemory() } }, '立即回收内存'),
|
||||
el('button', { className: 'iwb-btn iwb-btn-sm', title: '导出完整诊断 JSON(下载文件)', onClick: () => { if (typeof props.onExportDiag === 'function') props.onExportDiag(); else setMsg({ type: 'err', text: '当前环境不支持诊断导出' }) } }, '导出 JSON'),
|
||||
el('label', { className: 'iwb-diag-kv', title: '打开后整个画布世界会被提升成一个常驻合成层:拖拽/缩放更顺,但内存会明显上涨(实测 +700MB 级)。改完等 10 秒看「进程实测」对比。' },
|
||||
el('label', { className: 'iwb-diag-kv', title: '已弃用:常驻合成层会让窗口可见时持续占用 CPU(实测 15%,最小化即消失),手势期间已有临时提升,无需常驻。' },
|
||||
el('input', { type: 'checkbox', checked: !!(extras && extras.layers), onChange: (e) => { if (typeof props.onToggleLayers === 'function') props.onToggleLayers(e.target.checked) } }),
|
||||
' 合成层常驻提升'),
|
||||
el('label', { className: 'iwb-diag-kv', title: '记录 rAF 帧时长与 JS 长任务到 _boot.log(每 60s 一条),用于判断卡顿/高 CPU 是渲染还是脚本' },
|
||||
|
||||
Reference in new issue
Block a user