DESKTOP GPU recognized as MOBILE GPU
EddyHamzich-zz opened this issue · 2 comments
Hello sir,
First I just want to thank you for creating this utility it is incredibly useful !
My problem is: So when i visit your demo site https://timvanscherpenzeel.github.io/detect-gpu/ I get the correct detection on my gpu Tier: GPU_DESKTOP_TIER_3
Type: BENCHMARK - nvidia geforce gtx 980 ti.
But I npm installed the package today and when i use it locally with this code:
import { getGPUTier } from 'detect-gpu';
const GPUTier = getGPUTier({
mobileBenchmarkPercentages: [0, 50, 30, 20], // (Default) [TIER_0, TIER_1, TIER_2, TIER_3]
desktopBenchmarkPercentages: [0, 50, 30, 20], // (Default) [TIER_0, TIER_1, TIER_2, TIER_3]
});
console.log(GPUTier);
I get tier: GPU_MOBILE_TIER_1 type:FALLBACK
I have a canvas element using three.js already inside my html maybe that is somehow interfering i dont know.
Ok i just figured out what causes this on your demo site: If i open devtools in Chrome (press F12) the detection changes to GPU_MOBILE_TIER but when I exit devtools and view your demo site in normal mode it goes back to GPU_DESKTOP_TIER and shows the correct GPU...
To be fair this isnt a big issue for me since the only thing I check in my App is for "...TIER_0" but just thought I would let you know about this.
Hi Eddy,
It is this way because it first checks your user agent to determine on what kind of device you are on and then your GPU to categorise it in the correct tier.
Kind regards,
Tim