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 infinite loop generating beatlines in 1/x time signatures #450

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

RileyTheFox
Copy link
Collaborator

In cases where charts finish with in a 1/x time signature (where x > 4) the beat generation code falls into an infinite loop trying to finish the song on a measure. This was impossible though as 1/x time signatures are forced to only generate the first measure as a measure line, while the rest are standard strong/weak beats.

This caused an infinite loop and generated beats until memory ran out causing the game to hang forever.

Thanks to JasonParadise for finding this bug on stream and sending me the chart to diagnose the problem.

@EliteAsian123 EliteAsian123 merged commit 2f5067a into YARC-Official:dev Jun 9, 2023
@RileyTheFox RileyTheFox deleted the beat-fix branch June 20, 2023 23:55
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