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

Storyboard samples do not play if storyboard is fully dimmed #9315

Closed
bdach opened this issue Jun 18, 2020 · 3 comments · Fixed by #29967
Closed

Storyboard samples do not play if storyboard is fully dimmed #9315

bdach opened this issue Jun 18, 2020 · 3 comments · Fixed by #29967
Labels
area:storyboard audio priority:1 Very important. Feels bad without fix. Affects the majority of users.

Comments

@bdach
Copy link
Collaborator

bdach commented Jun 18, 2020

For any beatmap which has storyboard samples, if the storyboard is fully dimmed, the storyboard samples will not play as long as it is. (They will start playing again whenever undimmed.)

The cause is very simple - UserDimContainer's dimContent stops being present whenever the storyboard is fully dimmed:

AddInternal(dimContent = new Container { RelativeSizeAxes = Axes.Both });

The obvious fix (setting AlwaysPresent = true) works, but degrades performance on any storyboard-heavy map (even though nothing is displayed, those cases usually are associated with a lot of time spent on LifetimeManagementContainer's update method each frame, which is entirely unnecessary). Another obvious thought (setting AlwaysPresent on the sample itself) doesn't work because the drawable is never reached during tree traversal.

The less-obvious fix I can think of would be to somehow move all of the samples into a separate layer that would be always present on its own, but I'm not sure whether that would be a direction we want to take.

@peppy
Copy link
Member

peppy commented Jun 19, 2020

I guess the important thing is to define what behaviour users expect. It sounds like you think that storyboard sampled should actually be considered the same as (and toggleable with) the beatmap hit sounds checkbox?

@bdach
Copy link
Collaborator Author

bdach commented Jun 19, 2020

That seems a bit counterintuitive to me. I think the samples should still be toggleable using the "Show storyboard" option.

The scenario concerned here is one when "Show storyboard" is on, but the background dim level is set to 100%. It seems weird to me that setting visual dim like that will also silence samples.

@peppy
Copy link
Member

peppy commented Jun 19, 2020

Aha, right, misunderstood that part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:storyboard audio priority:1 Very important. Feels bad without fix. Affects the majority of users.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants