mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Prefer D3D11VA in non-FSE modes for improved performance
This commit is contained in:
@@ -13,7 +13,7 @@ extern "C" {
|
||||
class D3D11VARenderer : public IFFmpegRenderer
|
||||
{
|
||||
public:
|
||||
D3D11VARenderer();
|
||||
D3D11VARenderer(int decoderSelectionPass);
|
||||
virtual ~D3D11VARenderer() override;
|
||||
virtual bool initialize(PDECODER_PARAMETERS params) override;
|
||||
virtual bool prepareDecoderContext(AVCodecContext* context, AVDictionary**) override;
|
||||
@@ -36,6 +36,8 @@ private:
|
||||
bool checkDecoderSupport(IDXGIAdapter* adapter);
|
||||
bool createDeviceByAdapterIndex(int adapterIndex, bool* adapterNotFound = nullptr);
|
||||
|
||||
int m_DecoderSelectionPass;
|
||||
|
||||
IDXGIFactory5* m_Factory;
|
||||
ID3D11Device* m_Device;
|
||||
IDXGISwapChain4* m_SwapChain;
|
||||
|
||||
Reference in New Issue
Block a user