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 wrong textures being displayed before in-game video plays on certain devices #325

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ammarasyad
Copy link
Contributor

This PR fixes #318.

Upon research across 2 devices and 2 emulators, it seems that there is possibly a bug in Mali GPUs' drivers that causes the wrong texture to be displayed before the beatmap's video starts, if present. The texture displayed is consistent across multiple gameplays, differing only whether the scoreboard is shown or not. This behavior is not present in Snapdragon devices and Android emulators, thus leading to the suspicion that Mali drivers are at fault.

@Reco1I
Copy link
Contributor

Reco1I commented Feb 13, 2024

What's up, just a suggestion: Calling the driver at every draw call to get the renderer information can be a little of bit unnecessary. This should be done once (I'd do at the first draw call of the texture) and work with that.

@ammarasyad
Copy link
Contributor Author

What's up, just a suggestion: Calling the driver at every draw call to get the renderer information can be a little of bit unnecessary. This should be done once (I'd do at the first draw call of the texture) and work with that.

You're right, I overlooked that. Thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Text textures is shown before the video starts playing
2 participants