You are not logged in.

#1 2020-12-15 15:40:27

delyan05
Member
Registered: 2020-12-15
Posts: 11

[SOLVED]Video games not running smooth but fps is high

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

#2 2020-12-15 16:13:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED]Video games not running smooth but fps is high

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

#3 2020-12-15 16:19:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: [SOLVED]Video games not running smooth but fps is high

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

#4 2020-12-15 16:21:38

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

I have just installed linux-zen and linux-zen-headers and i tried to play. This fixed my problems. Thank you very much!

Offline

#5 2020-12-15 16:23:28

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

I will check again and give you more information

Offline

#6 2020-12-15 16:24:24

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

I have ryzen 3 3100 and palit 1050ti. The ram is 16GB-2x8GB 3200mhz.

Offline

#7 2020-12-15 16:26:12

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

Ooh i checked again but the problem isn't fixed.

Offline

#8 2020-12-15 16:28:38

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

I am not using compositor. Not smooth means that i have small lag spikes but only on the monitor.

Offline

#9 2020-12-15 16:33:24

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

My chipset is b450.

Offline

#10 2020-12-15 16:34:38

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: [SOLVED]Video games not running smooth but fps is high

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

#11 2020-12-15 16:38:10

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

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

#12 2020-12-15 16:44:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED]Video games not running smooth but fps is high

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

#13 2020-12-15 16:48:56

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: [SOLVED]Video games not running smooth but fps is high

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

#14 2020-12-15 16:59:20

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

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

#15 2020-12-15 17:01:33

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: [SOLVED]Video games not running smooth but fps is high

So it's a vsync issue? Do you have the problem in ETS when turning vsync *off*?

Offline

#16 2020-12-15 17:03:18

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

Yes i have the same issues.

Offline

#17 2020-12-15 17:08:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED]Video games not running smooth but fps is high

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? tongue

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

#18 2020-12-15 20:57:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: [SOLVED]Video games not running smooth but fps is high

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!
EndSection

Offline

#19 2020-12-16 07:11:31

delyan05
Member
Registered: 2020-12-15
Posts: 11

Re: [SOLVED]Video games not running smooth but fps is high

I don't have file 20-nvidia.conf.

Offline

#20 2020-12-16 07:58:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: [SOLVED]Video games not running smooth but fps is high

And what are you going to do about that…?

Offline

#21 2020-12-16 09:00:14

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 115
Website

Re: [SOLVED]Video games not running smooth but fps is high

V1del wrote:

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

#22 2020-12-16 09:11:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED]Video games not running smooth but fps is high

IO yes, but I'm talking about the CPU schedulers here.

Offline

#23 2020-12-16 09:45:18

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 115
Website

Re: [SOLVED]Video games not running smooth but fps is high

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

Board footer

Powered by FluxBB