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 Fade race condition #1262

Merged
merged 6 commits into from
Mar 4, 2025
Merged

Fix Fade race condition #1262

merged 6 commits into from
Mar 4, 2025

Conversation

DanRStevens
Copy link
Collaborator

Update Fade::isFaded() to only return true when there is an active fade in progress.

Previously, when a fade in was started, isFaded could return true if it was checked within the first 1/255 of the fade duration. This could cause fade transitions to abort early, and with unexpected results, such as triggering behavior for a fade in the opposite direction. For instance, in OPHD, starting a new game could suddenly abort as if a game had just ended.

Closes #1202

@DanRStevens DanRStevens merged commit 70452bf into main Mar 4, 2025
8 checks passed
@DanRStevens DanRStevens deleted the fadeRaceCondition branch March 4, 2025 19:07
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.

Fix possible race condition in Fade
1 participant