-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sokol: stop drawing when there's nothing to redraw
this removes cpu load when idle, and reduces it when moving the mouse around, etc. the implementation reflects the landscape of the magical world of linux; xlib is not thread-safe so we can't push a dummy event, and select can mark an fd ready even though io would block. based on ideas from floooh/sokol#640
- Loading branch information
Showing
2 changed files
with
58 additions
and
5 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