HomeJavaModsQiu's Optimization
Qiu's Optimization
ModsJava

Qiu's Optimization

by qiuym · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Forge only.

⬇ Download for 1.20.1–1.20.6⬇ Download for 1.19–1.19.4⬇ Download for 1.18.2
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Qiu's Optimization — screenshot 1

Qiu's Optimization

Lightweight Minecraft Forge Mod Optimizer — Reduce Costs and Increase Efficiency for 1.20.1 Servers

Forge Minecraft License

📖 Introduction

Qiu's Optimization is a performance optimization mod designed specifically for Minecraft Forge 1.20.1 servers. Through three core mechanisms: Batch Processing Cache, AI Throttling, and Dynamic TPS Adjustment, it significantly reduces the CPU load of the built-in server, making response times smoother.

No dependencies required, works out of the box, fully automatic.

✨ Features

📦 Installation

  1. Download the latest qiusoptimization-{version}.jar
  2. Place it in the .minecraft/mods/ directory
  3. Start the game or server (Forge 47.4.4+)

⚙️ Configuration (1.0.1fix)

Configuration file location: .minecraft/config/qiusoptimization-common.toml

General Settings

[general] # Whether to log the dirt block registry name logDirtBlock = true # Magic number (example config) magicNumber = 42 # Magic number introduction text magicNumberIntroduction = "The magic number is: " # Example item list items = ["item1", "item2"]

Performance Optimization Settings

[optimization] # TileEntity cache rebuild interval (Ticks) # Default: 20 (1 second) Range: 5 ~ 200 tileUpdateInterval = 20

# TPS threshold for downgrade mode, activates protection below this value
# Default: 16.0  Range: 10.0 ~ 20.0
tpsThreshold = 16.0

# Whether to enable TileEntity batch processing optimization
enableTileOptimization = true

# Whether to enable dynamic TPS downgrade
enableTPSDowngrade = true

Entity Optimization Settings

[entity] # Entity optimization mode # BOOST - Boost mode: Allocate more CPU to entities (recommended) # REDUCE - Reduce mode: Save CPU to increase FPS # PRESERVE - Preserve mode: No entity optimization, vanilla behavior entityMode = "BOOST"

# Near distance (blocks), entities within this range keep vanilla update rate
# Default: 16  Range: 4 ~ 64
nearDistance = 16

# Mid distance (blocks), entities within this range get slight throttling
# Default: 32  Range: 8 ~ 128
midDistance = 32

# Far entity AI update interval (Ticks)
# Default: 10 (0.5 seconds)  Range: 1 ~ 40
farInterval = 10

# Extra entity tick interval (Ticks), 0 disables extra ticks
# Default: 4 (0.2 seconds)  Range: 0 ~ 20
extraTickInterval = 4

# Maximum extra entity ticks per tick
# Default: 20  Range: 1 ~ 100
maxExtraEntityTicks = 20

Item Merge Settings

[item_merge] # Whether to enable item merging enableItemMerge = true

# Merge detection radius (blocks)
# Default: 3  Range: 1 ~ 10
itemMergeRadius = 3

# Maximum items per chunk, excess items will be removed (oldest first)
# Default: 50  Range: 10 ~ 200
maxItemsPerChunk = 50

# Item merge detection interval (Ticks)
# Default: 40 (2 seconds)  Range: 10 ~ 100
itemMergeCheckInterval = 40

Staggered Chunk Saving Settings

[chunk_saving] # Whether to enable staggered saving (spread saves across multiple ticks) enableStaggeredSaving = true

# Number of chunks to save per batch
# Default: 5  Range: 1 ~ 50
chunksPerSave = 5

# Save interval (Ticks)
# Default: 200 (10 seconds)  Range: 20 ~ 400
saveInterval = 200

Configuration Quick Reference

Config Key Default Description
tileUpdateInterval 20 TileEntity cache rebuild interval, higher = lower CPU usage
tpsThreshold 16.0 TPS threshold for downgrade mode
enableTileOptimization true Disable to restore vanilla TileEntity behavior
enableTPSDowngrade true Disable to remove TPS downgrade protection
entityMode BOOST Entity mode: BOOST/REDUCE/PRESERVE
nearDistance 16 Entities within this range keep vanilla updates
midDistance 32 Entities within this range get slight throttling
farInterval 10 Far entity AI update interval (Ticks)
extraTickInterval 4 Extra entity tick interval, 0 = disabled
maxExtraEntityTicks 20 Max extra entity ticks per tick
enableItemMerge true Disable to stop item merging
itemMergeRadius 3 Merge detection radius, higher = more efficient
maxItemsPerChunk 50 Item limit per chunk
itemMergeCheckInterval 40 Item merge detection interval
enableStaggeredSaving true Disable to restore vanilla saving
chunksPerSave 5 Number of chunks to save per batch
saveInterval 200 Save interval (Ticks)

Three Entity Modes

Mode Description Recommended For
BOOST Boost mode: Allocate saved CPU to entities, smoother entities High-end devices (recommended)
REDUCE Reduce mode: Lower far entity update frequency, save CPU Low-end devices, FPS priority
PRESERVE Preserve mode: No entity optimization, vanilla behavior Testing/benchmarking

After Changing Configuration

You must restart the server for configuration changes to take effect.

Performance Tuning Recommendations

High-end devices (entity smoothness priority):

Low-end devices (FPS priority):

Balanced configuration (recommended):

🔧 Technical Details

Optimization Vanilla Mechanism Optimized
TileEntity Traversal Full scan every Tick Cache + batch process every 20 Ticks
Entity AI Updates All entities every Tick Near: 10 Tick/update, Far: 40 Tick/update
TPS Protection None Auto-throttle below threshold to 5 Ticks

🚀 Performance Test Results (Reference)

Tested in modpacks with 50+ mods (Alex's Mobs, Biomes O' Plenty, Spore, etc.):

Metric Before After Improvement
Average TPS 17.2 19.8 +15%
Entity Tick Time 3.2ms 0.9ms -72%
Chunk Load Time 4.1ms 2.3ms -44%

🤝 Compatibility

Compatible with:

Incompatible / Caution:

📝 Commands

No in-game commands. Optimizations run automatically. Check startup status via game logs:

[QiusOptimization] Optimization engine activated! (Tile batch processing + AI throttling) [QiusOptimization] Current config: Tile interval=20t, AI interval=40t, TPS threshold=18.0

🛠️ Development & Building

Clone repository

git clone https://github.com/qym1421/qiusoptimization.git

Build

./gradlew build

Output located in build/libs/

📄 License

This project is licensed under the MIT License — free to use, modify, and distribute.

🙏 Acknowledgements

📬 Feedback & Suggestions

⚠️ Disclaimer

This mod optimizes performance through caching and throttling. It does not affect core gameplay mechanics. Some entity behaviors (such as AI response speed) may be slightly delayed at long distances — this is a normal optimization effect.

Made with ❤️ by QiuYM

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more