Главная › Моды › Оптимизация › Structure Layout Optimizer

Structure Layout Optimizer

Structure Layout Optimizer

Attempts to optimize the generation of Jigsaw Structures and NBT pieces

Structure Layout Optimizer — мод для Minecraft 1.16.5–26.3 из категории «Оптимизация» для загрузчиков Fabric, Forge, NeoForge. Автор: TelepathicGrunt. В Lorix можно добавить мод в сборку — нужные зависимости подтянутся автоматически — и скачать её одним ZIP с папкой mods/ или запустить в Lorix Launcher одной кнопкой.

Категория
Оптимизация
Загрузчики
Fabric, Forge, NeoForge
Версии Minecraft
26.3, 26.2, 26.1.2, 26.1.1, 26.1, 1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.1, 1.21, 1.20.1, 1.19.2, 1.18.2, 1.16.5
Скачиваний на Modrinth
8 982 624

Зависимости

Описание

Optimizes general Jigsaw structure generation as best I can. Essentially this mod aims to not change how structures look at all. It only works to try and make structures generate faster and more efficiently. That's it.

Here are the more technical details of the optimizations done. Please report any conflicts or issues that is discovered when running this mod in your modpacks!

Replaces VertexShape unoptimized calls with a BoxOctree to make pieces only check nearby pieces for intersections instead of entire structure.

By default, vanilla uses a VoxelShape to store the bounds of pieces it is assembling for the structure layout. When it goes to add a new piece, it needs to see if it will fit into the layout without intersection any other pieces.

The issue is VoxelShape is not good for this purpose as when checking if a VoxelShape intersects another VoxelShape, ALL the vertices are compared. In Jigsaw structures with lots and lots of pieces, this intersection check slows down greatly the more valid pieces are added to the layout. Can cause a lag spike when generating high number of pieces for recursive Jigsaw structures.

The optimization here replaces the normal VoxelShape with a dummy VoxelShape that holds a BoxOctree implementation inside in order to pass around the BoxOctree to where it needs to be. This BoxOctree, when checking for intersections, will check only the nearby pieces to the incoming bounding box. Thus preventing the runaway growth in intersection checking time as it'll ignore the majority of pieces as they are too far away to matter for the check.

Как установить Structure Layout Optimizer

  1. Скачайте Lorix Launcher и создайте сборку с нужной версией и загрузчиком.
  2. Найдите Structure Layout Optimizer в окне модов — зависимости добавятся сами.
  3. Нажмите «Играть».

Или соберите модпак в конструкторе и скачайте ZIP: папку mods/ из архива положите в .minecraft.