-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Text rendering is laggy with long strings #30067
Comments
Best to leave out your own likely-wrong hypothesis when reporting an issue 😅. Chance of being wrong is near 100%. |
Apologies, removed. |
I profiled this a bit today but I don't see an angle to continue down here. Firstly it's not as bad here as on the video, and secondly it's just that it's a bit of everything at once: Masking, screen space calcs, the whole 9 yards. The sheer number of text sprites moving off and on screen is probably gonna make this happen, but how to address that? Unloading comments? |
|
Last time I wanted to spam buffered containers to fix an issue was with beatmap cards which got rejected on grounds that it will eat vram for breakfast. In this context maybe it's not as egregious because comments don't change size that often, but it is still a potentially-infinite list of comments, so I wouldn't see buffered container usage without comment unload anyway. |
Would have to include use of |
The first question should be "why is it so bad", not "let's add more components on top of it to hide the issue". This is not some gigantic wall of text that it's rendering - it's very well batchable. First: can you actually replicate this every time? I.e. after restarting osu!? I managed to repro it once, and saw this in global statistics: The above optimisation would come under ppy/osu-framework#5986 + ppy/osu-framework#3345 + ppy/osu-framework#5508 + ppy/osu-framework#5765 and any other PRs/issues linked to from those, as well as several other techniques that can be used to optimise further without increasing atlas size (multi-texture bindings). |
@smoogipoo the report was only when scrolling, so I don't think it's draw call / batching related / atlas related. |
I can 110% guarantee you it is. |
I don't understand but this is not high priority so I'll drop it. |
To be clear, if you want to reproduce what I'm seeing:
|
Type
Performance
Bug description
Long text lines in beatmap comments seem to cause far more lag than they should.
How to reproduce:
a. https://osu.ppy.sh/beatmapsets/1749893#osu/3579919 has a copypasta repeated at the top which works.
Renderer is
Automatic (OpenGL)
.Screenshots or videos
output.mp4
Version
2024.906.2-lazer
Logs
Zip seemed to contain logs from every prior osu launch. Pulled out logs for the latest.
1727735543.auth.log
1727735543.input.log
1727735543.network.log
1727735543.performance.log
1727735543.runtime.log
The text was updated successfully, but these errors were encountered: