Detect Graphics card performance - JS

后端 未结 7 1748
轮回少年
轮回少年 2021-01-30 09:06

This is a longshot - is there anyway to detect poor vs strong graphics card performance via a JS plugin?

We have built a parallax site for a client, it stutters on lower

7条回答
  •  长发绾君心
    2021-01-30 09:25

    This might be the risk/benefit based decision. I think that you will have to make important, but tough decision here.

    1) If you decide to have two verions, you will have to spend some time to:

    • figure out fast, non intrusive test
    • spend time implementing that
    • roll it into production

    and you will most probably end up with incorrect implementation, for example at the moment my computer is running 70 chrome tabs, VLC with 1080p anime, and IntellijIDEA

    The probability the my MBP, 2012 model will be detected as "slow" computer is high, at least now.

    False positives are really hard to figure out.

    2) If you go for one version you will have to choose between HD and Lo-Fi, as @Patrick mentioned, which is again mistake in my opinion.

    What i will suggest is that you go to Google Analytics, figure out browser distribution (yes, i know that it can be misleading, but so can any other test) and based on that (if majority of users are Chrome + modern IE/FF go with HD version, BUT spend some time figuring out optimisation strategy.

    There are always things that could be done better and faster. Get one older laptop, and optimise until you get decent FPS rate. And thats it, yo as a developer need to make that decision, that is your duty.

    3) If from the Browser distribution you figure out that you absolutely must go with Lo-Fi version, well, try to think is the "downgrade" worth it, and implement it only if that is your last resort.

提交回复
热议问题