mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-19 06:23:52 +00:00
Use MMCSS when streaming with the DXVA renderer
This commit is contained in:
parent
7d9478b774
commit
7e560aa09e
1 changed files with 5 additions and 0 deletions
|
@ -29,10 +29,15 @@ DXVA2Renderer::DXVA2Renderer() :
|
|||
{
|
||||
RtlZeroMemory(m_DecSurfaces, sizeof(m_DecSurfaces));
|
||||
RtlZeroMemory(&m_DXVAContext, sizeof(m_DXVAContext));
|
||||
|
||||
// Use MMCSS scheduling for lower scheduling latency while we're streaming
|
||||
DwmEnableMMCSS(TRUE);
|
||||
}
|
||||
|
||||
DXVA2Renderer::~DXVA2Renderer()
|
||||
{
|
||||
DwmEnableMMCSS(FALSE);
|
||||
|
||||
SAFE_COM_RELEASE(m_DecService);
|
||||
SAFE_COM_RELEASE(m_Decoder);
|
||||
SAFE_COM_RELEASE(m_Device);
|
||||
|
|
Loading…
Reference in a new issue