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

Fix Discord RPC Timestamp jitter #504

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

darkiox
Copy link
Contributor

@darkiox darkiox commented Nov 25, 2024

The problem exists in the timing between the mediaInfo updates and the Date.now(), they had a 500 ms difference.
This offsets the Date.now by that difference and gets rid of the jitter while the song is playing.

The jitter still exists when jumping around the song or when a song starts but it stabilizes quickly.

@Mastermindzh Mastermindzh changed the base branch from master to next December 9, 2024 10:21
@Mastermindzh Mastermindzh merged commit aaf7a1b into Mastermindzh:next Dec 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants