2

I need to detect whether the dedicated or integrated graphics card is used within an application that uses WebGL. What is the easiest way to do this ?

Nicol Bolas
  • 378,677
  • 53
  • 635
  • 829
Bill Lumbert
  • 3,421
  • 2
  • 15
  • 24

1 Answers1

1

You can get the vendor's name with getParameter(VENDOR). If it says NVIDIA somewhere in there, then you can assume it's not integrated (unless you're on mobile), while if it says INTEL, you can assume it is. If it says AMD, you'll have to guess a bit, since they still have both integrated and discrete cards.

But other than that, no, there is no way to tell the difference.

Nicol Bolas
  • 378,677
  • 53
  • 635
  • 829