I am trying to find a way to render video in WPF with lower CPU usage than MediaElement. The goal is smooth and low video playback in CPU format, as well as rendering Direct3D / DirectDraw video in C ++ programming.
I tried Direct2D (with WindowsAPICodePack) to render the video, and as a result the processor consumption is quite low, but the problem is that I do not have the ability to render the video, since there is no exact timer for updating the video at the exact time, for example, DirectX in C + +.
Perhaps I need to return to the C ++ world in order to use Direct3D natively and host C ++ with the DirectX window in the C # WPF window. Despite the fact that I do not know what will happen to this, it may be worth a try, I think.
If you have any tips please let me know.
source share