zed icon indicating copy to clipboard operation
zed copied to clipboard

windows: Remove using `DCompositionWaitForCompositorClock`

Open CharlesChen0823 opened this issue 9 months ago • 1 comments

  1. Zed unreponse after every time windows wake up from sleep, I must closed then reopen.
  2. I have debug origin implement before #9351, in win11 Zed work well.
  3. If i remove using DCompositionWaitForCompositorClock, everything work well.
  4. I don't known what happened, wake up from sleep this thread not workding. If someone have experience? Or, remove using DCompositionWaitForCompositorClock?

Release Notes:

  • N/A

CharlesChen0823 avatar May 08 '24 13:05 CharlesChen0823

cc: @JunkuiZhang

@CharlesChen0823, I'd really like to keep DCompositionWaitForCompositorClock, as we'd like Zed to vsync whenever possible. Maybe there's a windows message for waking up from sleep?

mikayla-maki avatar May 08 '24 18:05 mikayla-maki

I conducted some tests and fixed it in #11589. Could you please give it a try to see if it's resolved? It seems to be working fine on my end in #11589 .

JunkuiZhang avatar May 09 '24 03:05 JunkuiZhang

Superseded by https://github.com/zed-industries/zed/pull/11589

mikayla-maki avatar May 09 '24 03:05 mikayla-maki