mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 14:27:25 +08:00
Add note about every-frame-transforms
This commit is contained in:
parent
ad2cd0ba8f
commit
df43a1c6cc
@ -328,6 +328,10 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
UpdateState(ArmedState.Idle);
|
UpdateState(ArmedState.Idle);
|
||||||
UpdateComboColour();
|
UpdateComboColour();
|
||||||
|
|
||||||
|
// This method is called every frame. If we need to, the following can likely be converted
|
||||||
|
// to code which doesn't use transforms at all.
|
||||||
|
|
||||||
|
// Matches stable (see https://github.com/peppy/osu-stable-reference/blob/bb57924c1552adbed11ee3d96cdcde47cf96f2b6/osu!/GameplayElements/HitObjects/Osu/HitCircleOsu.cs#L336-L338)
|
||||||
using (BeginAbsoluteSequence(StateUpdateTime - 5))
|
using (BeginAbsoluteSequence(StateUpdateTime - 5))
|
||||||
this.TransformBindableTo(AccentColour, Color4.White, Math.Max(0, HitStateUpdateTime - StateUpdateTime));
|
this.TransformBindableTo(AccentColour, Color4.White, Math.Max(0, HitStateUpdateTime - StateUpdateTime));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user