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

Untie FlxSoundTray animation speed from framerate, and make it much smoother #2923

Merged
merged 3 commits into from
Oct 4, 2023

Conversation

CyndaquilDAC
Copy link
Contributor

@CyndaquilDAC CyndaquilDAC commented Sep 29, 2023

I noticed that higher framerates make the FlxSoundTray go-away animation go way too fast, and that it's very janky in general. This really bothered me, so I decided to make a quick fix. This also updates some very old comments to fit the standard more.

Copy link
Member

@Geokureli Geokureli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the comment changes are good, removing * 2 does make it more smooth, these changes are fine but revert FlxG.elapsed to (MS / 1000)

If you believe that I'm wrong and this does make the sound tray less frame rate dependent, then I'll need some evidence, because I believe using FlxG.elapsed changes nothing, at best, and at worst, it does the opposite of what you claim, it actually makes the hide animation take more or less time depending on any performance lag

flixel/system/ui/FlxSoundTray.hx Outdated Show resolved Hide resolved
Co-authored-by: George Kurelic <Gkurelic@gmail.com>
@CyndaquilDAC
Copy link
Contributor Author

Done.

@Geokureli Geokureli merged commit c0ed060 into HaxeFlixel:dev Oct 4, 2023
16 checks passed
@Geokureli
Copy link
Member

Thanks!

Geokureli added a commit that referenced this pull request Oct 4, 2023
@Geokureli Geokureli added the Bug label Jan 4, 2024
@Geokureli Geokureli modified the milestones: 5.5.0, 5.4.1 Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants