matzman666 / OpenVR-AdvancedSettings

OpenVR Advanced Settings Dashboard Overlay
GNU General Public License v3.0
879 stars 88 forks source link

DPI scaling causes bad UI element arrangement #112

Open scatterlogical opened 6 years ago

scatterlogical commented 6 years ago

I have my Windows' DPI scaling set to 125% (I use a digital projector at 1080p, so necessary to read some text clearly), and it's causing bad issues with UI elements, in both VR and desktop modes. Some are objects are overlapping, others are cut off at the side of the window, and particularly with the chaperone profile window I can't see the ok and cancel buttons at all.

CAPP360 commented 6 years ago

Same issue here. I tried troubleshooting from both links below to no avail.

https://github.com/matzman666/OpenVR-AdvancedSettings/issues/4 https://github.com/matzman666/OpenVR-AdvancedSettings/issues/15

matzman666 commented 6 years ago

I have dpi scaling completely disabled in this application. I don't know what else to do than telling Qt to stop using spi scaling. You could try to disable dpi scaling in the windows compatibility settings (Right-click on the AdvancedSetttings.exe => Settings => Compatibility)

pstanbri commented 6 years ago

I have the same issue when using 4k and 200%+ scaling. If I set 1080p and and set to 100% DPI everything works fine. I've tried various windows compatibility settings but couldn't get anything to work.
Rather than changing my resolution/dpi every time I am currently using the batch file (dont have the exact name right now) that exists in the Advanced Settings install directory - this lets you launch the Advanced Settings on your desktop seperately from VR. You can then control the settings through this. One thing to note, I am pretty sure I still had to set the compatibility settings on the batch file to 'Over-ride system settings'. Override Application settings did not work and still screwed the UI elements. Hope this helps as a temporary workaround.

lllsondowlll commented 6 years ago

Can confirm, this issue is annoying. I can either use the desktop application with DPI override, or I have to set my desktop resolution from 4K 300% DPI to 1080P100% DPI. This is completely making advanced settings unusable.

Setting the startup variable through CMD does allow it to display properly in "C:\Program Files\OpenVR-AdvancedSettings\AdvancedSettings.exe" -platform windows:dpiawareness=0

That being said, this has to be executed manually and the following QT setting is not honored: [Platforms] WindowsArguments = dpiawareness=0

haywirephoenix commented 4 years ago

Can confirm this is still happening.

If you launch the app yourself it will honour the Windows compatibility/Qt dpi settings, but if you let Steam launch it automatically it will use steams scaling, particularly if you have Steam's dpi setting, which you probably do. This is a SteamVR bug.

You can disable Steam's dpi scaling, which is mildy annoying but not as bad as your whole desktop being tiny:

Steam > Settings > Interfact > Scale Text and Icons...

Or you can prevent AdvancedSettings from being autolaunched by steam:

SteamVR > Settings > Startup & Shutdown > Auto start Overlay Apps

Then you can launch advancedsettings manually, or with a windows startup script.