Xonotic Forums

Full Version: Can't set 2k resolution
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I recently got a new Laptop with a RTX 3070 and 2560x1600@165Hz resolution screen, so I would like to use this resolution within Xonotic, same as desktop res.
I cannot get it to work, I tried the menue way, console way, config.cfg, etc., way, - nothing works.
Xonotic always bumps me back to some 1536/1707x807 resolution.
I tried all the vid_width 2560, vid_height 1600, vid_desktopfullscreen 1,vid_netwmfullscreen 1, vid_restart stuff recommeded elsewhere in here, but to no effect other than game in lowres.

Console says the following on trying to force mode change (vid_width 2560, vid_height 1600, vid_restart):
You can see it says "Changing to.." but it ends up in the same low res mode.
https://ibb.co/YW5RX19 (big)
[Image: Xon-Mode-Change1.png]


Note 1, there seems to be a small pause where it has set resolution, showing (slightly) misaligned screen, which gets adjusted/scaled back to the aformentioned 1536x807 quickly.
Note 2, setting 1707x1067 works, but nothing higher.
Note 3, setting resolution to 2k and enabling window mode sort of works, but only shows upper left quarter of rendered image, rest is outside screen.

Any ideas?
Please, prettty please (Yes, I am way over my head)
This took me a while.
Solution is to NOT use Windows 10 Scaling to make "Text, Apps and other elements" appear bigger (Display Options).
Xonotic seems to take current resolution info from Windows which reports something mathematically related to native resolution und scaling factor, but not the actual native resolution.
Setting Scaling to 100% solves the issue.
I still think this is a serious bug that should be fixed.
Why does..

Code:
"vid_width" "2560"
"vid_height" "1600"
vid_restart

..not override the windows scaling settings when windows desktop is running in native 2560x1600?
It should take precendence, shouldn't it..

Please help with a fix, I am a monkey  now
There are several ways to be found on the internet via the Rightclick-menu on the executable (Properties, Compatibility, High DPI settings..) which all do not work for Xonotic.
It seems the application itself needs to be aware of DPI settings and allowing override ort something.
(At least so I read on superuser etc.)

[url=https://superuser.com/questions/952120/windows-10-per-app-scaling/1094206][/url] Can some developer please chime in?
I am sort of disappointed that no one felt inclined to reply.
This a Help & Troubleshooting post, isn't it?

Anyway, I am now changing Windows Scaling to 100% before launching Xonotic.
This works well enough, now that I have found it the culprit.