I am using AcquireNextFrame from the Desktop Duplication API to capture the screen. The refresh rate of the screen is 120Hz. When running a game at 120FPS, the screen capture can capture frames at 120FPS. But when increasing the frame rate of the game to 240FPS, the screen capture actually drops to around 70FPS. My guess would be that the extra frames are being accumulated which adds an overhead, but I am not sure. Is there a way to avoid this performance drop?
DXGI Desktop Duplication Screen Capture Speed
7.8k Views Asked by availn At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in WINAPI
- Make screenshot of DirectX window that is hidden and doesn't have focus
- Is it valid to mutilayered a critical section?
- Implementing callback function for dialog-based application
- Where is the 'EnablePinning' property in the ribbon framework's recent items?
- Confusion about CTRL_SHUTDOWN_EVENT handling in DLLs and WM_QUERYENDSESSION
- Standard control transparency. Possible?
- Disable all power options from the Start menu
- call Win32 API in flex to set Window Display Affinity
- heap error after changing from new allocation to smartpointer
- Win API - Delete all files except some
- Finding the default application for a particular file name extension (Even when served by a metro app)
- How do I declare OutputDebugStringA without windows.h macros?
- WPF giving maximize,minimize,resize control to child window
- Can a dialog intercept drag'n'drop messages passed to its controls?
- WinApi and work with several domains
Related Questions in SCREEN-CAPTURE
- Does Windows 7 with platform update support desktop duplication?
- Screen video capture including mouse cursor on Mac?
- Screenshot of contents of Safari from share extension
- How to create a screenshot of browser window and save it to another page
- Android 5 - prevent from screen capture
- Multiple screencapturing with Chrome ScreenCastify
- MEDIA_PROJECTION_SERVICE not valid in call to getSystemService()
- Is there a way to use PrintWindow with a control? (using AutoIt)
- C# - How to save many files to the hard disk until it become full without crashing
- How to do android screen sharing
- API's for Android 4.4 screen recording?
- How to capture desktop screen of computer host where it's running on using node.js
- Capture Screen while animating
- Which Windows API capturing screen faster than Bitblt or any other Mirror Drivers?
- Alternate way to use DuplicateOutput() of IDXGIOutput1 in C# for UWP?
Related Questions in DXGI
- Is there a way to call SetPrivateData on a ID3DUserDefinedAnnotation?
- ReportLiveObjects getting the logs programmatically
- Switch swapchain to windowed mode
- Problems to understand DXGI DirectX 11 Desktop Duplication to get a Buffer or Array
- Resetting window after using DirectX 11
- Desktop duplication (DirectX) screen capture fails to deliver screen updates
- Desktop duplication screen capturing - DuplicateOutput returns E_ACCESSDENIED error
- Directx 11 Front Buffer
- SharpDx windowResize
- What is the behavior of the DXGI_PRESENT_ALLOW_TEARING flag?
- DXGI desktop duplication, capture only a particular RECT
- Handling Multiple Graphics Adapters and Monitors
- How to distinguish a physical D3D adapter from a virtual adapter used by the Remote Desktop Protocol?
- How to implement SetFullscreenstate properly?
- Create DXGIFactory
Related Questions in DESKTOP-DUPLICATION
- Desktop duplication (DirectX) screen capture fails to deliver screen updates
- Desktop duplication screen capturing - DuplicateOutput returns E_ACCESSDENIED error
- Desktop Duplication API - DXGI_OUTDUPL_FRAME_INFO.LastPresentTime is 0 for the first 5 minutes after I restart my computer
- DirectX 11 application slows down dramatically when not foreground application
- lDesktopResource->QueryInterface(I&lAcquiredDesktopImage); is stopping the second loop
- Desktop Duplication API capture specific window
- Is it possible to crop screenshot at gpu level
- (windows nvidia video codec sdk) How to set up an hevc encode session in c++ that asynchrnously encodes a dxgi surface texture and outputs to stdout?
- Desktop Duplication API - Screen Capture doesnt work on 1366x768 (opencv)
- Windows Screen capture both GDI & DirectX fails returns ACCESS_DENIED
- DesktopDuplication API produces black frames while certain applications are in fullscreen mode
- DXGI API: AcquireNextFrame() never grabs an updated image, always blank
- Window Capture with DXGI
- Linking Cuda (cudart.lib) makes DXGI DuplicateOutput1() fail
- Is the cursor of type "masked color" used anymore?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Desktop Duplication API by design accumulates monitor ("output" in DXGI terms) updates until you request them via
AcquireNextFrame. The API is not designed to capture every update in first place. Additionally, you don't specify whether you are doing anything else in theAcquireNextFrameloop or you just measuring performance (the language of the question suggest the latter though).That is, it is quite expected that with a really intensive frontend application output duplication API misses the updates. There is no much flexibility there either. Perhaps the most important hint available MSDN mentions in
ReleaseFrameRemarks section:That is, calling
ReleaseFrameearlier or later affects internal behavior of the API. It is either accumulating updates in general or also keeps replicating the actual payload data into duplicated frame resources.