is Windows Graphics Capture API return such as DXGI_OUTDUPL_FRAME_INFO(LastPresentTime,LastMouseUpdateTime)

hao chen 1 Reputation point
2020-09-17T02:56:10.627+00:00

hi,I'm used dxgi to capture the windows screen, but it draw cursor on the texture2d too slow with DrawIconEx.
and I find windows graphics capture can capture cursor,but there is some problem. it can't detect the image change or cursor change(such as LastPresentTime,LastMouseUpdateTime),so I can't filter the duplicate frames.Is there any other way?thanks

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,352 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rita Han - MSFT 2,161 Reputation points
    2020-09-17T06:20:10.943+00:00

    Hello @hao chen ,

    Yes, you can detect mouse update and get update information via LastMouseUpdateTime.

    For how does it work you can refer to this official sample: DXGIDesktopDuplication.

    PtrInfo->LastTimeStamp = FrameInfo->LastMouseUpdateTime;  
    

    Thank you!


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments