๐ Bumblebee guys, try PRIME render offload. Performance on a par with Windows.
๐ก Newskategorie: Linux Tipps
๐ Quelle: reddit.com
โฏ inxi -CGMz Machine: Type: Laptop System: Dell product: XPS 15 9560 v: N/A serial: <filter> Mobo: Dell model: 0YH90J v: A04 serial: <filter> UEFI: Dell v: 1.18.0 date: 11/17/2019 CPU: Topology: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP L2 cache: 6144 KiB Speed: 1000 MHz min/max: 800/2800 MHz Core speeds (MHz): 1: 1000 2: 1000 3: 1000 4: 1000 5: 1000 6: 1000 7: 1000 8: 1001 Graphics: Device-1: Intel HD Graphics 630 driver: i915 v: kernel Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 440.64 Display: x11 server: X.Org 1.20.7 driver: modesetting,nvidia unloaded: vesa resolution: 3840x2160~60Hz OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake GT2) v: 4.6 Mesa 19.3.4 ~ โฏ prime-run inxi -CGMz Machine: Type: Laptop System: Dell product: XPS 15 9560 v: N/A serial: <filter> Mobo: Dell model: 0YH90J v: A04 serial: <filter> UEFI: Dell v: 1.18.0 date: 11/17/2019 CPU: Topology: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP L2 cache: 6144 KiB Speed: 2579 MHz min/max: 800/2800 MHz Core speeds (MHz): 1: 2393 2: 1921 3: 2333 4: 2225 5: 2185 6: 2240 7: 2310 8: 2194 Graphics: Device-1: Intel HD Graphics 630 driver: i915 v: kernel Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 440.64 Display: x11 server: X.Org 1.20.7 driver: modesetting,nvidia unloaded: vesa resolution: 3840x2160~60Hz OpenGL: renderer: GeForce GTX 1050/PCIe/SSE2 v: 4.6.0 NVIDIA 440.64
I do not play much game. But sometimes.
My setup was bumblebee. optirun(primusrun
+ primus_vk(when playing via wine)
is working well mostly. But it's performance is not good as native run on Windows.
Once, I tried nvidia-xrun
with steam. It's performance was good. Same with Windows. But it is clunky and inconvenient.
So today I tried new one.
https://wiki.archlinux.org/index.php/PRIME#PRIME_render_offload
bumblebee blacklist nvidia module in /usr/lib/...
not /etc/modprobe.d/...
. I removed it and installed nvidia-prime
.
โฏ yay -Ql nvidia-prime nvidia-prime /usr/ nvidia-prime /usr/bin/ nvidia-prime /usr/bin/prime-run nvidia-prime /usr/share/ nvidia-prime /usr/share/X11/ nvidia-prime /usr/share/X11/xorg.conf.d/ nvidia-prime /usr/share/X11/xorg.conf.d/20-nvidia-prime.conf
Reboot. Check it works.
โฏ prime-run glxinfo | grep "OpenGL renderer" OpenGL renderer string: GeForce GTX 1050/PCIe/SSE2 ~ โฏ prime-run glxspheres64 Polygons in scene: 62464 (61 spheres * 1024 polys/spheres) GLX FB config ID of window: 0x14e (8/8/8/0) Visual ID of window: 0x2f9 Context is Direct OpenGL Renderer: GeForce GTX 1050/PCIe/SSE2 61.184080 frames/sec - 469.486862 Mpixels/sec 59.934468 frames/sec - 459.898153 Mpixels/sec โฏ nvidia-smi Mon Mar 30 15:38:07 2020 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 440.64 Driver Version: 440.64 CUDA Version: 10.2 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 1050 Off | 00000000:01:00.0 Off | N/A | | N/A 47C P8 N/A / N/A | 103MiB / 4042MiB | 0% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1092 G /usr/lib/Xorg 102MiB | +-----------------------------------------------------------------------------+
Now time to do real thing.
$ prime-run steam
I've tried 3 games. Steam, Proton-5.0.5
- Factorio : It has native linux support. Pretty fun and very well made stable game. 1800+ hour played. this game is fine with Intel Kabylake G630 if not super megabase. so dont really need nvidia gpu. but it was some trouble with
primusrun
. lower fps than Intel. But now it's working pretty good. All grphics options turned on, loaded my most big saved game. Yes, constant 60fps. Good - Factory Town : It worked with
primus-vk
previously but lower fps than native Windows run. Now same with Windows. Smooth. Good. Banished : was same situation with factory town. Now very good.
ioquake3 : It's not steam game. Pretty constant max fps on 4k(3840x2160). Good
[link] [comments] ...