|
@@ -0,0 +1,27 @@
|
|
|
|
|
+
|
|
|
|
|
+# sway scaling
|
|
|
|
|
+
|
|
|
|
|
+The purported solution to hidpi when working on modern linux with Sway/Wayland would be to set the native resolution and then apply scaling.
|
|
|
|
|
+
|
|
|
|
|
+This can be done with the display configuration, for example:
|
|
|
|
|
+
|
|
|
|
|
+ output HDMI-A-1 scale 2
|
|
|
|
|
+
|
|
|
|
|
+So if you set your resolution to 4k then scale to 2, you render at 1080p.
|
|
|
|
|
+
|
|
|
|
|
+This keeps things on the screen sized for you to be able to read them.
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+## problems
|
|
|
|
|
+
|
|
|
|
|
+This can have unintended consequences on games and game performance.
|
|
|
|
|
+
|
|
|
|
|
+In particular games that rely on xwayland may experience performance degradation.
|
|
|
|
|
+
|
|
|
|
|
+Some issues include screen flickering, as well as erratic crashing.
|
|
|
|
|
+
|
|
|
|
|
+Oddly when mangohud is enabled you may see the hud flicker too, indicating it's a problem with the parent window and not the game itself.
|
|
|
|
|
+
|
|
|
|
|
+Granted, because the render dimensions are upscaled you may also see a performance benefit.
|
|
|
|
|
+
|
|
|
|
|
+If you find some games have a problem, you may consider disabling screen scaling when playing them.
|