mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 07:07:45 +08:00
Merge pull request #28592 from peppy/fix-editor-performance
Fix editor performance dropping over time when hit markers are enabled
This commit is contained in:
commit
82bc95e04d
@ -325,13 +325,14 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
|
||||
internal void SuppressHitAnimations()
|
||||
{
|
||||
UpdateState(ArmedState.Idle);
|
||||
UpdateState(ArmedState.Idle, true);
|
||||
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));
|
||||
|
||||
|
@ -375,7 +375,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
|
||||
internal void SuppressHitAnimations()
|
||||
{
|
||||
UpdateState(ArmedState.Idle);
|
||||
UpdateState(ArmedState.Idle, true);
|
||||
HeadCircle.SuppressHitAnimations();
|
||||
TailCircle.SuppressHitAnimations();
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
|
||||
internal void SuppressHitAnimations()
|
||||
{
|
||||
UpdateState(ArmedState.Idle);
|
||||
UpdateState(ArmedState.Idle, true);
|
||||
UpdateComboColour();
|
||||
|
||||
using (BeginAbsoluteSequence(StateUpdateTime - 5))
|
||||
|
Loading…
Reference in New Issue
Block a user