You are not logged in.

#1 2020-03-28 10:58:51

xR4yd
Member
Registered: 2020-03-28
Posts: 2

Frame skipping on 144Hz

After completely switching to Arch (previously I was using Windows in Dual Boot), I noticed that games would stutter almost as much as on 60Hz. After doing some testing on testufo.com, I found out that this might be due to frame skipping. Since I wasn’t sure if a browser could accurately measure such things compared to a desktop application or game, I wrote a quick frame skipping tester in C++ using SFML:

#include <SFML/Graphics.hpp>

const int W = 15;
const int H = 8;

int main()
{
    sf::RenderWindow window(sf::VideoMode(40 * W, 40 * H), "Frameskip Test");
    window.setVerticalSyncEnabled(true);
    sf::RectangleShape shape;
    shape.setSize(sf::Vector2f(40,40));
    int w = 0;
    int h = 0;
    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }
        shape.setPosition(w * 40, h * 40);
        window.clear();
        window.draw(shape);
        window.display();
        w++;
        if(w >= W)
        {
	    w = 0;
	    h++;
        }
        if(h >= H)
            h = 0;
    }
    return 0;
}

I installed the “sfml” package and compiled the program with: “g++ frameskip.cpp -o frameskip -lsfml-graphics -lsfml-window -lsfml-system”.
Still, there was exactly the same, very obvious frame skipping as only about every second rectangle was actually visible.
I have looked into the KDE Plasma display settings, the NVIDIA X Server Settings and even xrandr. All of them had a 144Hz mode selected. I even tried installing i3wm, but nothing changed. I would greatly appreciate any help regarding this issue.
Here are some of my hardware specs that may be relevant:
GPU: NVIDIA GeForce GTX 970
Monitor: iiyama ProLite GB2488HSU
Connector: DisplayPort

Offline

#2 2020-04-01 10:31:13

xR4yd
Member
Registered: 2020-03-28
Posts: 2

Re: Frame skipping on 144Hz

Nvm, solved it! I just had to add my user to the video group and now everything's fine. Apparently NVIDIA requires that. I just find it weird that this wasn't mentioned in any resource I could find.

Offline

#3 2020-04-01 12:09:30

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,392

Re: Frame skipping on 144Hz

membership of that group is normally not needed anymore[1], maybe you have a session problem[2] ?

[1] https://wiki.archlinux.org/index.php/Us … emd_groups
[2] https://wiki.archlinux.org/index.php/Ge … ermissions


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB