smasherprog / screen_capture_lite

cross platform screen/window capturing library
MIT License
616 stars 156 forks source link

About onFrameChanged data source #123

Closed logic-coder closed 1 year ago

logic-coder commented 2 years ago

Hi, why not use official function:GetFrameDirtyRects https://docs.microsoft.com/en-us/windows/win32/api/dxgi1_2/nf-dxgi1_2-idxgioutputduplication-getframedirtyrects to get changed rectangles?

Isn't this function more efficient?

What's wrong with this function?

smasherprog commented 2 years ago

It might be. If you want to do a Pull request with the codechange ill accept it! The current method in code is very fast and works for all platforms so i went that direction. But again.. Always happy to get some pull requests :)

logic-coder commented 2 years ago

OK, If I'm successful, I will push the Pull request.

smasherprog commented 1 year ago

going to close this