Oakmont GamingGuides

Minecraft lag and low FPS memory, distance and mods

Minecraft Java lag on a decent PC comes down to three things Mojang's own help center names: Java memory that does not match your RAM or your mods, video settings such as render distance, and mods. Mojang recommends at most half your RAM for Java and a render distance below the default of 12 chunks when the game struggles. This page goes through each, the Java version the game needs, and what changes for Bedrock.

/ 7 min read

OakmontGamer reads the Java memory and mod count of the Minecraft you just played, says when the memory does not fit, and sets it with one click in Prism, MultiMC and the Minecraft Launcher. See what the app does

Lag, low FPS or stutter?

  • Low FPS all the time. The video settings, above all render distance and graphics mode.
  • Short freezes, worse with many mods. Java memory that does not fit, so the game keeps cleaning up memory.
  • Blocks and mobs lagging behind while the frame rate is fine. The connection or the server. Mojang's help center sends you to its network troubleshooting for that.

OakmontGamer records the frame times of each session, so you can see which one you have: a low line, regular spikes, or a flat line while the world lags. What 1% low means explains how to read it.

Step 1: give Java the right amount of memory

Java gets a memory limit when the game starts, set with -Xmx in the JVM arguments. Too little, and the game spends its time cleaning up memory, which you feel as stutter. Too much, and Windows itself runs short and starts paging. Mojang's steps for the Minecraft Launcher:

  1. Open the Minecraft Launcher, select Minecraft: Java Edition, then the Installations tab.
  2. Select the installation, then More Options. Copy the JVM arguments into a text file first, so you can put them back.
  3. Change the number in -Xmx, for example -Xmx4G for 4 GB, and save.

Mojang's ceiling is half your RAM on a 64-bit system. Since 26.1 the game allocates 4 GB by default, up from 2 GB, and on a PC with less than 4 GB of RAM Mojang says to set it back to 2 GB. How much a modpack needs is up to the pack. OakmontGamer's rule: 4 GB up to 50 mods, 6 GB up to 150, 8 GB above that, never more than half the RAM.

Step 2: lower the settings Mojang names

Mojang's help center lists these under Options, Video Settings, and suggests raising them again step by step once the game runs well:

SettingChangeWhy
GraphicsFastMojang's first suggestion if it is on Fancy or Fabulous.
Render DistanceBelow 12 chunks12 is the default. Far chunks cost CPU and memory.
Simulation DistanceLower than render distanceEntities are not updated beyond it, so you see far with less CPU load.
Smooth LightingOffOn Mojang's list for when performance drops.
Chunk BuilderThreadedInstead of Fully Blocking or Semi Blocking.
CloudsFastIf set to Fancy.
VSyncOff, with a frame cap under the refresh rateVSync waits for the monitor and adds input lag.

Mojang's July 2026 requirements ask for 8 GB of RAM with a discrete GPU or 12 GB with integrated graphics, and a GPU with Vulkan 1.3, because Java Edition is moving from OpenGL to Vulkan. Keep the graphics driver current.

Step 3: check the mods

Mojang's own advice for lag is to disable mods and see whether it improves, then add them back one at a time. A large pack also needs more Java memory than vanilla, which is why the memory step comes first.

  • Disable half the mods, play the same world, and compare. Keep halving until you find the one that costs the most.
  • In Prism, MultiMC, the Modrinth App or CurseForge, memory is set per instance in that launcher. In the Modrinth App it is the instance's Settings, Java and memory; in CurseForge, Settings, Minecraft, Java Settings, Allocated Memory.
  • Change one thing per session. A new mod and a new memory size in the same session tell you nothing about either.

Short freezes at a steady rhythm in a big pack are typical of memory being cleaned up, the same kind of hitch Rust has with its garbage collector. A steady rhythm with no mods at all is something else: FPS drops every few seconds.

Which Java version

The Minecraft Launcher brings its own Java, so there is nothing to install. Since 26.1 (March 2026) the game needs Java 25 and ships Microsoft's build of OpenJDK 25. The same release switched the garbage collector from G1GC to ZGC on compatible devices, which Mojang says should give a more stable frame rate in memory-heavy moments.

