-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 occasional flash when quick exiting / retrying from player #30623
Conversation
b0e5d5e
to
78a8d58
Compare
The gist of the issue is that `fadeOut` was being called *twice* in the quick exit/retry scenarios, causing weirdness with transforms. I've restructured things to ensure it's only called once.
78a8d58
to
afeb138
Compare
How do I test that this does what it says? Do I need to? |
If you just want to confirm that this fixes the double-fadeOut call you can place a breakpoint in You could also try adjusting the values of the fadeout to repro the flash I was seeing, but maybe not worth it and just trust that I can no longer reproduce it. May be single thread only. |
Code seems fine now, that said, I'm gonna be a pain in the ass about this, and say that... this seems visually worse somehow? master: 2024-11-14.15-21-16.mp4this PR: 2024-11-14.15-19-39.mp4Look at the playfield border specifically. It's doing this weird choppy fade now, rather than the smooth fade it is doing on master. I'm guessing that'll be caused by |
That seems wrong. I'll re-check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok now
The gist of the issue is that
fadeOut
was being called twice in the quick exit/retry scenarios, causing weirdness with transforms.I've restructured things to ensure it's only called once.