Nvidia GPU Performance
Hello all, I have a notebook with a Intel and Nvidia GPU. The Nvidia chip is a GTX1060 with 6GB memory. I ran a unigine heaven benchmark (version 4.0 using optirun and / or primusrun) and got a score of 1509. However when I run the benchmark under Windows, I get 2700. I know that Nvidia GPUs are not well supported, however is there a way I can improve my performance under Linux?
Ah: I ran the benchmark using the following kernel and nvidia versions: nvidia 387.34-20 linux 4.14.14-1 I've also tried using the lts version, however with a even worse result.
any help is appreciated...
About this post
- Posted
- Archived
- Score
- 10 · 100% up
- Kind
- Text
- ID
- 7tcewt
11 comments
Try out nvidia-xrun. It opens a new Xserver, running with NVIDIA GPU. Set the registrydwords to performance, and disable power management, and you'll get performance with OpenGL on linux, better than DirectX on Windows... I say that from personal experience, been using nvidia-xrun for almost half a year.
I tried it and it looks promising, now I'm much closer to the windows result. I will do some fine-tuning... Thank you for the suggestion!
nvidia-xrun runs perfect! Thanks /u/d3a7hr0w for the suggestion!
Results (using Unigine benchmark 4.0): Arch 4.14.15-1-ARCH, wayland: 2364. Windows 10, OpenGL: 2325. Arch 4.14.15-1-ARCH, i3wm: 2022.
I'm glad it works for you! Try setting these options to nvidia in /etc/bumblebee/xorg.conf.nvidia
You might also want to type these in terminal, before you start your next benchmark test:
You can use PRIME offloading, but that will run everything on the dedicated GPU, not just the games.
Okay, I will try that, thank you already :-)
i broke my x-config while trying, so I switched back to my old configuration. I also think that any offloading has to be slower than the native solution. However I also tried nividia-xrun, see below.
Did you use optirun or primusrun ?
I tried both with almost the same result.
I think in the Windows version of the Unigine benchmarks you can switch between Direct3D and OpenGL in that start-up window it shows. Did you take a look at the scores for that in Windows?
I never compared this myself, but this might be interesting to look at. The engine might not work as well in the OpenGL version of its code. If you find out that the Windows score drops as well when you switch away from Direct3D, you'd know that nothing is wrong on the Linux side. I don't have Windows installed at the moment so can't check this idea myself.
Internally, the NVIDIA driver is using the same code on both Windows and Linux. It's the best performing OpenGL driver there is. The way I understand things, the rest of the graphical system on Linux being weird and not well supported shouldn't matter much for the benchmark scores.
You are right, Windows is using ActiveX per default. I've switched it to OpenGL and the score came down from around 2700 to 2300. I've also tried nvidia-xrun, see above.