mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:07:52 +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);
|
||||
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))
|
||||
this.TransformBindableTo(AccentColour, Color4.White, Math.Max(0, HitStateUpdateTime - StateUpdateTime));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user