You are not logged in.
Hello, I am using dwm and i installed nvidia drivers from arch repository. I have geforce gtx 1050ti. On glxgears i have 50000fps. On euro truck simulator 100fps but not running smooth. When i turn on vsync. It's the same. Please help me!
Last edited by delyan05 (2020-12-24 09:28:15)
Offline
That's often an issue of the CPU scheduler, try a more desktop/responsiveness focused scheduler, like the tuned one from linux-zen or linux-ck or so. To install either of these in combination with nvidia you need the headers of the relevant kernel and nvidia-dkms (in case of the in repo linux-zen you need to install linux-zen-headers as well as nvidia-dkms
Offline
Why would the scheduler matter if he's already running at 100fps?
@delyan05, please elaborate on "not smooth" (looks more like 10fps, tearing, …) and provide more details on the environment, in particular whether you're using a compositor along dwm and if this is a hybrid graphics system (additional intel chip)
Offline
I have just installed linux-zen and linux-zen-headers and i tried to play. This fixed my problems. Thank you very much!
Offline
I will check again and give you more information
Offline
I have ryzen 3 3100 and palit 1050ti. The ram is 16GB-2x8GB 3200mhz.
Offline
Ooh i checked again but the problem isn't fixed.
Offline
I am not using compositor. Not smooth means that i have small lag spikes but only on the monitor.
Offline
My chipset is b450.
Offline
Please don't bump, just edit and mend your posts if nobody has replied so far.
Also think and then post, not the other way round ;-)
Most important output you didn't post: "lspci".
Can you quantify "small lag spikes"?
Does "euro truck simulator" allow you to chart the fps?
Offline
In euro truck simulator fps is 100 fps.
Small like spikes means that the video on my display is not running smooth.
This is my lspci:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 7
03:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 XHCI Controller (rev 01)
03:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller (rev 01)
03:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge (rev 01)
20:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
20:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
20:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
20:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
25:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
29:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
29:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
2a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
2b:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
2b:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP
2b:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
2b:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
30:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
31:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
Last edited by delyan05 (2020-12-15 16:39:02)
Offline
Afaik this has something to do with frametimes and CFS being comparatively bad here, see e.g. https://flightlessmango.com/benchmarks/zhs_-FOHSZU or https://flightlessmango.com/benchmarks/zhs_-FOHSZU
But aside from those I can only speak from personal experience in this case and e.g. Street Fighter V has an annoying stutter on the stock kernel that's very noticeable but isn't being reflected in the normal FPS listing. Using MuQSS or PDS helps here YMMV.
Edit: Please wrap outputs in
[code]code here[/code]tags
Last edited by V1del (2020-12-15 16:45:44)
Offline
So "not smooth" means "small lag spikes" and "small lag spikes" means "not smooth"…
If the simulator was running at a constant fps, you'd not notice any lag (spikes)
Do you notice similar "lag spikes" in glxgears?
@V1del is that benchmark specified (ie. do we know what other processes run in parallel - like eg. tracker ;-)?
Offline
Yes i also have lag spikes in glx gears if sync to vblank is on. If i turn it off, i don't have lag spikes, but if i play euro truck simulator 2 with sync to vblank turned off the fps 100 but i see it too laggy.
Last edited by delyan05 (2020-12-15 17:01:04)
Offline
So it's a vsync issue? Do you have the problem in ETS when turning vsync *off*?
Offline
Yes i have the same issues.
Offline
Not sure and I just picked one to illustrate what I'm talking about. And if we couldn't have a tracker randomly deciding that now is a good time to start indexing, what would be the point of a scheduler anyway? ![]()
Not but seriously, I dislike making suggestion like these based on "feely" in this context as much as the next guy, but I've noticed the issue often enough and don't know enough on the subject to give actual hard info on why it does make such a difference other than that it's pretty noticeable when you actually see it.
FWIW afaik zen also uses CFS by default but lowers the tunables so it reacts more aggressively: https://liquorix.net/
Regarding the apparently still existing problem, another thing you might want to give a shot is enabling the performance CPU governor: https://wiki.archlinux.org/index.php/CP … _governors
Last edited by V1del (2020-12-15 17:16:40)
Offline
Please try to enable triple buffering, /etc/X11/xorg.conf.d/20-nvidia.conf
Section "Device"
Identifier "Default nvidia Device" # random string, but mandatory
Driver "nvidia" # mandatory
Option "NoLogo" "True" # no advert
Option "CoolBits" "24" # can offer more options in nvidia-settings
Option "TripleBuffer" "True" # <= this is the important one!
EndSectionOffline
I don't have file 20-nvidia.conf.
Offline
And what are you going to do about that…?
Offline
FWIW afaik zen also uses CFS by default but lowers the tunables so it reacts more aggressively: https://liquorix.net/
The Zen kernel has BFQ as the default scheduler. :-)
Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux Forever!
Offline
IO yes, but I'm talking about the CPU schedulers here.
Offline
Doh! That's my silliness. I don't know how exactly I missed the CFS instead of CFQ part. My apologies. :-P
Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux Forever!
Offline