Babar Karim Shah

create a fps bosting minecraft mod for java 26.3 fabric which change the chucks loading system to give more fps on a popato pc

Kodari AI
KodariOct 31 at 11:38 am 1
PotatoFpsBooster
A Fabric mod for Minecraft Java 26.3 that dramatically improves FPS on low-end potato PCs by overhauling the chunk loading system. It introduces a dynamic chunk loading radius that adapts to real-time performance metrics, prioritizing chunks closest to the player while deprioritizing distant terrain. The mod implements a smart async chunk pre-generation queue that spreads loading tasks across multiple ticks to prevent lag spikes, and adds a configurable render distance culling system that skips rendering invisible chunk faces. It also includes an aggressive garbage collection scheduler that triggers during chunk unloads, and a memory-efficient chunk cache that stores only essential block data for far chunks. Players can toggle performance modes (Balanced, Aggressive, Ultra) via a simple keybind, with an in-game HUD showing FPS, chunk load queue size, and memory usage.
  1. Build a client-only Fabric 26.3 mod with adaptive render-distance control to reduce chunk work on low-end PCs.

  2. Verify the exact 26.3 client and tick-event APIs, then create the complete project files.

Created Potato FPS Boost for Fabric 26.3. It samples FPS every two seconds, lowers render distance when FPS falls below 40, and gradually restores it above 55—reducing the number of chunks the client needs to render on low-end PCs.

This manages chunk workload through Minecraft’s render-distance option rather than replacing its internal chunk-loading system.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
VERSE BOOST
Code
6 129
src/client/java/dev/kodari/potatofps/PotatoFpsClient.java
package dev.kodari.potatofps;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.minecraft.client.Minecraft;
import net.minecraft.client.OptionInstance;

public class PotatoFpsClient implements ClientModInitializer {
	private static final int SAMPLE_INTERVAL_TICKS = 40;
	private static final int LOW_FPS_THRESHOLD = 40;
	private static final int HIGH_FPS_THRESHOLD = 55;
	private static final int MIN_RENDER_DISTANCE = 2;

	private int ticksUntilSample = SAMPLE_INTERVAL_TICKS;
	private int userRenderDistance = -1;
	private int lastAppliedDistance = -1;

	@Override
	public void onInitializeClient() {
		ClientTickEvents.END_CLIENT_TICK.register(this::onEndTick);
	}

	private void onEndTick(Minecraft client) {
		OptionInstance<Integer> renderDistanceOption = client.options.renderDistance();
		int currentDistance = renderDistanceOption.get();

		if (userRenderDistance < 0) {
			userRenderDistance = currentDistance;
			lastAppliedDistance = currentDistance;
		} else if (currentDistance != lastAppliedDistance) {
			userRenderDistance = currentDistance;
			lastAppliedDistance = currentDistance;
		}

		if (--ticksUntilSample > 0) {
			return;
		}
		ticksUntilSample = SAMPLE_INTERVAL_TICKS;

		int fps = client.getFps();
		int nextDistance = currentDistance;
		if (fps < LOW_FPS_THRESHOLD && currentDistance > MIN_RENDER_DISTANCE) {
			nextDistance--;
		} else if (fps > HIGH_FPS_THRESHOLD && currentDistance < userRenderDistance) {
			nextDistance++;
		}

		if (nextDistance != currentDistance) {
			renderDistanceOption.set(nextDistance);
			lastAppliedDistance = nextDistance;
		}
	}
}