-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add beat snap grid to osu!taiko editor #25154
Conversation
if (DrawableRuleset is IDrawableScrollingRuleset scrollingRuleset) | ||
dependencies.CacheAs(scrollingRuleset.ScrollingInfo); |
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.
This is another example: if you have to use soft casts to subclasses in the base class, then that's a strong sign that maybe the logic should live in the subclass to begin with.
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.
Or that we shouldn't have subclasses in the first place and should use this pattern more often, I dunno. Hierarchy has been pretty restrictive in these kinds of usages.
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.
I'm gonna look away from this one for the time being because I kind of want to try and switch the scrolling stuff to composition too at some point. And it's not even precedent (see FindSnappedPositionAndTime()
).
Addresses #25150.
I did notice a performance issue when selecting all objects in a beatmap:
But it's not a regression in this PR, and it's not that bad (non-crippling performance, just a stutter while 2.5k barlines are created).
CleanShot.2023-10-17.at.07.57.54.mp4