Skip to content
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

Reduce osu editor allocations with many objects selected #27249

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

EVAST9919
Copy link
Contributor

master pr
master pr

@@ -92,6 +89,10 @@ public override void UpdateFrom(HitCircle hitObject)

ring.Scale = new Vector2(1 + 0.1f * ringScale);
content.Alpha = 0.9f * (1 - alpha);

// TODO: should only update colour on skin/combo/object change.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a quick band-aid fix. We are still performing skin lookup on each frame, but now only for visible markers (previously for every alive one). Reworking this will require a bit of refactoring, which should probably be in it's own pr.

@peppy peppy enabled auto-merge February 20, 2024 05:18
@peppy peppy disabled auto-merge February 20, 2024 07:06
@peppy peppy merged commit ef413c0 into ppy:master Feb 20, 2024
22 of 26 checks passed
@EVAST9919 EVAST9919 deleted the editor-alloc branch February 20, 2024 15:10
peppy added a commit to peppy/osu that referenced this pull request Feb 26, 2024
Regressed with ppy#27249.

I was suspicious of this specific operation at the time but didn't test properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants