TIL that in 2019 people still have DPI problems with their software.
Windows has the complete solution for non-integer pixel ratios. For instance, on this machine, my browser's window.devicePixelRatio is `1.7647058823529411`. For my 4k screen, this means apps should be rendering into 3840x2160 pixels, but scale it /as if/ it were a 2176x1224 display. (2160/devicePixelRatio = 1224.0)
This allows Windows apps to handle non-integer scaling, whereas on Mac this causes apps to get "fuzzy", since they would e.g. render into a 2176x1224 screenbuffer which is upscaled to 4k by the OS compositor.
Wayland implements per-monitor scaling but not much has made the transition yet.