Skip to content

Commit bca77a8

Browse files
christian-byrnebenceruleanlu
authored andcommitted
[perf] Global CSS optimizations for LOD system (#4379)
1 parent a140b76 commit bca77a8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/assets/css/style.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,3 +706,24 @@ audio.comfy-audio.empty-audio-widget {
706706
will-change: transform;
707707
}
708708

709+
/* Global performance optimizations for LOD */
710+
.lg-node--lod-minimal,
711+
.lg-node--lod-reduced {
712+
/* Remove ALL expensive paint effects */
713+
box-shadow: none !important;
714+
filter: none !important;
715+
backdrop-filter: none !important;
716+
text-shadow: none !important;
717+
-webkit-mask-image: none !important;
718+
mask-image: none !important;
719+
clip-path: none !important;
720+
}
721+
722+
/* Reduce paint complexity for minimal LOD */
723+
.lg-node--lod-minimal {
724+
/* Skip complex borders */
725+
border-radius: 0 !important;
726+
/* Use solid colors only */
727+
background-image: none !important;
728+
}
729+

0 commit comments

Comments
 (0)