New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High GPU usage when using WindowChrome, MediaElement and InkCanvas on Intel Iris Xe #8686
Comments
It looks like an Intel issues. |
Yeah, I also posted a question in the Intel community. |
Underneath the MediaElement element in WPF, Windows Media Player is used to carry out the actual playback logic. In WPF's InkCanvas, a large number of Geometry objects are created for drawing strokes. I suspect that there is a bug in Intel's Windows Media Player that causes more GPU resources to be consumed when touching or drawing Geometry. However, as more code enters the driver layer, I am unable to obtain more logic through VisualStudio's GPU performance detector. At the same time, according to feedback from the Intel community, the same code works normally on UHD devices, so I have sufficient reason to suspect that this is a problem existing in the Intel driver layer. Can anyone help push Intel to assist in investigating this issue? |
According to Intel engineers, the issue originates from the driver layer. The likely cause is that in the current version of Intel, when DX9 processes resources, it will invoke the Media engine to decompress resources, even if there is no Media currently playing. This will result in the consumption of more GPU resources. This issue will be addressed in subsequent Intel driver updates. Once again, thank you for Intel's support. |
When the fix driver is released and verified, I will close the issue. |
Description
When I create a WPF full screen demo using WindowChrome 、MediaElement and InkCanvas,the GPU usage will surge to 60%.
I tested different computers. This problem occurs when the computer graphics card driver is Intel Iris Xe , but is normal on UHD.
And I listed the GPU usage under different configurations:
I can't reproduce the same issue from the system native app, so I'm not sure if this is an Intel issue or a WPF issue.
And I tried to get window's touch events to draw Geometry, and the GPU usage was not as exaggerated as InkCanvas, about 30%~40%.
My demo is as follows:
Reproduction Steps
Expected behavior
The GPU usage is normal.
Actual behavior
The GPU usage is very high.
Regression?
No response
Known Workarounds
Set the WPF app to use software rendering.
Impact
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: