Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari desktop always returns Tier 1 apple gpu #111

Open
connorward93 opened this issue Jan 20, 2023 · 5 comments
Open

Safari desktop always returns Tier 1 apple gpu #111

connorward93 opened this issue Jan 20, 2023 · 5 comments

Comments

@connorward93
Copy link

Using Safari on a desktop machine always returns the following:

{ 
  device: undefined,
  fps: undefined,
  gpu: "apple gpu",
  isMobile: false,
  tier: 1,
  type: "FALLBACK"
}

Tested on a 2015 MBP and a 2020 MBP (M1).

@connorward93 connorward93 changed the title Safari desktop returns 'Apple GPU' Safari desktop always returns Tier 1 apple gpu Jan 20, 2023
@robertlong
Copy link

Seeing this as well on a M1 Mac

@filipinascimento
Copy link

At some point this started to happen for me as well. Maybe Apple made it more complicated to retrieve GPU information.

@sam-bunger
Copy link

I've also been seeing this issue on my M1 Mac

@hmmhmmhm
Copy link

I prefer to solve the problem with code like the one below.

const isMacARM = async () => {
  try {
    const agentData = await navigator.userAgentData.getHighEntropyValues([
      "architecture",
    ]);
    return agentData.platform === "macOS" && agentData.architecture === "arm";
  } catch (e) {
    return false;
  }
};

@katiasmet-93
Copy link

I prefer to solve the problem with code like the one below.

const isMacARM = async () => {
  try {
    const agentData = await navigator.userAgentData.getHighEntropyValues([
      "architecture",
    ]);
    return agentData.platform === "macOS" && agentData.architecture === "arm";
  } catch (e) {
    return false;
  }
};

This does not work on Safari M2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants