Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
x/mobile: Windows event handling back-pressure #17325
Using go 1.7.1/Windows 7/amd64.
Windows sends events as fast as you let it -- but since there is no back-pressure in
PS: It could become an issue in shiny as well, because it also contains async handling of messages. However ATM there is no infinite queue, at least I couldn't find one, hence it provides some back-pressure which prevents Windows from flooding the queue.
Note, this buffering can be avoided by detaching handling paint event and other events from doing the actual painting:
However, here the painting is not timed correctly together with resizing, which can cause some distortion and we cannot handle inside