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

Large banana showers cause significant lag when loaded during gameplay #28241

Closed
snalgae opened this issue May 19, 2024 · 3 comments
Closed

Large banana showers cause significant lag when loaded during gameplay #28241

snalgae opened this issue May 19, 2024 · 3 comments
Labels
priority:2 Moderately important. Relied on by some users or impeding the usability of the game ruleset/osu!catch type:performance

Comments

@snalgae
Copy link

snalgae commented May 19, 2024

Type

Performance

Bug description

I decided to investigate the cause of this lag because it has affected 2 of my plays on a map. I managed to isolate this lag to the banana shower. It is consistent and a long enough banana shower by itself can produce it.
Here's the map if you need it: https://osu.ppy.sh/beatmapsets/2138244#fruits/4500030

Screenshots or videos

2024-05-19.23-56-49.mp4

Version

2024.519.1

Logs

compressed-logs.zip

@bdach
Copy link
Collaborator

bdach commented May 20, 2024

This is still a problem despite https://github.com/ppy/osu/pull/9664/files because the banana shower in question has ~250 nested bananas which overflows the pool.

RegisterPool<Banana, DrawableBanana>(100);

I'm not sure what the way out is here. It's either

  • better (map-dependent?) initial pool capacity
  • don't retrieve all of the bananas from pool immediately (and return them on judgement)
  • something else?

the first of which is probably both easiest and simplest. @ppy/team-client thoughts welcome

@smoogipoo
Copy link
Contributor

Yeah, that PR was a bit of a best effort because DHOs don't have a lifetime management container and all that.

Not sure of an immediate solution, but I'd move towards "don't retrieve all of the bananas from pool immediately" with the future refactoring/rework of hitobject lifetime management.

@peppy peppy added the priority:2 Moderately important. Relied on by some users or impeding the usability of the game label May 27, 2024
@bdach
Copy link
Collaborator

bdach commented Jun 4, 2024

Randomly found #12659, which this is a duplicate of.

@bdach bdach closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:2 Moderately important. Relied on by some users or impeding the usability of the game ruleset/osu!catch type:performance
Projects
None yet
Development

No branches or pull requests

4 participants