[PR #10394] [MERGED] Throttle cursor redrawing in outputStream.cpp #28028

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10394
Author: @skyline75489
Created: 6/10/2021
Status: Merged
Merged: 6/28/2021
Merged by: @undefined

Base: mainHead: chesterliu/dev/con-cursor


📝 Commits (3)

📊 Changes

1 file changed (+10 additions, -2 deletions)

View changed files

📝 src/host/outputStream.cpp (+10 -2)

📄 Description

Try to throttle the cursor redrawing in the conhost world.

The motivation of this is the high CPU usage of TriggerRedrawCursor (#10393).

This can be seen as the conhost version of #2960.

This saves 5%~8% of the CPU time.

Supports #10462.


🔄 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/10394 **Author:** [@skyline75489](https://github.com/skyline75489) **Created:** 6/10/2021 **Status:** ✅ Merged **Merged:** 6/28/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `chesterliu/dev/con-cursor` --- ### 📝 Commits (3) - [`04d22b9`](https://github.com/microsoft/terminal/commit/04d22b9d46c11f0dcf277e643a2c5c1f80d93345) Throttle cursor redrawing in outputStream.cpp - [`046300d`](https://github.com/microsoft/terminal/commit/046300da5b32f55e04b695902db09a8fc4e1a6ed) Missed it - [`936f54b`](https://github.com/microsoft/terminal/commit/936f54b680e4f25a82dbd9b47e629e83d50a4d46) Alright then ### 📊 Changes **1 file changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/host/outputStream.cpp` (+10 -2) </details> ### 📄 Description Try to throttle the cursor redrawing in the conhost world. The motivation of this is the high CPU usage of `TriggerRedrawCursor` (#10393). This can be seen as the conhost version of #2960. This saves 5%~8% of the CPU time. Supports #10462. --- <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:25:51 +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#28028