▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Complex Leaf Culling
Complex Leaf Culling

Complex Leaf Culling

Multi-tier leaf culling for Sodium. Block cancellation, pass demotion, and face culling for dense modded forests (WWOO, etc.).

1.2K
13

Complex Leaf Culling

A multi-tier leaf culling mod for Minecraft 1.21.1 (Fabric + Sodium), designed for modpacks with dense foliage from mods like William Wyther's Overhauled Overworld (WWOO) where vanilla culling leaves significant performance on the table.

NOTE:
I've tested this locally on a heavily modded (300+ mods) instance, and have had others with differing computer specs test it as well. It has thusfar worked without issue, but that doesn't mean there may not be some problems. This has been made as compatible as I can personally manage, but for those with bigger brains than I have they can fork it and modify it as needed. I'm a new dad, so I may not be the one to swiftly fix issues or extend its compatibility.

What it does

Complex Leaf Culling applies three independent culling strategies that complement each other:

Standard Leaf Culling (Tier 1 - all renderers) Marks shared faces between adjacent leaf blocks as invisible during mesh building. Works for all leaf blocks and cooperates directly with Sodium's occlusion system. This is what most culling mods do.

Extended Leaf Culling (Tier A - Sodium only) Cancels rendering entirely for interior leaf blocks that are fully surrounded by other leaves. Zero geometry is generated for these blocks. Most effective in dense WWOO canopies and other modded forests where standard culling misses blocks it doesn't recognise.

Edge Pass Demotion (Tier B - Sodium only) Leaf blocks on the edge of a canopy that partially qualify (one neighbour below the cancel threshold) are demoted from expensive translucent rendering to cheaper cutout rendering. Leaf shapes are fully preserved - only the render pass changes. Most noticeable with shader packs like Iris where translucent geometry is disproportionately expensive.

Requirements

  • Minecraft 1.21.1
  • Fabric Loader >= 0.16.0
  • Fabric API
  • Sodium - NOTE: Tested with version 0.6.13. Newer/older versions may not work if hooks have moved/changed internally.

Recommended

  • Iris Shaders - Tier B pass demotion gives the most visible benefit with shaders active
  • ModMenu - provides access to the in-game config screen

Configuration

Open the config screen via ModMenu, or use the /clc command in-game:

/clc status
/clc reload
/clc set enabled true|false
/clc set mode CONSERVATIVE|BALANCED|AGGRESSIVE
/clc set threshold 0-6          (0 = auto from mode)
/clc set standardCulling true|false
/clc set extendedCulling true|false
/clc set passDemotion true|false
/clc set extendedDetect true|false

Culling Modes

ModeNeighbours RequiredDescription
CONSERVATIVE6/6Only perfectly buried blocks. Safest visuals.
BALANCED5/6Good balance of performance and appearance. Default.
AGGRESSIVE4/6Maximum performance. Slight edge thinning possible.

Extended Leaf Detection - when enabled, blocks whose registry path contains leaf, leaves, or foliage are treated as leaves even if not tagged minecraft:leaves. Required for full WWOO compatibility.

Compatibility

ModStatus
Sodium 0.6.xRequired
IrisFull compatibility, Tier B most effective here
Distant HorizonsNo interaction (DH handles its own LOD geometry)
C2MECompatible
EntityCullingSeparate concern, no conflict
MoreCullingComplementary - covers different block types
SodiumLeafCullingRedundant - both target the same pipeline. Use one or the other.
WWOOPrimary use case

Performance notes

All culling work happens during chunk mesh building on Sodium's worker threads - not during rendering. There is no per-frame CPU cost. The performance benefit is realised when chunks are built or rebuilt (world load, block changes, F3+A, or saving settings).

Building from source

git clone https://github.com/YOUR_GITHUB_HERE/complex-leaf-culling
cd complex-leaf-culling

# Place sodium-fabric-0.6.x+mc1.21.1.jar in libs/
./gradlew build

The built jar will be in build/libs/.

License

MIT - free to fork, modify, and redistribute with attribution. See LICENSE.

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Клиент

Создатели

Детали

Лицензия:MIT
Опубликован:1 месяц назад
Обновлён:1 месяц назад
Главная