Разблокируй
режим без-
лимитной
Доминации
Этот мод, оптимизирует
майнкрафт и повышает производитель-
ность игры для MacOS!
optimac
How does that actually work?
OptiMAC

WHAT IS OPTIMAC
This mod is basically a small Minecraft Fabric optimization mod focused on boosting FPS, especially on weaker Macs or laptops. From the code inside the .jar, it does 4 main things: What the mod changes

1. Entity distance culling
File: EntityRendererMixin The mod stops rendering entities that are too far away. It calculates the distance between you and an entity: distance² > 9216 9216 = 96² So entities farther than about 96 blocks are skipped and not rendered. That reduces: GPU load CPU rendering work lag in crowded areas Especially useful in: SMPs crystal PvP fights spawn hubs

2. Particle limiter
File: ParticleManagerMixin The mod limits particles to: MAX_PARTICLES = 2000 If there are already 2000 particles active: new particles are cancelled Minecraft stops spawning extra ones This helps a lot during: explosions crystals potion spam fire/smoke effects

3. Chunk rebuild throttling
File: WorldRendererMixin Minecraft constantly rebuilds chunks when blocks update. This mod adds a throttle: 4 milliseconds If chunk rebuilds happen too fast: some rebuild calls are skipped This reduces: frame spikes stuttering CPU usage But it can slightly delay visual updates sometimes.

4. Forced garbage collection
Inside: MacFpsBoostMod Every: 1200 ticks the mod calls: System.gc(); 1200 ticks ≈ 60 seconds. That forces Java garbage collection once per minute to clean memory. On some systems this can: reduce RAM buildup help long sessions But on others it may actually cause tiny lag spikes. What framework it uses This is a: Fabric mod using Mixins Files: fabric.mod.json optimac.mixins.json Mixins let the mod inject code directly into Minecraft rendering methods.
Here is a part of the code:
package com.macfpsboost;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.particle.ParticleManager;
import net.minecraft.entity.Entity;

public class MacFpsBoostMod implements ClientModInitializer {

    private static final double ENTITY_CULL_DISTANCE_SQ = 128 * 128;
    private static final int MAX_PARTICLES = 4000;

    @Override
    public void onInitializeClient() {

        System.out.println("[OptiMac] Initialized for Minecraft 1.21.11 — author: L1nKar");

        ClientTickEvents.END_CLIENT_TICK.register(client -> {

            if (client.world == null || client.player == null) {
                return;
            }

            optimizeEntities(client);
            optimizeParticles(client);
            optimizeRendering(client);
        });
    }

    private void optimizeEntities(MinecraftClient client) {

        for (Entity entity : client.world.getEntities()) {

            if (entity == client.player) continue;

            double distance = entity.squaredDistanceTo(client.player);

            if (distance > ENTITY_CULL_DISTANCE_SQ) {
                entity.setInvisible(true);
            } else {
                entity.setInvisible(false);
            }
        }
    }

    private void optimizeParticles(MinecraftClient client) {

        ParticleManager particles = client.particleManager;

        try {
            int count = particles.particles.size();

            if (count > MAX_PARTICLES) {

                int remove = count - MAX_PARTICLES;

                for (int i = 0; i < remove; i++) {
                    particles.particles.clear();
                }
            }

        } catch (Exception ignored) {
        }
    }

    private void optimizeRendering(MinecraftClient client) {

        client.worldRenderer.reload();
    }
}
Download Fabric Download fabric api
Download from modrinth (coming soon)