-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Only poll when there's no pending render The previous approach caused some unneded polls * Animate and shape as early as possible in the frame * Animate when frames are skipped to reduce visual artifacts * Use the monitor refresh rate when available instead of a smoothed average * Base the frame rate on the monitor refresh * Remove the frame dt average calculation * Simplify the Windows vsync by emulating the winit one * Only render when there are pending renders * Remove the render thread on Windows The Winit event loop is more optimized now, and it does not really play well with our way of signaling events. It's also one less platform dependent thing. * Smoother windows vsync, using DwmGetCompositionTimingInfo * Simplify the macOS vsync implementation * Fix typo * Implement request redraw * style: reformat line wrapping --------- Co-authored-by: MultisampledNight <contact@multisamplednight.com>
- Loading branch information
1 parent
c92125c
commit 2a1074b
Showing
9 changed files
with
354 additions
and
201 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.