-
-
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
osu!taiko Hit
& KiaiHitExplosion
pooling
#31297
base: master
Are you sure you want to change the base?
Conversation
But there is still problem with Editor. We should to call `ReLoadMainPiece` from Editor to update drawable hit's OR do it somehow else by reaching TaikoPlayfield from Editor. (we should to get `TaikoPlayfield` from Editor in any case: we should to take DrawableHit's somehow)
Not even sure where to begin with this one. What is anything supposed to be here? It just all looks immediately wrong on entry. Dunno if I'm willing to put myself through review of this. |
Some comments added Firstly additionally say about about As you can see there was function About But please check Next about Firstly compare prev HitExplosion with new HitExplosionBase as you see HitExplosionBase contains only code from HitExplosion, except for in InternalChild = skinnable = new SkinnableDrawable(new TaikoSkinComponentLookup(getComponentName(result)), _ => new DefaultHitExplosion(result)); changed to this: InternalChild = Skinnable = OnLoadSkinnableCreate(); (So again I really don't know which comments you except from me about So now we can create pool for
These are all changes that happened around |
Oh yeah, |
Fixes #21072
Need To Disucss:
Hit
. In osu!stable there drawn a circle with color that changed from yellow to red. Maybe there should be additionalTaikoSkinComponents
?Solution Notes:
The
Hit
part of solution use different behavior for editor and non-editor mode. When it's EditorMode we still recreateHit
pieces eachApply
(also see) but in game we don't recreate it. It's done in that way because SetRimState should to changeSkinnableDrawable
for the sameHitObject
and seems likeDrawableHitObject
is buffered for it and simpleRemove
+Insert
does not work.Instead of doing this + this + this you can split taiko
Hit
into few types and pooling by them but such solution is more complicated.