Nvidia: Difference between revisions
imported>Vodkabot No edit summary |
imported>Vodkabot mNo edit summary |
||
Line 19: | Line 19: | ||
Pros: out of box experience, just start the game via ''primusrun'' or ''optirun'' wrapper | * Pros: out of box experience, just start the game via ''primusrun'' or ''optirun'' wrapper | ||
Cons: some performance penalty, no Vulkan support, things like CUDA and OpenCL are problematic to configure | * Cons: some performance penalty, no Vulkan support, things like CUDA and OpenCL are problematic to configure | ||
=== Nvidia PRIME === | === Nvidia PRIME === | ||
Use | Use [https://github.com/dukzcry/crap/tree/master/primerun special script] for out of box experience. | ||
Configure NixOS to allow Intel and Nvidia X.Org drivers coexist together, and also to disable nvidia card by default. Requires NixOS version with https://github.com/NixOS/nixpkgs/pull/37369 merged | Configure NixOS to allow Intel and Nvidia X.Org drivers coexist together, and also to disable nvidia card by default. Requires NixOS version with https://github.com/NixOS/nixpkgs/pull/37369 merged | ||
Line 47: | Line 47: | ||
Similar to Bumblebee, start the game via ''primerun.sh''. | Similar to Bumblebee, start the game via ''primerun.sh''. | ||
Pros: better performance, Vulkan is supported. CUDA and OpenCL should work, though CUDA needs an additional device creation rule https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix#L66 | * Pros: better performance, Vulkan is supported. CUDA and OpenCL should work, though CUDA needs an additional device creation rule https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix#L66 | ||
Cons: there are still some rough edges noted on the top of script, but otherwise it works fine for me. | * Cons: there are still some rough edges noted on the top of script, but otherwise it works fine for me. |