mrkielm
May 28th, 2018, 03:39 AM
Hello!
I'm very new to linux, I've just this weekend installed Ubuntu 18.04 and troubleshooted my way through various minor issues, and everything seems to be going well.
I'm using the proprietary nvidia 390 driver, managed to enable vsync via modesetting and done all sorts of things I can't even remember anymore. :)
One minor problem I had to overcome was using vsync with my laptop's built in screen. Here are the refresh rates available to xrandr for my monitor at the desired resolution:
1920x1080 60.02 + 60.01 59.97 59.96* 59.93 48.02
As you can see, I'm using 59.96, as for some reason the 60.02 refresh rate produces a maximum of 48fps in every game I try it in. I have no idea why. But setting the refresh rate to 59.96 solved the issue, allowing games to run at 60fps.
One problem however, is Minecraft. For some reason, when firing this up and going fullscreen, the refresh rate is set to the preferred (60.02) and with vsync enabled, the maximum fps drops to 48 again. Checking xrandr after closing down Minecraft confirms that this is what is happening - the refresh rate has been reset.
I've spent many hours googling this and come up blank. xrandr's man page provides methods to set an output to the preferred resolution/refresh rate, but I cannot find an option to set what the preferred refresh rate should be.
Perhaps I'm going about this wrong and should instead try to determine why the refresh rate of 60.02 is giving me 48fps instead? I don't know, but I'm here looking for any advice that's offered.
Thanks!
I'm very new to linux, I've just this weekend installed Ubuntu 18.04 and troubleshooted my way through various minor issues, and everything seems to be going well.
I'm using the proprietary nvidia 390 driver, managed to enable vsync via modesetting and done all sorts of things I can't even remember anymore. :)
One minor problem I had to overcome was using vsync with my laptop's built in screen. Here are the refresh rates available to xrandr for my monitor at the desired resolution:
1920x1080 60.02 + 60.01 59.97 59.96* 59.93 48.02
As you can see, I'm using 59.96, as for some reason the 60.02 refresh rate produces a maximum of 48fps in every game I try it in. I have no idea why. But setting the refresh rate to 59.96 solved the issue, allowing games to run at 60fps.
One problem however, is Minecraft. For some reason, when firing this up and going fullscreen, the refresh rate is set to the preferred (60.02) and with vsync enabled, the maximum fps drops to 48 again. Checking xrandr after closing down Minecraft confirms that this is what is happening - the refresh rate has been reset.
I've spent many hours googling this and come up blank. xrandr's man page provides methods to set an output to the preferred resolution/refresh rate, but I cannot find an option to set what the preferred refresh rate should be.
Perhaps I'm going about this wrong and should instead try to determine why the refresh rate of 60.02 is giving me 48fps instead? I don't know, but I'm here looking for any advice that's offered.
Thanks!