drei
drei copied to clipboard
useDetectGPU pointing to 3.x version
threeversion: 0.135.0@react-three/fiberversion: 7.0.24@react-three/dreiversion: 8.4.0nodeversion: 14npm(oryarn) version:
Problem description:
Hello, the function useDetectGPU is pointing to a 3.x version on dependencies so it's not working good to iPhone, M1 chips etc... detect-gpu is now at 4.x version
Suggested solution:
Just update the version on the dependency list! For now I installed the fresh version of detect-gpu and copied the drei useDetectGPU file into my utils.
Thank you!
Feel free to make a PR to address this issue 😄
👍 Is good to put dependencies as "latest" as is maintained by pmndrs?
I wouldn't just incase there's a breaking change (e.g. v5) that we haven't seen. PMNDRS is a very large org, we're not watching all repos!
The v4 bump came from https://github.com/pmndrs/detect-gpu/commit/00b4c619b5a822ab0b009c9ca87ad0726be48c67. Doesn't look like anything as far as the public API changed.