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

Make gameplay time completely based on audio time #489

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Rian8337
Copy link
Member

This PR removes the alteration towards frame time based on the difference between audio time and gameplay time, making gameplay time completely based on audio time. Consequently, this makes the low latency synchronization setting irrelevant, so it has been removed too.

Apart from gameplay time, input time is now directly derived from audio time. For the sake of testing, I left the fix frame offset for now, even though it should be removed as well (last time I tried to remove it, some users complained about having a worse gameplay experience as they are already used to the current latency). Admittedly, doing this introduces more JNI calls via BASS' ChannelGetPosition and ChannelBytes2Seconds, but from my own testing this is insignificant enough (these calls are already done for every frame anyway).

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

Successfully merging this pull request may close these issues.

1 participant