Skip to content

[MEGATHREAD] AtlasEngine bugs and missing features (experimental.useAtlasEngine) #9999

Open

Description

Bugs

  • Desktop stutters on Nvidia GPUs due to G-SYNC switching on/off when two MPO planes are active (MSFT:37283316)
  • Zooming (font changes in general) are much slower than DxEngine
    👉 Doesn't occur with a local dev build. What's wrong with our release builds? 🤔
  • Atlas acts like IntenseIsBold is always on
  • Remaining gridlines (left, right, top, bottom, double underline)
  • Missing cursor when experimental text rendering engine is enabled in HDR enabled monitor Missing cursor when experimental text rendering engine is enabled in HDR enabled monitor #12507
  • Changing transparency from the command palette doesn't change the transparency until committed / pressing enter

Missing features

New features

Cleanup

  • Deduplicate font fallback selection during UpdateFont(). Both DxEngine and AtlasEngine fall back to Consolas, etc. separately.

Things we think were fixed by this renderer...

...Or at least, this renderer got out of the way so that these can be fixed now.

Not really a bug

Activity

  1. changed the title [-]<reserved>[/-] [+][MEGATHREAD] AtlasEngine bugs and missing features (`experimental.useAtlasEngine`)[/+] on Dec 2, 2021
  2. ghost added
    Needs-Tag-Fix
    on Dec 2, 2021
  3. ghost added a commit that references this issue on Jan 27, 2022
  4. DHowett commented on Feb 1, 2022

    @DHowett
  5. ghost removed
    Needs-Tag-Fix
    on Feb 17, 2022
  6. 30 remaining items

  7. ghost removed
    Needs-Tag-Fix
    on Jan 24, 2023
  8. added
    Needs-Tag-Fix
    and removed
    Needs-Tag-Fix
    on May 3, 2023
  9. o-sdn-o commented on May 5, 2024

    @o-sdn-o

    Alpha blending is broken in grayscale AA mode (dark moire around glyphs with high RGB-contrast between foreground and background). Apparently the transition between linear/sRGB is missing somewhere.

    My setup: Current main branch. Windows 10.

    pwsh:

    "🥵🦚`e[38;2;255;0;0;48;2;0;0;255mtest`e[38;2;0;255;255mtest`e[m"
    

    Grayscale AA mode:
    image
    image

    Cleartype AA mode:
    image

    Expected grayscale AA mode blending:
    image
    image

  10. lhecker commented on May 6, 2024

    @lhecker
    Member

    Your issue is definitely weird. The blue text background in your two screenshots is #120efd and not #0000ff. Why's that? The red "test" text is also #ff0302 and not a clean #ff0000. Are you sure your screenshot wasn't chroma subsampled (I mean like YUV 4:2:2), or something similar?

    In any case, I've tested this with Visual TrueType just now. First I've reset my ClearType settings so that I get a clean 1.8 gamma:

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Control Panel\Desktop]
    "FontSmoothing"="2"
    "FontSmoothingGamma"=dword:00000000
    "FontSmoothingOrientation"=dword:00000001
    "FontSmoothingType"=dword:00000002
    
    [-HKEY_CURRENT_USER\Software\Microsoft\Avalon.Graphics]
    
    [-HKEY_LOCAL_MACHINE\Software\Microsoft\Avalon.Graphics]
    

    Then I configured VTT like so:

    • Display > Size to 18pt
    • Display > Resolution to 144 dpi (this matches your screenshots)
    • Display > General Options: Here I made sure only "Follow gasp settings" and "ClearType gray" are checked at the end
    • Tools > Options: Set "Gamma correction" to 1800

    This got me this:
    image

    which is almost identical to what BackendD3D renders for me (if you zoom into the "t"):
    image

  11. o-sdn-o commented on May 6, 2024

    @o-sdn-o
  12. o-sdn-o commented on May 6, 2024

    @o-sdn-o
  13. o-sdn-o commented on May 6, 2024

    @o-sdn-o
  14. tusharsnx commented on May 6, 2024

    @tusharsnx
    Contributor

    Dmitry Sapozhnikov (@o-sdn-o) Nah, that's the GDI renderer (unless you have used useDX from the registry).

    I do see similar result in conhost as you

    Conhost with system-wide Cleartype off:

    image

    Windows Terminal with Grayscale AA:

    image

    Windows Terminal with ClearType AA:

    image

  15. ChGen commented on Feb 3, 2025

    @ChGen

    I regularly observe high Shared GPU memory usage (According to Task Manager values) over long period of time with 7 - 12 tabs. It could easily go more than 1GB of VRAM, higher than Firefox browser and VSCode, for example, which looks like a leak or inefficiency.
    Windows 11 23H2 and 24H2. Intel UHD730/Iris XE graphics. Intel GPU drivers versions 31.0.* and 32.*.
    I tried cleaning all tabs history and minimising/resizing window, but it doesn't affect shared GPU memory usage.
    For 16gb laptops this is quite subtle memory leak, since main 16gb memory is shared with GPU.
    Windows Terminal version 1.21.3231.0, but it affects older too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-AtlasEngineIssue-ScenarioPriority-1Product-Terminal

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions