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.