V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cvooc
V2EX  ›  问与答

请问下如何判断 chrome 是否开启硬件并给予用户引导?

  •  
  •   cvooc · Jul 29, 2022 · 1370 views
    This topic created in 1379 days ago, the information mentioned may be changed or developed.

    是一个 html 单页, 开启硬件加速后很流畅, 未开启硬件加速会很卡, 所以需要检测下是否开启 chrome 硬件加速,然后给用户提示下

    2 replies    2022-07-29 11:05:29 +08:00
    catoncat
        1
    catoncat  
       Jul 29, 2022
    似乎没办法,你只能在第一次访问的时候给个类似 accept cookie 的提示
    crysislinux
        2
    crysislinux  
       Jul 29, 2022
    用 raf 检查一下帧率?比较卡就提示用户。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3139 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:00 · PVG 23:00 · LAX 08:00 · JFK 11:00
    ♥ Do have faith in what you're doing.