linebender / linebender/druid

druid-shell no clear causes flickers on windows

Open
#375 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug shell/win
Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

If you use druid-shell without clearing on each paint event, you get a weird flickering effect which I assume is a result of the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL presentation strategy.

This wasn't obvious at first, and should probably be documented somewhere.

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 locating the druid-shell painting documentation and the Windows presentation behavior related to DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL. Document that applications should clear on each paint event to avoid flickering on Windows; it is done when this guidance is easy to find and accurately explains the cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.