[host] improve capture performance

Contrary to the MS documentation, benchmarking shows a substantial
increase in performance when releasing the captured frame as soon
as possible. This change makes it possible to achieve 60FPS at 4K
resolutions.
This commit is contained in:
Geoffrey McRae
2018-05-31 18:51:28 +10:00
parent 3f331f2e62
commit d4c41d2d94
3 changed files with 42 additions and 35 deletions

View File

@@ -117,6 +117,7 @@ namespace Capture
bool InitH264Capture();
GrabStatus GrabFrameTexture(struct FrameInfo & frame, struct CursorInfo & cursor, ID3D11Texture2DPtr & texture, bool & timeout);
GrabStatus ReleaseFrame();
GrabStatus GrabFrameRaw (struct FrameInfo & frame, struct CursorInfo & cursor);
GrabStatus GrabFrameH264 (struct FrameInfo & frame, struct CursorInfo & cursor);