Hacker News new | past | comments | ask | show | jobs | submit login

can you make it detect the device somehow, maybe with some additional permissions, instead of user selecting from a dropdown?





> can you make it detect the device somehow, maybe with some additional permissions, instead of user selecting from a dropdown?

Detecting CPU and GPU specs browser-side is almost impossible to do reliably (even if relying on advanced fingerprinting and certain heuristics).

For GPU’s, it may be possible to use (1) WebGL’s `WEBGL_debug_renderer_info` extension [0][0] or (2) WebGPU’s `GPUAdapter#info` [1][1], but I wouldn’t trust either of those API’s for general usage.

[0]: https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug...

[1]: https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/...


Jay you seem knowledgeable on this - thanks for answering - I have a question

I did look at auto-detecting before, but it seems like you can only really tell the features of a GPU, not so much the good info (VRAM amount and bus speed) - is that the case?

I looked at the GPUAdapter docs, and all it told me was:

- device maker (amd)

- architecture (rdna-3)

and that was it. Is there a way to poke for bus speed and vram amount?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: