3

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?

Anders
  • 17,306
  • 10
  • 76
  • 144

1 Answers1

3

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

Have a look at this discussion and this one too

Glenn Slayden
  • 17,543
  • 3
  • 114
  • 108
Emond
  • 50,210
  • 11
  • 84
  • 115
  • Thats really bad, I thought WPF was supposed to be flexible for media intense apps. Can i somehow render SLIMDX content in a wpf window? – Anders May 27 '11 at 10:23
  • 1
    Yes you can! In the samples of SlimDX there is an example of WPF integration. – Emond May 27 '11 at 11:11
  • Will check that out, I need to be ablet o have overlayed WPF (HUD) controls over the SLIMFX content.. I hope that is possible, will have to check it out.. – Anders May 27 '11 at 12:17