Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non deterministic timer is broken #2

Closed
clementgallet opened this issue Apr 13, 2016 · 2 comments
Closed

Non deterministic timer is broken #2

clementgallet opened this issue Apr 13, 2016 · 2 comments
Labels

Comments

@clementgallet
Copy link
Owner

Games usually take some time to initialize before the first frame. Then, our code generate audio for that amount of time pass it to pulse-simple playback. Because the pulse audio buffer is filled with many samples, it waits until the audio buffer gets depleted, which fills it with even more samples.

@clementgallet clementgallet changed the title Audio playback does not go well with the non deterministic timer Non deterministic timer is broken Apr 16, 2016
@clementgallet
Copy link
Owner Author

It turns out there are several issues with non deterministic timer. Vsync is enable again (970b916) and fixing the computed number of audio samples during a frame (fc18baa)

@clementgallet
Copy link
Owner Author

Prevent adding negative delta times (dfb24f8), and freeze timer during frame boundaries (25df090) seem to fix the timer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant