rnallandigal
Joined 3 years ago
Joined 3 years ago
[0] https://smunix.github.io/dev.stephendiehl.com/hask/index.htm...
Currently, the solution is to render at 1080p and upscale to monitor resolution, but this has several problems: 1. Autodetection of current / optimal dpi is not reliable. 2. Text is scaled, but not icons. 3. Some applications ignore the system wide dpi scaling setting and must be configured individually (--force-device-scale-factor for chromium apps). 4. Upscaling is not intelligent: Ex. in chrome, since the entire UI and content is upscaled, watching youtube videos in 1440p first downscales to 1080p then upscales to 1440p. This degrades the quality and negates the benefit of a HiDPI display. 5. External monitor setups are very difficult to get right: Each display can be scaled differently, but apps must also be configured to match the scaling.
Despite this, I still enjoy the experience in linux and workaround these issues rather than abandon the OS.
The if statement determines which branch to take based on the value of the condition. This value is contextually converted to a bool and evaluated[1].
[0] https://en.cppreference.com/w/cpp/utility/to_chars_result
[1] https://en.cppreference.com/w/cpp/language/if#Condition