Mojang warns that third-party launchers may not support these changes. In Prism or MultiMC, check that the instance uses Java 25, and remove old JVM arguments copied from a guide, such as -XX:+UseG1GC, that would force the previous collector back on.

Bedrock Edition in short

Bedrock has no Java and no JVM arguments, so the memory step does not apply. Mojang's tips are in Settings, Video: a field of view below the default 60, Fancy Leaves, Fancy Bubbles and Render Clouds off, and the Simple graphics mode, which uses the least. Vibrant Visuals uses the most; lower its sliders or turn effects off until the game runs smoothly. Roblox has its own guide.

What OakmontGamer does for Minecraft

Minecraft Java gets two things in the app: a Java memory check and an in-game preset.

  • When Minecraft starts, the app reads the -Xmx value and the game folder from the running Java process and counts the .jar files in that folder's mods folder.
  • Games, Minecraft, Game setup, Fixes shows it under Java memory: the GB Java had and the mod count. It warns when the memory is clearly short for the mods, or so large that Windows has too little left.
  • When it is short, Set 6 GB (or whatever fits) writes the new value with one click for Prism and MultiMC instances and for the Minecraft Launcher profiles that play from that folder. Close the launcher first. For the Modrinth App and CurseForge it shows the steps.
  • In-game settings writes into options.txt, for the launcher's own folder and for Prism and Modrinth instances: VSync off, a frame cap just under the refresh rate, Graphics: Fast, particles low and entity shadows off, and render distance 12 and simulation distance 8 when yours are higher. The old file is backed up.
  • Bedrock gets no preset and no memory check. Add it as a game, and its sessions are recorded and diagnosed like any other.
Settings for CS2 with the In-game settings section open: VSync off, low latency mode and low shadows ticked, with Apply and Restore previous; the Profile and Steam launch options sections sit above and below it.
The In-game settings section, here for CS2 on the app's demo data; Minecraft gets the same page with its own items

The same page has presets for Marvel Rivals, Escape from Tarkov and Rust. The app changes nothing inside the game itself, and its Windows tweaks for a session are undone when the game closes.

What the app does per game

Questions people ask

How much RAM should I allocate to Minecraft?
Vanilla runs on the 4 GB default Mojang set in 26.1. For mods, OakmontGamer uses 4 GB up to 50 mods, 6 GB up to 150 and 8 GB above, and Mojang's ceiling is half your RAM.
Can allocating too much RAM make Minecraft lag?
It can. Java may grow up to that size, and Windows and every other program have to live on the rest. When they run short, Windows starts paging, which shows as freezes. Mojang recommends at most half your RAM.
What render distance should I use in Minecraft?
Mojang suggests going below the default of 12 chunks when the game struggles, then raising it step by step. Keep simulation distance lower: entities are not updated beyond it, so the CPU has less to do.
Why does modded Minecraft freeze every few seconds?
When the memory is tight for the pack, Java has to clean it up often, and each cleanup can be a short freeze. Give the instance more memory, within half your RAM, and check that its launcher uses the Java version the game needs.
Which Java does Minecraft need?
Java 25 since Java Edition 26.1. The Minecraft Launcher ships it, so only third-party launchers need checking.

Sources

The technical claims on this page were checked against these official pages.

  • Roblox lag and low FPS

    Roblox stuck at 60 FPS or lagging? Lift the frame rate cap, set graphics by hand, and tell low FPS from server lag. What fast flags still work.

  • Rust stutter and FPS

    Rust hitching like clockwork at high FPS? That is the garbage collector: gc.buffer 2048 with 16 GB of RAM, 4096 with 32 GB. Plus memory, SSD and settings.

  • 1% low FPS

    1% low is the speed of your slowest 1% of frames. Ours rose from 48 to 91 FPS when three busy 7-Zip jobs were frozen. How to measure and raise it.

All guides

Price

€11.99, paid once.

  • One-time purchase, no subscription
  • Bought here, with an Oakmont account
  • Every change undone when the game closes

What it needs

  • Windows 10 (version 2004 or newer) or Windows 11, 64-bit
  • Admin rights, asked for when it starts
  • 100 MB of disk space

Everything OakmontGamer does