Skip to content

Instantly share code, notes, and snippets.

@notsatvrn
Last active May 24, 2023 12:16
Show Gist options
  • Save notsatvrn/e0ed6415c21a2b5fcafdf0be5ab2b7b2 to your computer and use it in GitHub Desktop.
Save notsatvrn/e0ed6415c21a2b5fcafdf0be5ab2b7b2 to your computer and use it in GitHub Desktop.
Performance Optimization Guide for Minecraft 1.16.5.

Minecraft Performance Guide

Vanilla Minecraft isn't exactly great in terms of performance, but we can fix that.

For years now, Optifine has been the gold standard in terms of mods that increase performance, but the problems are:

  • Closed source. Open source allows other people to make sure nothing suspicious is in the code, and fix problems they find.
  • Not the best anymore. Performance from the mods we'll be installing in this guide will be much better than what Optifine can provide.
  • Updates take forever. The project is so large, that it takes forever for it to be updated to new versions.

But what is the solution? Isn't Optifine the best? Wrong!

Thanks to the CaffieneMC team, the Iris team, and many other people, we can have MUCH better performance than Optifine, and have almost the same features! These projects are rapidly updated, and best of all, they're open source!

This guide is designed for Minecraft version 1.16.5, using the MultiMC launcher.

Java

First things first, you'll need the latest version of Java.

On Windows, you can get it from here.

On Arch based Linux distributions, you can install jdk-adoptopenjdk from the AUR.

On Debian/Ubuntu based Linux distributions, instructions are available here.

Once installed, we can move on to installing MultiMC.

Setting up MultiMC

If you already have MultiMC, you can skip the installation process, and go straight to installing the modpack.

Installation

On Windows, you can get it from here.

On Arch based Linux distributions, you can install multimc5 from the AUR.

On Debian/Ubuntu based Linux distributions, you can download the .deb file here.

When you first launch MultiMC, it will ask you for your Java version. Select the Java version we installed earlier.

Now, we can move on to installing the modpack.

The Modpack

Installing The Pack

The modpack can be downloaded here.

You can find the list of mods here.

To install the pack, go to Add Instance > Import from zip > Browse, and select the modpack.

Setting Up The Pack

Right click on the new instance, and click Edit Instance.

Within the instance editor, go to Settings > Java, and check the Java installation checkbox.

Select your Java version. Sometimes, MultiMC can't auto detect it, and you will have to find where it's located yourself.

Now, check the Memory box, and adjust the Memory allocation settings to your liking. Around 50% of your system memory is the sweet spot.

Now, launch the game. Congratulations, you're done! But, if you want to squeeze even more performance out of Minecraft...

System Specific Settings

Note: All of these steps are optional, but are recommended if you want the absolute best performance.

All Linux Users

Install Gamemode if you haven't already.

On Arch based Linux distributions, you can install gamemode and lib32-gamemode from the main repositories.

On Ubuntu based Linux distributions, it should already be installed. If it isn't, install gamemode from the main repositories.

Run Minecraft with your wrapper command set to gamemoderun

This can be done in the Instance Editor under Settings > Custom Commands.

Tick the Custom Commands checkbox, and put the wrapper command in the Wrapper command: box.

If applicable, also follow the changes listed below.

Linux AMD GPU Users

Run Minecraft with your wrapper command set to env mesa_glthread=true allow_glsl_extension_directive_midshader=true gamemoderun

Some shaders will also require force_glsl_extensions_warn=true.

Put it in after allow_glsl_extension_directive_midshader=true if needed.

Linux NVIDIA GPU Users

Run Minecraft with your wrapper command set to env __GL_THREADED_OPTIMIZATIONS=1 gamemoderun

Linux Wayland Users

Type these commands in your terminal:

git clone https://github.com/ninja-/glfw.git -b wayland_fixes

cd glfw

sudo cmake --build . --target install

This will install a custom GLFW fork for Minecraft on Wayland, which provides some fixes/performance improvements.

Then, in Settings > Minecraft > Native library workarounds, check Use system installation of GLFW.

Conclusion

I hope this helped boost your Minecraft performance, even just a bit. If you have any questions, comments, or concerns, feel free to reply to this Gist. I will try to respond to them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment