[PR #14266] [MERGED] Use float throughout ColorFix #30038

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14266
Author: @lhecker
Created: 10/21/2022
Status: Merged
Merged: 10/24/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/color-fix-perf


📝 Commits (2)

  • e587f38 Use float throughout ColorFix
  • 164a571 Merge remote-tracking branch 'origin/main' into dev/lhecker/color-fix-perf

📊 Changes

2 files changed (+75 additions, -75 deletions)

View changed files

📝 src/types/ColorFix.cpp (+72 -72)
📝 src/types/inc/ColorFix.hpp (+3 -3)

📄 Description

This is just a quick drive-by improvement. Switching from double to float
roughly doubles performance on a contemporary x86 CPU with /fp:fast.

Validation Steps Performed

  • Patch RenderSettings.hpp to include Mode::AlwaysDistinguishableColors
  • Run a color intense application in AtlasEngine and observe CPU usage

🔄 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/14266 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 10/21/2022 **Status:** ✅ Merged **Merged:** 10/24/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/color-fix-perf` --- ### 📝 Commits (2) - [`e587f38`](https://github.com/microsoft/terminal/commit/e587f38f67c54ae0d2517f78d4fe6d9584308096) Use float throughout ColorFix - [`164a571`](https://github.com/microsoft/terminal/commit/164a571909370cf2b16d5437185260bc36b3246f) Merge remote-tracking branch 'origin/main' into dev/lhecker/color-fix-perf ### 📊 Changes **2 files changed** (+75 additions, -75 deletions) <details> <summary>View changed files</summary> 📝 `src/types/ColorFix.cpp` (+72 -72) 📝 `src/types/inc/ColorFix.hpp` (+3 -3) </details> ### 📄 Description This is just a quick drive-by improvement. Switching from double to float roughly doubles performance on a contemporary x86 CPU with `/fp:fast`. ## Validation Steps Performed * Patch `RenderSettings.hpp` to include `Mode::AlwaysDistinguishableColors` * Run a color intense application in AtlasEngine and observe CPU usage --- <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:38:18 +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#30038