-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
Behavior
s to sleep (not get stepped).
Now, instead of being checked every tick, they can ask to sleep until they wake up by means of a `Waker` (just like async tasks), thus saving CPU time. This mechanism will be suitable for UI widgets. It doesn't cover all use cases; we also want game behaviors that are stepped on a sparse tick (e.g. 4 times per second instead of 60), but that'll be a separate project.
- Loading branch information
Showing
2 changed files
with
177 additions
and
12 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