feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Improve how to take the screenshot

Open ueman opened this issue 4 years ago • 0 comments

Currently we wait a little bit to avoid a dirty frame which can't be captured. It probably is cleaner and better to use SchedulerBinding.addPostFrameCallback(). The time to wait is 20 milliseconds or a little bit more than a frame. I don't think this matters much. However by using the post frame callback we can guarantee to capture the next frame.

ueman avatar Apr 05 '21 17:04 ueman