osu icon indicating copy to clipboard operation
osu copied to clipboard

Initializing complicated storyboards is too slow

Open DCNick3 opened this issue 5 years ago • 12 comments

Describe the bug:

Starting play for this map with storyboard enabled takes a two and half minutes of one CPU core usage at 100%. This is too long to wait before play or retry. Disabling storyboard makes it load in less than 5 seconds.

OS: Arch Linux CPU: Intel Core i7-8750H @ 12x 4.1GHz GPU: GeForce GTX 1060 with Max-Q Design

osu!lazer version: revision 164b05abd6debb5b817d2f47620e593c006a24b2

Logs: runtime.log

DCNick3 avatar Jun 09 '19 19:06 DCNick3

We are very aware of performance issues with storyboard loading. In osu-stable loading of storyboards is incremental to offload some of this overhead, but we also have improvements to make in the parsing logic in general.

peppy avatar Jun 10 '19 13:06 peppy

Does this mean I shouldn't open issues about poor storyboard performance with specific beatmap?

DCNick3 avatar Jun 10 '19 16:06 DCNick3

It's not specific to any beatmap. The more storyboard content, the longer it will take.

peppy avatar Jun 10 '19 16:06 peppy

Does Update and Draw drop from 240 and 120 Hz correspondingly to 40 Hz both on ginkiha - EOS by alacat count?

DCNick3 avatar Jun 10 '19 16:06 DCNick3

See https://github.com/ppy/osu/issues/3756

peppy avatar Jun 10 '19 16:06 peppy

This issue is very pronounced with this beatmap with it's storyboard enabled. It's been loading for over 15 minutes and used so much of the machine's memory that it starts swapping to disk sometimes. tl;dr excessive memory usage upwards of 8gb image lazer 2019.1205.0 Intel Core i7-8750H GTX 1060 Max-Q 12GB DDR4 @ 2666 MHz

ThatStella7922 avatar Dec 09 '19 17:12 ThatStella7922

Storyboards slow loading have been fixed close this issue. The map now takes 14 seconds to load at least on my computer. Freezing also doesn't occur anymore with large storyboard maps.

Jordan-Jay avatar Nov 05 '22 07:11 Jordan-Jay

14 seconds is still too long. I would expect this to take 0-5 seconds on a powerful machine.

peppy avatar Nov 06 '22 09:11 peppy

Maps provided in OP and in this comment are fixed by https://github.com/ppy/osu/pull/27539.

EVAST9919 avatar May 06 '24 19:05 EVAST9919

Maps provided in OP and in this comment are fixed by #27539.

Are there more which remain? May be worth mentioning those specifically else we can close this issue.

peppy avatar May 07 '24 08:05 peppy

There's only this comment, but that's another issue. So I guess this one can be closed.

EVAST9919 avatar May 07 '24 17:05 EVAST9919

There's https://github.com/ppy/osu/issues/11142 and I do get a ~15->5s improvement on an M1 Air w/ 16 GB on master but that's the upper bound of https://github.com/ppy/osu/issues/4976#issuecomment-1304758801.

Joehuu avatar May 07 '24 22:05 Joehuu