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

Fix Strain Graph lag on long maps #210

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

Givikap120
Copy link
Contributor

The problem is that every strain graph bar have tooltip. This means that if map have 8k strains - we have 8000 * 4 skills = 24000 tooltips, causing intensive lag
In this PR I'm separating strain bars from tooltips, and making a fixed amount of tooltip bars (I picked 1000 as it's precise enough while not causing lag)
Also, I packed some actions into the function as the function was so big that It was difficult to orient in it

Copy link
Contributor

@smoogipoo smoogipoo left a comment

Choose a reason for hiding this comment

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

Seems okay

@smoogipoo smoogipoo merged commit a1bb55f into ppy:master Jul 25, 2024
2 of 3 checks passed
@Givikap120 Givikap120 deleted the straingraph_lag_fix branch August 13, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants