Help > Window
FPS set to 60 when Fullscreen on a 165hz monitor (Arch Linux + i3wm)
vuln:
Hi there.
I am using Arch Linux with the window manager i3wm (X11) and have a 165hz monitor.
The issue that I am facing here is that when the window is set to fullscreen, the refresh rate of my monitor is set to 60hz.
(I can see that it changes the refresh rate of my monitor because the screen goes black for a couple of seconds and the cursor does not move smoothly)
sf::RenderWindow window(sf::VideoMode(SCREEN_WIDTH, SCREEN_HEIGHT), "App", sf::Style::Fullscreen);
If I enable v-sync, which should set the window FPS to my monitor refreshrate (in my case 165) but instead it sets the fps to 60.
window.setVerticalSyncEnabled(true);
If I disable v-sync, the FPS is as big as it can be regardless of monitor refresh rate but the mouse cursor does not feel smooth and so does everything on the screen.
However if I don't set the window to fullscreen, the fps/refresh rate is 165 when v-sync is enabled or as big as is can when v-sync is off.
sf::RenderWindow window(sf::VideoMode(SCREEN_WIDTH, SCREEN_HEIGHT), "App");
I built SFML 2.6.0 from source.
Thank you for your time.
eXpl0it3r:
Do you have multiple monitors? Is one of those a 60Hz monitor? I found some post about X11 not being able to properly handle this.
Either way it sounds like some issue between X11, xrandr, i3wm and your GPU.
Have you tried any other OpenGL games? Do they run at the correct refresh rate in fullscreen mode?
vuln:
No I only have one monitor
I have tried several OpenGL games (like CS2, Noita or hacknet) and had no issue at all
edit: I also tried to launch the app in KDE Plasma, Checked my drivers and my graphics card is new so it cant be failing
eXpl0it3r:
Are you running them in true fullscreen mode or just borderless window fullscreen mode?
Looking around a bit on the web it seems quite a common issue that games lock at 60Hz in fullscreen mode instead of the monitor refresh rate. Some seem to get it fixed with changing GPU settings, but I've mostly seen this for Windows, not sure what's the case on Linux.
vuln:
I believe I am using true fullscreen.
I set it to fullscreen by using sf::Style::Fullscreen when creating the window.
I have messed around with the GPU settngs (nvidia-settings) and set my resolution to 1080p 165hz (I have a 1440p monitor) and the hz of my monitor was not changed when opening the app (no black screen for 5 sec when launching or closing the window).
When i set it to 1440p 165hz (what i normally use) the issue occurs.
Navigation
[0] Message Index
[#] Next page
Go to full version