pmndrs/detect-gpu

Test suite is currently broken (master)

TimvanScherpenzeel opened this issue · 8 comments

The recently added isSSR option caused the test suite to break.

Declaring

/**
 * @jest-environment jsdom
 */

at the top of the file raises other issues.

Special cases to account for:

I'm not sure how to check #62 #57 #56 other then that the benchmark has been updated and the 2 NVIDIA's issues should be resolved.

#62 and #57 are resolved with the new benchmarks. #56 appears to be a different issue. With iOS devices we rely on floating point precision in the shader (which is determined by the hardware) and some other features such as DPI and resolution to determine which iOS device it might be.

AKA - that will require some debugging with that exact device.

Correct, I hope @puckey would have time to pick this one up. I wouldn't consider #56 as blocker for release.

Got it. The tests are fixed the benchmark is updated(especially for 30x series). Seems good enough for a 3.1 release

I've released version 3.1.0 on NPM (https://www.npmjs.com/package/detect-gpu/v/3.1.0) with the updated benchmarks and your PR's - thanks!

Happy to help out!