V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
fgt1t5y
V2EX  ›  前端开发

CSS 属性 backdrop-filter 在不同网站间性能差异巨大

  •  
  •   fgt1t5y · 24 天前 · 478 次点击
    网站 A: https://n-wither.github.io/
    网站 B: https://scp-wiki-cn.wikidot.com/theme:basalt

    这两个网站的导航 header 都使用 backdrop-filter 属性实现透明效果,但是帧率差异巨大:

    网站 A 只有 80 多 FPS



    网站 B 却有 130 多 FPS ,这是网站 A 禁用 backdrop-filter 才有的帧数



    大佬们这是为什么?
    2 条回复    2024-05-24 09:21:58 +08:00
    Charrlles
        1
    Charrlles  
       23 天前 via iPhone
    和 blur 的大小有关系?
    fgt1t5y
        2
    fgt1t5y  
    OP
       23 天前
    @Charrlles 多谢提醒,等会去验证是不是
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2169 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 15:59 · PVG 23:59 · LAX 08:59 · JFK 11:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.