Tags
Creators
Details
All versions
mc1.16.5-0.7.0-fabric
Release
Lomka 0.7.0last month 69
Compatibility
Minecraft: Java Edition
1.16.5
Platforms
Fabric
Quilt
Supported environments
Client-side
Server-side
Client and server
Changes
Performance
- New
DiscreteVoxelShapecache: the greedy box decomposition is memoised as cell indices (MixinDiscreteVoxelShape+IDiscreteVoxelShape) and replayed byVoxelShape#forAllBoxes, instead of cloning the whole BitSet and re-decomposing it on every call.VoxelShape#moveallocates a fresh wrapper each time, so a wrapper-keyed cache is cold on every call, while the decomposition itself is a pure function of the shape bits - boxes are recorded through vanilla's ownIntLineConsumer, so the order is whatever upstream produces. Shapes whose decomposition is too fragmented to retain (>32 boxes) answer with the empty sentinel and keep vanilla's path. This is the per-touched-block pathEntity.movewalks. (all versions) NEW - New
ModelPart#rotateByoverwrite: reuses two scratchMatrix3fand one scratchVector3f(thread-confined, same convention asMixinPose) instead of allocating per call. The Euler -> matrix -> Euler round trip is unchanged and bit-identical over 200k random rotations. Call sites are narrow (end crystals, player capes), so this is an allocation reduction, not a frame-time change. (1.21.4+) NEW - New
DisplayRendererredirect: the billboarding quaternion comes from a reusable scratch instead of a freshQuaternionfper display entity per frame. Every branch ofcalculateOrientationassigns rather than accumulates and the result is only read, so a shared instance is sound. (>=1.20) NEW - New
BlockGetter#forEachBlockIntersectedBetweenoverwrite plus theBlockStepSweephelper: replaces the per-cellIterable+AbstractIterator+MutableBlockPostrio and theOptional<Vec3>box clip of the DDA sweep with one reused cursor and a primitive clip returningt. Vanilla's arithmetic, iteration order, deduplication and abort semantics are reproduced exactly - this runs on every entity move viaEntity#checkInsideBlocks, and onGhast#tick. (>=1.21.9) NEW SoundEnginehandle pool now replenishes on hits as well as misses, gated on a live per-pool size counter and topping up below half the cap. A miss costs a fullcreateHandle().join()- exactly what vanilla costs - so a miss-only pool can improve the median but never the tail: its hit rate settled at 50% (30% on 32-sound bursts) and p99 was vanilla's. Topping up on every call reaches a 100% hit rate. The win holds while a tick plays at most about cap/2 sounds and decays to vanilla beyond that; it is never worse. (all versions) REWORKPalettedContainer's uniform-section cache moved into one immutableUniformPaletteCache(Data, value)holder behind a single volatile reference, so the hot path is still one volatile load, one identity check and one plain load. (all versions) REWORK- New
BlockModelLighterstate-read memo: while a section's immutable render region is meshed, the repeatedBlockAndTintGetter#getBlockStatereads of ambient occlusion are answered from a 512-slot open-addressed table keyed on the packed block position - one block's six faces read 90 states over 19 distinct positions. The window belongs to the constructing thread and is opened/closed with vanilla's ownenableCaching/clearCache, so a region change, a level change or a caller that forgets to close all invalidate it; collision-shape queries themselves stay vanilla, since ordinary states already cache their result. (>=26.1) NEW - New
SpriteContentsmip-level release (MixinSpriteContents+MixinTextureAtlasMip, bridged byISpriteContents): once the atlas has finished uploading, every non-animated sprite frees its generated mip levels above level 0 and truncates the chain, so they are not held for the lifetime of the pack. Level 0 is kept deliberately - it is whatisTransparent(and therefore item model generation and ambient occlusion) reads, what a debug atlas dump reads, and what Axiom'sBlockColourComputationholds;NativeImage#closeisnmemFree, so closing it would be a native use-after-free. The hook isTextureAtlas#uploadRETURN, notSpriteContents#uploadFirstFrame, which from 26.1 runs once per mip level inside the generation loop. Sodium and Iris already inject there, so coexistence is proven rather than assumed. (>=1.20) NEW - New
BlockableEventLoop#doRunTaskredirect: theSharedConstants.IS_RUNNING_IN_IDEargument Tracy'sbeginZone("Task", ...)hangs on is folded to a constant, so no profiler zone is opened per executed task. Costs the Tracy per-task breakdown from this site - a small win, recorded so the trade is visible. (>=1.21.4) NEW - New
WeightedList$Compact#getoverwrite: immutable cumulative weights and a branchless binary search replace the O(n) weight-subtraction scan - but only where it pays. The prefix table is built from 64 entries up, and only when a weighted draw would inspect at least 32 entries on average, so small and front-skewed selectors keep the vanilla scan, as do out-of-range selections, which still reproduce vanilla's overflow behaviour and exception text. (>=1.21.11) NEW - New
UberGpuBuffer#uploadStagedAllocationsredirect: the staged-allocation walk uses fastutil's reuse-modefastIterator()instead ofObjectSet#iterator, so the per-entry object is recycled rather than allocated per iteration. Starts after the preceding key iterator, which must still free the previous iteration's reuse objects. (>=26.2) NEW DynamicUniformStorage#writeUniform/DynamicGpuDataStorageMapped#writeData: the slow path builds itsGpuBufferSlicedirectly instead of probing the one-slot cache - that probe could only ever miss, since the cached slice belongs to the previous block - and on 26.2+ the returned slice is the mapping's own rather than a second identical record. The fresh slice is still stored, which is what primes the next fast-path hit. (>=1.21.6) REWORKInputConstants.Key#hashCodeoverwrite: the two-elementObjects.hashresult is computed directly instead of allocating the temporaryObject[]and boxing the key code, on every keybinding lookup. Null handling and the integer overflow of the original are preserved. This patch shipped before 0.5.0 and was dropped there as low-value; it is back and now widened down to every variant, 1.16.5 included. (all versions) NEW from OLDSectionPos.betweenClosedStream'sforEachRemainingsteps the cursor directly instead of astartedflag plus a separate sequential loop. (all versions)MixinBufferBuilderpriority raised to 2000 so ourbeginElementstore runs ahead of foreign patches on the same target.- Enabled JOML's
sinLookup(11-bit table) alongsidejoml.fastmath, both still overridable with-D.
Bug Fixes
VertexConsumer.addVertex/addVertexWith2DPose/setNormal/putBulkData/putBakedQuadwere not transcriptions of the JOML operation vanilla performs, in two separate ways. The first computedwand divided by it wheneverw != 1, silently reimplementing perspective projection that vanilla never does. The second built the same sum from nestedjava.lang.Math.fma; JOML writes the identical expression throughorg.joml.Math.fma, and in every JOML release Minecraft shipsorg.joml.Runtime.HAS_Math_fmais false, so each of those is a plaina * b + c- the replica was off by up to one ulp on most vertices while looking like a faithful copy. Both the association (m00 * x + (m10 * y + (m20 * z + m30))for 3D, left-to-right for 2D) andnormalize()'s nested length-squared are now reproduced exactly, andputBulkData+putBakedQuadgained the bit-comparison coverage they were already claiming. (1.21+)- Fixed
ARGB.scaleRGBcorrupting out-of-range divisors: vanilla clamps the divisor to 0..255 before dividing, but the reciprocal form was applied to the raw value, so scaling white byInteger.MAX_VALUEoverflowed the long product past2^24 * Integer.MAX_VALUE, wrapped negative and clamped to black. The reciprocal is now used inside vanilla's domain and the clamp is reproduced directly outside it, where no division is needed at all. - Fixed the
Camerafluid-in-camera cache being keyed on camera position alone, which is unsound: a stationary camera keptFogType.WATERafter the water below it was removed and skipped the water query entirely once the cache heldFogType.NONE. The caches are now dropped at the head of everysetup(), which the game calls exactly once per rendered frame, so the memo is frame-scoped and a block, fluid, FOV or aspect change is always picked up. - Fixed
BitSetDiscreteVoxelShape.joinwriting contiguous runs withBitSet.set(from, to). That overload edits the backing long words directly and never routes through the single-bitset(int), so aBitSetsubclass that keeps derived state in an overriddenset(int)desynchronises - Palladium swaps this storage for aFastBitSetwhose reader mirror onlyset(int)/clear(int)maintain, which silently emptied every shape built throughShapes.join(bed shapes, stairs, slabs) while its bounds stayed correct. The bulk write is now enabled only for a stockjava.util.BitSet. - Fixed the
PalettedContaineruniform cache publishing a mismatched pair: with the value in a plain field next to a volatileDatafield, two concurrent fillers can interleave and leave one section'sDatapaired with another section's value, handing back a wrong block. One immutable holder removes the interleaving via the JMM final-field guarantee. - Fixed
AxisPoseRotate's axis fast path assuming a unit quaternion.Matrix4f.rotate(Quaternionfc)composes the rotation with a uniform scale of the norm squared, so a non-unit quaternion the axis path skipped left a different diagonal than JOML; anything that is not unit is now handed to JOML unchanged. - Fixed
Mth.ceillog2,Mth.log2andMth.smallestEncompassingPowerOfTwodisagreeing with vanilla onInteger.MIN_VALUE. Vanilla'sisPowerOfTwoaccepts it, soceillog2andlog2answer 31 there while the leading-zero body answered 0 and -1, and the smallest-power-of-two guard disagreed on the sign of its result. - Fixed
BlockStateBase#getCollisionShapeserving the cached per-state shape to entity collision. The cache is filled once from(EmptyBlockGetter.INSTANCE, BlockPos.ZERO, CollisionContext.empty()), but the three-argument overload that entity collision uses delegates togetBlockShapeunconditionally - so any block whose collision shape varies per entity got the wrong one. Twenty-one Create blocks overridegetCollisionShapewithout declaringhasDynamicShape, so the cache existed for all of them;CrushingWheelControllerBlockin particular returns an empty shape for the entity it is crushing, so with a solid controller the item could never be shoved past the intake threshold and the wheel spun and crushed nothing. The cache is now served only for contexts that carry no entity, which is exact on every version: the empty sentinels all have a null entity, and the 26.2+PositionCollisionContextdoes not extendEntityCollisionContextat all, so a position-sensitive shape lands on the dispatch path anyway. - Fixed
Heightmap#primeHeightmapscarrying an unmatched pending-type mask between columns. The mask was initialised once for the whole chunk, so a water-only column that matched nothing left its bits set, and a later column could overwrite a height after vanilla's partial iterator rewind. Each column now starts from a fresh mask. - Forge/NeoForge manifests serialise the Minecraft range through one
mcRange(ctx)helper. The previous inlinewhenemitted an open[X,)wheneverdeps.minecraft_maxwas absent or equal to the compiled version - true for every variant, since each block setsdeps.minecraftto the version it builds - so the bounded branch was dead code and1.21.4-neoforge,26.2-neoforgeand26.3-neoforgeshipped unbounded, disagreeing with their own Fabric counterparts and letting an older patch set load on a version they were never built for. MixinFallbackResourceManager.listResourcesis a cancellable HEAD@Injectagain rather than an@Overwrite. An overwrite deletes the targetMethodNode, which breaks any foreign MixinExtras v2 injector anchored to it - owo'sFallbackResourceManagerMixinuses@WrapWithConditionon thePackResources.listResourcesINVOKE, which died withInvalidInjectionExceptionduringMultiPackResourceManager.<init>, i.e. a boot crash. The price is oneCallbackInfoReturnableper call, which is a data-reload path. (>=1.19.3)MixinChannel.setSelfPositionis a cancellable HEAD@Injectat default priority instead of apriority = 500@Overwrite, for the same reason.- Fixed comment and javadoc accuracy across the touched mixins (
Mth.hsvToArgbno longer claims to skip the modulo,AutoStorageIndexBufferwarmup counts indices rather than quads,ResourceEntryfield alignment).
Removed
- Removed three
LightCoordsUtiloverwrites (max,lightCoordsWithEmission,smoothWeightedBlend, 26.1+): the equality fast path and the nibble-max packing only duplicated what vanilla already does in three branches, and the "blend" replaced vanilla's per-channellerpcalls with a weighted accumulation, so the saved call overhead was not worth re-deriving the interpolation by hand. - Removed
MixinGlStateManager,MixinWindowandutils/cache/GlStateCache. Sodium already owns the vertex upload path these deduped, and the cache is an unverifiable claim about driver state: Accelerated Rendering, ImmediatelyFast and VulkanMod all mutate scissor/viewport without telling it, and Iris has its own cancellable HEAD injection on_viewportthat can cancel before our cache sees the write. Every such case leaves the wrong rect or mode live. The<1.21.2FBO read/draw mirror backport that shared the file went with it. (all versions) - Removed
MixinVertexBuffer: Sodium already overwritesModelPart$Cube#compilewith an equally fast body, so ours was dead code under any popular rendering mod while adding conflict surface. - Removed the
Util.growByHalfoverwrite (>=1.21.6): three branches around aMath.min/Math.maxpair that HotSpot compiles better than the hand-rolled form.
Changed
- New supported versions: 1.16.5 (Fabric) and 1.18.2 (Fabric + Forge). Both carry a real, reduced patch set rather than an empty config - 24 and 29 patches - and are the reason for most of the
//?gates listed below. 1.16.5 + Forge has no working toolchain:legacyforgedrives NeoForm Runtime, which refuses every pre-1.17 MCP config outright, so thematchline stays commented out and the variant is left out ofstonecutter.properties.tomlentirely — declared, it would be a variantpublish.pywaits for a jar that can never be built. - The legacy Forge / Ornithe builds (1.7.10, 1.8.9, 1.12.2) moved into the repository as two source trees,
src-legacy/for Forge andsrc-ornithe/for Ornithe, plus a separatelegacy/Gradle build driving six per-version sub-builds, and are tracked in CHANGELOG_LEGACY.md - they must not interleave with this file. - Renamed the
Transformation#inversemixin back fromMixinTransformationInversetoMixinTransformation(same target, same overwrite). The class name is its runtime config key, so an existingcom.mojang.math.MixinTransformationentry works again. - Mixin config gating tightened to what each patch actually needs:
MixinModelmoved from>=1.21.6to>=1.21.4,MixinBuilderfrom>=1.21.11to>=1.21.6,MixinPoseStackfrom<26.3to>=1.19 && <=26.2,MixinVertexFormatElement/MixinMultiple/MixinCameragained>=1.19floors, andMixinBlockStateBase+accessor.InvokerBlockBehaviourmoved into the<1.19block at>=1.18.MixinAutoStorageIndexBuffernow sits in the>=1.18block, which also serves 1.19+ - the nested class appears in 1.18.2, so the gate is the class, not the era, and a second>=1.19listing would duplicate the entry on every modern variant. - The
pluginkey is now omitted below 1.17: 1.16.5 is a Java 8 target shipping Gson 2.8.0, and the modernLomkaMixinPluginneeds a text block,varandJsonParser.parseReader. The legacy tree ships its own Java 8 + Log4j + no-Gson plugin instead, so the runtime toggle is not lost there. - Build outputs now stay clean: dev jars are deleted from
build/libsas soon as the shippable artifact exists, skipped on the moddev-based loaders where the pre-reobf jar is a build input (and whereRemapJar.inputis wired as a plainFile, so deleting it fails the build outright). Gradle heap raised 2G -> 3G. - Source comments no longer cite the benchmark harness or the vendored competitor trees. Figures rot with every JDK change and are invisible to players reading the code, and the whole
scripts/tree is gitignored, so such a path resolves for the author and for nobody else. - README no longer advertises an FPS percentage, and the sound/attribution lines were reworded.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:bd9cFfiC:C0fSaDvW"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:bd9cFfiC:C0fSaDvW"
}

