-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make frametime pure stats pkg; remove frame wait
With time.Sleep now being particularly low resolution on windows in go (see golang/go#44343), waiting for the rest of a frame after it's complete isn't viable. I'm now basing my wait in my own programs on the OS asking for more sound data / the sound buffer growing too full, which doesn't rely on sleep resolution (thanks to using a channel that sleeps/wakes based (ultimately) on an OS audio system callback)
- Loading branch information
1 parent
457b4fc
commit 2bce0af
Showing
1 changed file
with
49 additions
and
59 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