You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Migrating from `detect-gpu`?** This package has moved to `@pmndrs/detect-gpu`. Update your imports:
8
+
> ```diff
9
+
> - import { getGPUTier } from 'detect-gpu';
10
+
> + import { getGPUTier } from '@pmndrs/detect-gpu';
11
+
> ```
12
+
7
13
Classifies GPUs based on their 3D rendering benchmark score allowing the developer to provide sensible default settings for graphically intensive applications. Think of it like a user-agent detection for the GPU but more powerful.
8
14
15
+
> **Note:** Our benchmark data source ([gfxbench.com](https://gfxbench.com)) stopped updating in December 2025. The current data remains accurate for existing GPUs, but we are exploring alternative data sources for future updates. See [#132](https://github.com/pmndrs/detect-gpu/issues/132) for progress.
16
+
9
17
## Demo
10
18
11
19
[Live demo](https://pmndrs.github.io/detect-gpu/)
@@ -14,10 +22,18 @@ Classifies GPUs based on their 3D rendering benchmark score allowing the develop
14
22
15
23
By default we use the [UNPKG](https://unpkg.com) CDN to host the benchmark data. If you would like to serve the benchmark data yourself download the required benchmarking data from [benchmarks.tar.gz](https://github.com/pmndrs/detect-gpu/raw/master/benchmarks.tar.gz) and serve it from a public directory.
16
24
25
+
```sh
26
+
yarn add @pmndrs/detect-gpu
27
+
```
28
+
17
29
```sh
18
30
npm install @pmndrs/detect-gpu
19
31
```
20
32
33
+
```sh
34
+
pnpm add @pmndrs/detect-gpu
35
+
```
36
+
21
37
## Usage
22
38
23
39
```ts
@@ -46,7 +62,7 @@ getGPUTier({
46
62
/**
47
63
* URL of directory where benchmark data is hosted.
0 commit comments