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 glitchy path type correction for sliders in the editor #26512

Merged
merged 6 commits into from Jan 15, 2024

Conversation

OliBomby
Copy link
Contributor

Fixes an issue in the mechanism responsible for turning the path type to bezier when the perfect curve circle radius is too large.

Right now it triggers the correction at the end of the frame which is after the slider body is drawn which causes a flickering behaviour. Also it could result in retaining the slider length of the perfect curve slider which makes the slider go way off-screen.

The fix is to explicitly apply the correction immediately after each batch operation on the slider path. The timing for this is quite precise because if you do it after the slider path recalculates, it will cause the slider length issue.

Potential other solution is to allow batching of operations right in SliderPath itself, so the Version only changes after your whole batch operation is done. However I dislike complicating SliderPath even further.

osu.Game.Rulesets.Osu.Tests_rKl5pw51G0.mp4

After

osu.Game.Rulesets.Osu.Tests_vEFTrVGF9Y.mp4

@OliBomby OliBomby changed the title Slider pathtype update Fix glitchy path type correction for sliders in the editor Jan 13, 2024
@peppy peppy self-requested a review January 15, 2024 07:17
Copy link
Sponsor Member

@peppy peppy left a comment

Choose a reason for hiding this comment

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

Seems to work well enough.

@peppy peppy merged commit 6c0e968 into ppy:master Jan 15, 2024
16 of 17 checks passed
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