[PR #9091] Teach the renderer to keep thread alive if engine requests it #27415

Open
opened 2026-01-31 09:21:50 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/9091

State: closed
Merged: Yes


Teaches renderer base to keep thread alive if engine requests it.
DxEngine now requests it if shaders are on.

  • The render engine interface now has a true/false to return whether the
    specific renderer wants another frame to immediately follow up. The
    renderer base will ask for this information as it ends the paint on
    any particular engine (which is the time where invalid regions are
    typically cleaned up) and just poke the render thread the same as if
    an invalidation request came in from outside of render-land. That will
    trigger the render thread to just keep moving in the same way as any
    other invalidation.

Validation Steps Performed

  • Actually built it
  • Actually try it

I promised this in #8994

**Original Pull Request:** https://github.com/microsoft/terminal/pull/9091 **State:** closed **Merged:** Yes --- Teaches renderer base to keep thread alive if engine requests it. `DxEngine` now requests it if shaders are on. - The render engine interface now has a true/false to return whether the specific renderer wants another frame to immediately follow up. The renderer base will ask for this information as it ends the paint on any particular engine (which is the time where invalid regions are typically cleaned up) and just poke the render thread the same as if an invalidation request came in from outside of render-land. That will trigger the render thread to just keep moving in the same way as any other invalidation. ## Validation Steps Performed - [x] Actually built it - [x] Actually try it I promised this in #8994
claunia added the pull-request label 2026-01-31 09:21:50 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27415