DiscreteTom / rusty-duplication

Capture the screen on Windows using the Desktop Duplication API in Rust, with shared memory support.
MIT License
9 stars 1 forks source link

Optimize performance by checking dirty/moved area. #2

Closed DiscreteTom closed 1 year ago

DiscreteTom commented 1 year ago

Checking LastPresentTime is enough.

If only the pointer was updated (that is, the desktop image was not updated), the AccumulatedFrames, TotalMetadataBufferSize, and LastPresentTime members are set to zero.