[PR #19757] Reduce input latency with double buffering #31949

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

Original Pull Request: https://github.com/microsoft/terminal/pull/19757

State: closed
Merged: No


Summary

  • Reduce swap chain buffer count from 3 to 2
  • Disable vsync (sync interval 0) in Present calls to reduce latency

Motivation

Triple buffering with vsync causes ~33ms (2 frames at 60Hz) of input latency. By switching to double buffering and disabling vsync, measured input latency drops to ~15.5ms (SD 4.2ms) as measured with typometer.

Test plan

  • Build and deploy Windows Terminal
  • Measure input latency with typometer
  • Verify no visual artifacts or tearing on various monitors/refresh rates
  • Test stability during window resize and screen capture

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/microsoft/terminal/pull/19757 **State:** closed **Merged:** No --- ## Summary - Reduce swap chain buffer count from 3 to 2 - Disable vsync (sync interval 0) in Present calls to reduce latency ## Motivation Triple buffering with vsync causes ~33ms (2 frames at 60Hz) of input latency. By switching to double buffering and disabling vsync, measured input latency drops to ~15.5ms (SD 4.2ms) as measured with typometer. ## Test plan - [x] Build and deploy Windows Terminal - [x] Measure input latency with typometer - [ ] Verify no visual artifacts or tearing on various monitors/refresh rates - [ ] Test stability during window resize and screen capture 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claunia added the pull-request label 2026-01-31 09:50:33 +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#31949