Skip to content

Disable cursor blink to reduce idle CPU#36

Merged
abasiri merged 1 commit into
doctly:mainfrom
navedr:fix/disable-cursor-blink
May 4, 2026
Merged

Disable cursor blink to reduce idle CPU#36
abasiri merged 1 commit into
doctly:mainfrom
navedr:fix/disable-cursor-blink

Conversation

@navedr

@navedr navedr commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Sets cursorBlink: false in xterm terminal options
  • 5 idle terminals with cursor blink cause ~28% CPU from constant WebGL repaint cycles (requestAnimationFrame → draw call every ~500ms per terminal)
  • With blink disabled, idle terminals drop to near-zero CPU

Test plan

  • Open 5+ terminals, leave them at shell prompt
  • Monitor CPU — should be near-zero when idle
  • Verify cursor is visible (solid block, no blink)

🤖 Generated with Claude Code

5 idle terminals with cursorBlink: true cause ~28% CPU from
constant WebGL repaint cycles. With blink disabled, idle
terminals drop to near-zero.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@abasiri abasiri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — clean CPU win. See review comments re: optional focus-aware blink toggle as a follow-up.

@abasiri abasiri merged commit 23303dc into doctly:main May 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants