Sublime Forum

Strange HiDPI behaviour (3161)

#1

Ok, so my Sublime has been behaving a bit strangely in regards to the Windows 10 )pro, version 1709) scaling. I have two screens, one 1080p (100% scaling in windows) and one 4k (with Windows scaling set to 150%).

Now, running sublime will set the dpi scaling of the app to match the screen I ran it from. So, a shortcut on the 100% display will open Sublime in 1.0 dpi scaling, and using a shortcut on the 150% scaled display will open Sublime in 1.5 dpi scaling (menu and title bars are still 100% regardless of method of launching).

This is the first three lines of the console after starting
DPI mode: per-monitor (w/ non-client) startup, version: 3161 windows x64 channel: dev executable: /C/Program Files/Sublime Text 3/sublime_text.exe

I believe the DPI mode should actually be “per-monitor v2” on this system, but for whatever reason it isn’t.

So, I tried downloading the (portable) 32 bit version, and everything worked perfectly. “per-monitor v2” and automatic scaling of the window, exactly as expected. Hmm…

Ok, so I download the portable 64 bit version and it also works fine.

Maybe it’s my install that has been corrupted? I uninstall sublime and reinstall. No change, still not working. So the user settings anbd/or installed packages then? I rename %appdata%\sublime text 3 and %localappdata%\sublime text 3 folders and relaunch. Still not working properly.

And this is where I’m stuck. Is there an inherent difference between the portable and the installed version, or are there some magic folders I need to also clear to get a properly clean installation?

0 Likes

#2

Well… Had a chat with a helpful soul in the Discord support channel and it turns out it was a compatibility setting on the executable. Playing around with various settings prior to 3158, I had set the “Override high DPI scaling behaviour” setting on the executable, and I didn’t realize that this setting would persist not only through a few version upgrades but also through a uninstall/reinstall cycle.

Disabling that one made Sublime work perfectly fine again… Mostly responding in here to indicate it’s been solved and maybe help someone else at some point with similar problems (e.g. check your compatibility settings if things misbehave).

2 Likes