Shaders lag in Minecraft Java because they replace the game's lighting with a much more expensive one. What helps most is running the shader through Iris together with Sodium, keeping your graphics driver up to date, giving the game suitable memory and lowering render distance. On Bedrock the path is different: there are no third-party shaders, only the official Vibrant Visuals and ray tracing.
Diagnosis: which case are you?
- Smooth without shaders, laggy only with them: that is the shader's cost. Steps 1, 3 and 4.
- Laggy even without shaders: the shader is not the problem. Steps 2 and 3 (driver and memory), plus the Minecraft page.
- Using OptiFine and the shader lags: try the Iris with Sodium route (step 1), which runs the same shader packs.
- You are on Bedrock (phone, console, Windows): jump to the last section.
Step 1: run the shader through Iris with Sodium
Iris is an open-source shaders mod that reads OptiFine-format packs. By the project's own description it is built on Sodium, a rendering optimization mod, and that is where its performance comes from. The Iris FAQ says Sodium is a required dependency, so the two install together.
- Supported loaders: Fabric and Quilt (back to 1.16) and NeoForge from 1.21.1. Iris does not support Forge; for Forge 1.16.5 to 1.20.1 there is an unofficial port (Oculus) that works with Embeddium.
- Matching versions: Iris needs the Sodium build that matches your Minecraft version. A mismatch causes errors or crashes.
- Conflicting mods: Iris's documentation lists OptiFabric and Canvas as incompatible, and says mods that use the Fabric Rendering API may need Indium (invisible blocks or crashes without it).
- Shader packs: drop the pack in the shader packs folder or drag it into the menu, hit refresh and select it. In game,
Oopens the shader menu,Ktoggles shaders andRreloads. The Iris guide advises leaving the Performance and Advanced video tabs alone unless you know what you are changing. - Compatibility: only packs on Iris's supported list are guaranteed to work; others can show major visual problems or fail to run.
Step 2: update your graphics driver
Sodium states that official support covers GPUs with up-to-date drivers and OpenGL 4.5 or newer; older cards that run Minecraft (OpenGL 3.3) may work but are not officially supported. Translation layers such as GL4ES and ANGLE are unsupported. On a laptop, also check which GPU the game is using, the dedicated one or the integrated one.
Step 3: game memory
In the official Minecraft Launcher, Java Edition memory is set through JVM arguments: under Installations, edit the version, open More options and change the -Xmx value (for example -Xmx4G for 4 GB). Never exceed the RAM your PC actually has. More memory only helps if the game was short of it; giving it far more will not make a shader faster. In third-party launchers (CurseForge, Prism and others) the setting lives in their own Java settings.
Exclusive tips
Want more guides like this?
Leave your email and we'll let you know when a new optimization guide drops. No spam, unsubscribe anytime.
Only optimization guides worth your time. Unsubscribe anytime.
Two paths to a faster PC
Forget endless tutorials. Find out in 1 minute what your setup needs, or let our technicians do everything for you, live.
Find my ideal package
Answer a few questions and UPGUIDE estimates your FPS gain in your main game.
Run free analysisDone by techniciansLet UPBOOST handle it
Full remote optimization, live on Discord, in a 1 to 3 hour session. 15-day guarantee.
View packages & pricingPCs optimized in Brazil and abroad
Still comparing? See UPBOOST vs. DIY vs. free boosters
Source note: this launcher path is the one described in community and forum guides; I could not open the official Minecraft Help article to confirm exact menu names in your language.
Step 4: reduce what the shader has to draw
- Render distance in video settings: everything visible goes through the shader. Lower it in steps and watch the effect.
- The pack's own options: Iris's menu has "Shader Pack Settings", where each pack exposes its settings (shadow quality, reflections, light effects). Names differ per pack, so check the author's page.
- A lighter version of the pack: many authors publish lighter variants; look on the pack's official page, not third-party reuploads.
If it still lags
- Test with Iris and Sodium alone, no other mods. If the problem vanishes, a conflicting mod is the cause; re-enable them one at a time.
- Try a different shader pack. If only one lags, the problem is that pack and its version.
- If the game lags even with no shaders and no mods, the bottleneck is the PC: temperature, power plan and background processes.
What about Bedrock?
Iris, Sodium and OptiFine are Java Edition only. Bedrock's visual upgrades are official: Vibrant Visuals sits in Settings > Video under Graphics Mode, according to Mojang's help, which also describes presets that favor visuals or performance. On PC, Vibrant Visuals needs DirectX 12, and ray tracing (RTX) continues to exist separately on compatible GPUs. If Bedrock lags with them on, return Graphics Mode to the default and favor performance. Vibrant Visuals for Java has only been announced as a plan.
When the PC is at its limit even after all of this, system optimization is the next step. UPBOOST does that for Minecraft at /minecraft.
Frequently asked questions
A shader replaces the game's lighting with a far heavier one, and the cost lands on your graphics card. Running it through Iris with Sodium, updating the driver and lowering render distance are the most effective steps.