promotional bannermobile promotional banner

Vulkan Mailbox Fix

A tiny client-side mod for Minecraft 26.2+ fixing a bug where your FPS gets stuck at your monitor's refresh rate on Linux Wayland when using Vulkan with VSync turned off.

Vulkan Mailbox Fix

A tiny client-side mod for Minecraft 26.2+ on Fabric and NeoForge. It fixes a bug where your FPS gets stuck at your monitor's refresh rate on Linux Wayland when using Vulkan with VSync turned off, tracked as MC-307719.


Why This Mod?

On Linux Wayland with NVIDIA GPUs, especially hybrid Intel/AMD + NVIDIA laptops, turning VSync off in Minecraft switches Vulkan to MAILBOX mode. MAILBOX is supposed to give you uncapped FPS without screen tearing.

However, Minecraft only creates 3 swapchain images while keeping up to 2 frames in flight. On a Wayland hybrid-GPU pipeline, all 3 images can be busy at the same time:

  1. Image 1 is currently being shown on your screen.
  2. Image 2 is queued in the Wayland compositor for the next display refresh.
  3. Image 3 is still being rendered by the GPU.

With no 4th image available, Minecraft has to wait for the next monitor refresh before drawing again. Even with VSync off and Max Framerate set to Unlimited, your FPS gets capped to your refresh rate, such as 120 FPS on a 120Hz display.

This mod increases the MAILBOX swapchain image count from 3 to 4, clamped safely to whatever maximum your GPU driver supports. That extra buffer lets Minecraft start the next frame immediately, unlocking true uncapped, tear-free performance.

Measured Impact

Tested on an ASUS Vivobook Pro 15 OLED with an i5-12500H, GTX 1650 Max-Q, 2880x1620 at 120Hz, running GNOME Wayland:

Setup Steady-State FPS Avg Frame Time Frame Acquire Wait
Vanilla Vulkan, 3 images 120 FPS, capped 8.33 ms ~6.2 ms
With Vulkan Mailbox Fix, 4 images 220-238 FPS 4.22-4.59 ms ~2.0-2.3 ms

Compatibility

  • Minecraft: 26.2, 26.3, and 26.4+. The mod automatically detects whether the game uses the 26.2 or 26.3+ Vulkan surface class.
  • Mod Loaders: Fabric and NeoForge. Fabric API is not required.
  • Side: Client-only. Safe to use on any vanilla or modded server.
  • OpenGL Backend: Safe to keep installed. The mod does nothing unless Vulkan MAILBOX mode is active.

Version Notes

  • Minecraft 26.3+: Uses SDL3 and runs on native Wayland by default, where NVIDIA Vulkan selects MAILBOX. The fix applies automatically here.
  • Minecraft 26.2: Uses GLFW and defaults to XWayland, where NVIDIA Vulkan selects IMMEDIATE and already runs uncapped. On 26.2, this mod only activates if you enable native Wayland using the JVM flags -DMC_DEBUG_ENABLED and -DMC_DEBUG_PREFER_WAYLAND.
  • NeoForge 26.2 with Vulkan: If you see GLFW error 65540 saying window surface creation requires GLFW_NO_API, set earlyWindowControl = false in config/fml.toml so NeoForge's OpenGL early loading screen does not conflict with Vulkan.

Optional Configuration

You can override the target swapchain image count with a JVM argument:

-Dvulkanmailboxfix.images=4

Set -Dvulkanmailboxfix.images=0 to disable the override.


Installation

Fabric

  1. Install Fabric Loader 0.18.4 or newer.
  2. Place the Fabric jar into your mods folder. Fabric API is not required.

NeoForge

  1. Install NeoForge for Minecraft 26.2+.
  2. Place the NeoForge jar into your mods folder.

License and Modpacks

This project is licensed under CC0-1.0. Feel free to include this mod in your modpacks without asking! For safety and the latest updates, please link to the official Modrinth, CurseForge, or GitHub pages rather than re-uploading the jar files elsewhere.

Vulkan Mailbox Fix Team

profile avatar
Owner
High Crafter tier icon
  • 2
    Followers
  • 3
    Projects
  • 2.8M
    Downloads

More from MrErenK