detect-gpu

v5.0.53
Classify GPU's based on their benchmark score in order to provide an adaptive experience.
gpu detect webgl webgl2 three.js babylonjs three babylon 3d and 3 more...

start

rollup -c rollup/config.lib.ts -w --configPlugin rollup-plugin-typescript2

lint

eslint "src/**/*.ts" "test/**/*.ts" "test/**/*.test.ts" "rollup/**/*.ts" "scripts/**/*.ts" "scripts/**/*.js" --fix --cache --cache-location ~/.eslintcache/eslintcache

test

jest --verbose=false

test:watch

jest --watch

test:coverage

jest --coverage

test:debug

node --inspect-brk ./node_modules/jest/bin/jest --runInBand --no-cache --watch

prebuild

rimraf dist

build

rollup -c rollup/config.lib.ts --configPlugin rollup-plugin-typescript2

example

rollup -w -c rollup/config.dev.ts --configPlugin rollup-plugin-typescript2

parse-analytics

node ./scripts/analytics_parser.js

update-benchmarks

rimraf benchmarks && mkdir -p benchmarks && mkdir -p benchmarks-min && ts-node -O '{"module":"commonjs"}' ./scripts/update_benchmarks.ts && tar -czvf benchmarks.tar.gz benchmarks-min/*.json && rm -rf benchmarks-min
npm i detect-gpu

Metadata

  • MIT
  • Whatever
  • Tim van Scherpenzeel
  • released 10/20/2024

Downloads