Always round GPU layer dimensions to physical pixel boundaries#15372
Always round GPU layer dimensions to physical pixel boundaries#15372nathansobo merged 1 commit intomasterfrom
Conversation
This ensure subpixel anti-aliasing works when `window.devicePixelRatio` is not an integer. Signed-off-by: Nathan Sobo <nathan@github.com>
|
Taking a 👀 |
|
Building now! |
|
Everything looks 💯 at a 150% display setting. After this PR I think the only elements that don't have subpixel antialiasing are the tabs and status bar 🎉. |
|
I noticed a slight blur before and saw that things are looking better after changing the display to 125% and 150% thanks @50Wliu for verifying as well! 👍 💯 |
|
❤️ 💯 👏 🚢 Amazing work @as-cii @nathansobo I'll give this a quick test on Windows 7 tomorrow as well. |
|
AppVeyor looks like it got stuck installing dependencies for the 32 bit build, which we don't even run tests on. Everything else was green. Merging. |
|
Any idea when this will be released in a stable build? |
|
@yonimend We can't guarantee anything but this is currently slated to ship with v1.21.0. |
|
This will be contained in the next hotfix releases, which should go out this week. |
Always round GPU layer dimensions to physical pixel boundaries
Always round GPU layer dimensions to physical pixel boundaries
Fixes #13361
Fixes #15180
Fixes #15257
Fixes #14237
Fixes #14898
Fixes #12652
Fixes #13627
This ensure subpixel anti-aliasing works when
window.devicePixelRatiois not an integer. Since subpixel anti-aliasing relies on the physical characteristics of the display, Chromium only enables it when rasterizing content that it knows will be aligned to a physical pixel boundary.@50Wliu @ungb @Ben3eeE: can you give this a spin on Windows, please? We have tested it works correctly with 125% on Windows and by manually calling
setZoomLevelon macOS in the console, but we'd like to make sure this is a holistic solution to the blurriness problem. Also, if you think this fixes more issues than the ones we have linked above, feel free to add them./cc: @atom/maintainers
🍐'd with @nathansobo.