Skip to content

Disable __GL_THREADED_OPTIMIZATIONS on discrete graphics #1706

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Waujito
Copy link

@Waujito Waujito commented May 18, 2025

Fixes minecraft freezes/crashes when full-screening/exiting the game.

The problem exists for like a year on all my devices and it also was reported on nvidia/reddit forums by users. On old versions, like 1.8.9 this happens every minecraft launch. On new versions I don't see the problem, but here might be some related artefacts (black line in bottom on random minecraft launch).

The solution was found by a user on nvidia forum, but it seems, like no fix was applied: https://forums.developer.nvidia.com/t/opengl-crash-when-entering-fullscreen-on-rtx-3060-mobile-with-nvidia-dkms-555-58-02-minecraft/299192/26

This PR implements a workaround in PolyMC useDiscreteGpu option.

Fixes minecraft freezes/crashes when full-screening/exiting the game. The problem exists for like a year on all my devices and it also was reported on nvidia/reddit forums by users. On old versions, like 1.8.9 this happens every minecraft launch. On new versions I don't see the problem, but here might be some related artefacts (black line in bottom on random minecraft launch). The solution was found by a user on nvidia forum, but it seems, like no fix was applied: https://forums.developer.nvidia.com/t/opengl-crash-when-entering-fullscreen-on-rtx-3060-mobile-with-nvidia-dkms-555-58-02-minecraft/299192/26
This commit implements a workaround in PolyMC useDiscreteGpu option.

Signed-off-by: Vadim Vetrov <vetrovvd@gmail.com>
@Waujito
Copy link
Author

Waujito commented May 18, 2025

That's funny but I wasn't able to test it. I has built PolyMC but it has crashed the gnome session when I open it. The crash happens in like 30 seconds every time after open. The program works, I am able to even create an instance and the gnome session crashes and brings me to login screen: user@1000.service: Main process exited, code=killed, status=9/KILL. The version built with makedeb works file.

Anyways I am sure this commit will work.

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

Successfully merging this pull request may close these issues.

1 participant