You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NVIDIA driver enables a driver feature called
"Threaded Optimizations" when it finds Minecraft,
which causes severe performance issues and sometimes
even crashes.
Newer versions of the driver seem to use a slightly
different heuristic which our workaround doesn't
address.
So, instead, use an alternative method that enables
GL_DEBUG_OUTPUT_SYNCHRONOUS. This seems to reliably
disable the functionality *even if* the user has
configured it otherwise in their driver settings.
Additionally, on Windows, we now always indicate to
the driver that Minecraft is running, so that users
with hybrid graphics don't see regressed performance.
privatestaticfinalStringnormalMessage = "You must change the LWJGL version in your launcher to continue. This is usually controlled by the settings for a profile or instance in your launcher.";
22
+
privatestaticfinalStringnormalMessage = "You must change the LWJGL version in your launcher to continue. " +
23
+
"This is usually controlled by the settings for a profile or instance in your launcher.";
28
24
29
-
privatestaticfinalStringprismMessage = "It appears you are using Prism Launcher to start the game. You can likely fix this problem by opening your instance settings and navigating to the Version section in the sidebar.";
25
+
privatestaticfinalStringprismMessage = "It appears you are using Prism Launcher to start the game. You can " +
26
+
"likely fix this problem by opening your instance settings and navigating to the Version section in the " +
27
+
"sidebar.";
30
28
31
29
publicstaticvoidbeforeLWJGLInit() {
32
30
if (BugChecks.ISSUE_2561) {
33
-
if (!Version.getVersion().startsWith(REQUIRED_LWJGL_VERSION)) {
31
+
if (!isUsingKnownCompatibleLwjglVersion()) {
34
32
Stringmessage = normalMessage;
35
33
36
-
if (System.getProperty("minecraft.launcher.brand", "unknown").equalsIgnoreCase("PrismLauncher")) {
34
+
if (isUsingPrismLauncher()) {
37
35
message = prismMessage;
38
36
}
39
37
@@ -46,19 +44,20 @@ public static void beforeLWJGLInit() {
0 commit comments