microsoft / microsoft/terminal

DispatchTimer is constantly running

Open
#12,706 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Performance Issue-Bug Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

From an internal mail conversation titled "Terminal is always ticking":
> I notice that Terminal on my machine is constantly ticking, meaning XAML Tick. It looks like there is a DispatcherTimer constantly running, even when the app isn't in the foreground and even when it is minimized.

We should stop any DispatchTimers when Terminal is minimized.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing DispatcherTimer usage in the Windows Terminal codebase and reproduce the ticking behavior while the app is minimized. Done means Terminal stops its DispatcherTimers when minimized, including when it is not in the foreground.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.