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

Refactor BeatmapAttributeText to compute values on the fly #30320

Merged
merged 7 commits into from
Oct 18, 2024

Conversation

smoogipoo
Copy link
Contributor

I found it very difficult to work with this component because it's pre-emptively caching things for seemingly no reason. In the process, it's doing some super janky enum-value indexing extract the appropriate values from an args list.

This is all unnecessary, so this is a refactoring pass that makes it compute values on-the-fly as required.

@bdach bdach self-requested a review October 18, 2024 06:36
@bdach bdach merged commit 6576131 into ppy:master Oct 18, 2024
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants