perf: v3.26.180 停用常驻合成层(窗口可见时持续 CPU)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 9m19s

This commit is contained in:
qiqi committed 2026-12-01 21:34:29 +08:00
1 parent 7ca372efec
commit 190ec3934b
5 files changed
+8 -6

No files matched your search

+4 -2
View File
@@ -1222,11 +1222,13 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img {
.iwb-canvas.iwb-gesture .iwb-statusbar,
.iwb-canvas.iwb-gesture .iwb-statusbar *:not(img) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.iwb-world { will-change: auto; }
:root[data-layers="on"] .iwb-world { will-change: transform; }
/* v3.26.180:常驻合成层已停用 —— 它会强制把整个世界层保持为一张大合成层,
实测“窗口可见时 CPU 持续 15%、最小化就掉”,且 155 起手势期间已有临时提升,常驻没有收益。 */
:root[data-layers="on"] .iwb-world { will-change: auto; }
/* v3.26.137:毛玻璃开关(诊断页)。关掉后所有 backdrop-filter 失效,用于二分 graphics 占用 */
:root[data-noblur="on"] *, :root[data-noblur="on"] *::before, :root[data-noblur="on"] *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.iwb-grid { will-change: auto; }
:root[data-layers="on"] .iwb-grid { will-change: transform; }
:root[data-layers="on"] .iwb-grid { will-change: auto; }
/* v15:左侧资源面板展开时浮在画布上层,不移动画布位置 */
.iwb-overlay.drawer-open .iwb-canvas { left: 0 !important; }
/* 停靠栏时代:工具栏/小地图按 --iwb-dock-* 让位(画布仍不动) */