-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimizations for Winit Examples. (#686)
This optimizes examples by using `ControlFlow::Wait` instead of `ControlFlow::Poll`. This fix was found by Micah Johnston, and this PR implements it in both "simple" and "with_winit" examples. - "simple" now runs at 0.1-0.2% CPU usage. - "with_winit" now runs at 1.0-1.8%. [You can check more info about it here](https://xi.zulipchat.com/#narrow/stream/147921-general/topic/I've.20made.20a.20Vello.20game.20engine.20to.20prove.20that.20i.20was.20wrong.2E/near/468637207) --------- Co-authored-by: Daniel McNab <[email protected]>
- Loading branch information
1 parent
3c9343b
commit e777e08
Showing
2 changed files
with
5 additions
and
10 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