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
Premature confetti fade out #205
Comments
Maybe the fade should be a function of the particle's Y value not time? |
Interesting! Thanks for reporting @alexbirkett. Question, could it be that this OnePlus 8 has a 120hz display? I think it has to do with the refresh time not being calculated down to the fade. |
But the behaviour is as expected on the OnePlus. It's the slow phones (like the Nokia phone and emulators according to my colleague) that have problems. I added support for text/emojis and the problem was even more apparent then. |
Do you use a delta time multiplier when altering the particle attributes? If not, that might help. |
Yes, it's used and it seems to be used for the alpha too. I'm trying to think of a way to validate if it's because of the frame rate by perhaps limiting the fps. |
Hey @alexbirkett, The deltatime wasn't calculated on the force and acceleration. Hence it didn't reach as far on the slower phone as it did on the faster phone. Could you try and test the following version on the slower phone to see if it's fixed?
|
I can't find a tag for
|
@alexbirkett that's because kotlin isn't configured for this java project. Easiest way to fix that is by adding a dummy Kotlin class file to that |
@alexbirkett would it be possible to try above solution? |
Presumably fixed with this implementation: #249 Please reopen if the problem still occurs |
On slower devices, the confetti fades out higher up the screen than on faster devices:
The text was updated successfully, but these errors were encountered: