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 ?
Asked
Active
Viewed 904 times
2
-
Why would you need to? What do you plan to do differently based on this? – Nicol Bolas May 19 '16 at 13:07
-
Is performance the unique difference? Why you don't try a complex calculation and take time? Something like a workbench... – jabujavi May 19 '16 at 13:17
1 Answers
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.
![](../../users/profiles/734069.webp)
Nicol Bolas
- 378,677
- 53
- 635
- 829