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

Hardware acceleration is not working in Firefox, Brave, and Minecraft #260

Open
liyderek opened this issue Dec 20, 2024 · 6 comments
Open

Comments

@liyderek
Copy link

Has anyone installed Minecraft before? I installed prismlauncher from nixpkgs unstable, and I'm using openjdk 21. Minecraft is not detecting any hardware acceleration, and is using llvmpipe. Fabulously optimized and sodium are installed.
image

@liyderek
Copy link
Author

liyderek commented Dec 21, 2024

I also noticed that GPU acceleration is not working on browsers like Firefox and Brave. I might be wrong tho, but this is probably the bigger issue here

@liyderek liyderek changed the title Minecraft Hardware acceleration is not working in Firefox, Brave, and Minecraft Dec 21, 2024
@tpwrules
Copy link
Owner

You have to add packages to your environment.systemPackages to get them fixed up so the graphics acceleration works.

Firefox works great for me this way. Is this how you are using Prism launcher?

@rickykresslein
Copy link

@tpwrules What packages do you need to add to environment.systemPackages? I'm not using Minecraft, but my Firefox is painfully slow.

@cyrinux
Copy link

cyrinux commented Dec 31, 2024

Its also my case since I update today. I got mesa update, I suppose its related. The general feeling and this all is laggy then, my mouse move slowly, firefox unusable.

@Moerliy
Copy link

Moerliy commented Jan 1, 2025

For me, all works fine. Updated my flake's today too.

Running on an M1 and my wm is hyprland. Maybe it makes it difference don't know

Asahi-related config (not sure if there still necessary but maybe something to try out):

  # Asahi settings
  hardware = {
    asahi = {
      withRust = true;
      # addEdgeKernelConfig = true;
      useExperimentalGPUDriver = true;
      experimentalGPUInstallMode = "replace";
      setupAsahiSound = true;
    };
  };

Edit: Minecraft works fine too

Click to expand

image

@tpwrules
Copy link
Owner

tpwrules commented Jan 1, 2025

There was just a major change in how Mesa works in upstream unstable nixpkgs. I've had some discussion with them and will implement fixes in a bit.

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

5 participants