mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] dxgi: don't release the frame until we need a new one
Per Microsoft spec we should not release the frame until we are about to acquire another frame, this pervents additional GPU overhead on the guest.
This commit is contained in:
@@ -67,6 +67,8 @@ namespace Capture
|
||||
enum GrabStatus GrabFrame(struct FrameInfo & frame);
|
||||
|
||||
private:
|
||||
void WaitForDesktop();
|
||||
|
||||
CaptureOptions * m_options;
|
||||
|
||||
bool m_initialized;
|
||||
@@ -79,6 +81,7 @@ namespace Capture
|
||||
ID3D11DeviceContextPtr m_deviceContext;
|
||||
IDXGIOutput1Ptr m_output;
|
||||
IDXGIOutputDuplicationPtr m_dup;
|
||||
bool m_releaseFrame;
|
||||
ID3D11Texture2DPtr m_texture;
|
||||
IDXGISurface1Ptr m_surface;
|
||||
D3D11_TEXTURE2D_DESC m_desc;
|
||||
|
Reference in New Issue
Block a user