Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stop event poll loop from freezing window chrome
If the event poll loop is allowed to run as while (poll) {}, it can have the unfortunate side effect of somehow blocking the window chrome to events such as move/resize/close window. Introducing an additional variable that determines a minimum wait time between event polls fixes this issue. This time is by default set to be a tenth of that of the minimum frame refresh wait time.
- Loading branch information
1 parent
b9112b2
commit 95f35e0
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters