[PR #11634] [MERGED] Improve conhost CPU usage during text selection #28674

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11634
Author: @lhecker
Created: 10/27/2021
Status: Merged
Merged: 10/28/2021
Merged by: @lhecker

Base: mainHead: dev/lhecker/rendering-selection-perf


📝 Commits (1)

  • a9d6797 Improve conhost CPU usage during text selection

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 src/host/selection.cpp (+8 -0)

📄 Description

During text selection we redraw the window every time the cursor moves by a pixel.
This commit changes it so that it only updates once the selection actually changes.

This is an offshoot from #11623.

Validation Steps Performed

  • Text selection continues to work in DxEngine and AtlasEngine ✔️
  • Reduction in redraws ✔️

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/11634 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 10/27/2021 **Status:** ✅ Merged **Merged:** 10/28/2021 **Merged by:** [@lhecker](https://github.com/lhecker) **Base:** `main` ← **Head:** `dev/lhecker/rendering-selection-perf` --- ### 📝 Commits (1) - [`a9d6797`](https://github.com/microsoft/terminal/commit/a9d6797cf3a6c3faabca2ab9c65bf1da3a8331cd) Improve conhost CPU usage during text selection ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/host/selection.cpp` (+8 -0) </details> ### 📄 Description During text selection we redraw the window every time the cursor moves by a pixel. This commit changes it so that it only updates once the selection actually changes. This is an offshoot from #11623. ## Validation Steps Performed * Text selection continues to work in DxEngine and AtlasEngine ✔️ * Reduction in redraws ✔️ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:30:02 +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#28674