pmndrs / detect-gpu

Classifies GPUs based on their 3D rendering benchmark score allowing the developer to provide sensible default settings for graphically intensive applications.
MIT License
1.04k stars 57 forks source link

FPS sometimes undefined on the result #120

Open bergden-resonai opened 6 months ago

bergden-resonai commented 6 months ago

My colleague got the following result (Ubuntu):

{
  "gpu": "google, swiftshader device (subzero) (0x0000c0de), swiftshader driver (ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver))",
  "isMobile": false,
  "tier": 1,
  "type": "FALLBACK"
}

Our code didn't handle correctly cases where fps is undefined - is this expected behavior? I can open a PR to document or add fps: -1 or something like that - but wanted to know if this is a supported case.