LCull

Cursed, performant Frustum logic for heavy culling scenes

Редакция NLZONE · 2 мин чтения · 0 просмотров
LCull
Скачать LCull1.19.2 – 26.3 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Cursed, performant Frustum logic for heavy culling scenes

  • Тип: мод
  • Загрузчик: fabric, forge, neoforge, quilt
  • Версии Minecraft: 1.19.2 – 26.3
  • Скачиваний на Modrinth: 1 981

Подробно

The project code was created with help of Artificial Intelligence.

An open source mod with cursed, performant Frustum logic for heavy culling scenes. More FPS, but has some side effects.

Advantages - Culling entities that off-screen: - Helps in different heavy scenes which increases FPS. (like in CounterMine 2) - Accelerates work by x2 with Entity Culling, Sodium/Embeddium mods, cuz they're professionals here yea.

Weaknesses - Useless for other scenes: - Low amounts of entities - Entities behind the walls. - Modded mobs (probably) - Increases CPU load.

1.21.11 Fabric with mods: Sodium, Entity Culling, Fabric API

Minecraft keeps every loaded entity in the render loop even when it is behind your back or far outside the screen, so the GPU and CPU pay full price for things you will never see. In entity-heavy scenes, like RPG-modded servers, minigame hubs or CounterMine maps WITH UP TO 10K ENTITIES (or just a much amount of Display entities), that overhead turns into a real frame-rate tax. Sodium and Entity Culling already do excellent work on the block and entity side, but I wanted a small, focused frustum path tuned specifically for thousands of entities on screen at once, and a clean place to experiment with the rendering pipeline. LCull grows out of the ideas in Lomka (my earlier work that proved tick and refresh culling help a lot) and narrows the scope to one job: stop drawing entities that are not in the view frustum.

Every frame the game already builds a Frustum for the active camera. LCull asks that frustum whether an entity's axis-aligned bounding box lives inside the visible volume - the same six-plane test the renderer uses for chunks, evaluated in a branchless form that resolves the per-corner sign choices once per frame instead of per entity. When the whole box is outside, the entity is skipped during rendering and never reaches the draw call.

Two things keep the result from flickering. The safety margin around the box grows with the entity's speed - 1 block for a stationary entity, up to 2.5 for a fast mover - so nothing pops mid-stride; and a projectile cannot exempt itself by moving fast, because the margin is capped. LCull also leaves vanilla's own escapes intact: anything the renderer marks as never-cullable (fishing hooks, the ender dragon, lightning bolts, name-tag displays) is handed straight back to v

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также