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

Early-out in texture replacement code, if replacement disabled #15431

Merged
merged 2 commits into from Mar 8, 2022

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Mar 8, 2022

Quick work-around for a crash reported on Discord by Azuka and .QrTa, in the case of texture replacement disabled. Bug still seems to exist though, likely some race condition in the threadmanager, or similar.

Without this, due to bReplaceTexturesAllowLate, every single texture creation ends up spawning a task and waiting for it, whether replacement is enabled or not.

Reproduces easiest in the main menu of Gran Turismo when lots of text is showing.

QrTa narrowed the crash down to 1.12.324-1.12.389, so will look at that next. Which is aa12c9b..aa12c9b . Between those are two thread-manager releated PRs, #15178 and #15205. The first one had a race condition that we later fixed that only happened on ARM - there might be more gremlins there.

image

@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label Mar 8, 2022
@hrydgard hrydgard merged commit 2abe3d6 into master Mar 8, 2022
@hrydgard hrydgard deleted the shortcircuit-texture-replacement branch March 8, 2022 21:33
@unknownbrackets unknownbrackets added this to the v1.13.0 milestone Mar 12, 2022
hrydgard added a commit that referenced this pull request Apr 8, 2022
Was hoping to find the cause of the issue I looked at in #15431
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GE emulation Backend-independent GPU issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants