Search code examples
wpfvsynctearing

wpf wait for vsync (Image)


I use a UDP API that updates a camera feed to a ImageSource, I have a timer that updates the ViewModel's ImageSource and then WPF databinds the Image on screen.

The timer has an interval that fires as many times as the refresh rate, but offourse this does not mean its in sync with the screen update so I get tearing.

With SlimDX, XNA opengl etc its easy to sync to the refresh rate, how should I solve it with WPF?


Solution

  • I am afraid that this is not possible at the moment.

    Have a look at this discussion and this one too