argon-0.3.1-neoforge
Curse Maven Snippet
What's new
Changelog
0.3.1
Structure layout and seeds are unchanged. This version removes the remaining vanilla shape work from the candidate path, halves the octree leaf footprint, and trims the frame clock.
Layout
- The region shape, a piece's local free shape, and both candidate shapes are now deferred.
DeferredShapecarries the box and buildsShapes.create(box)only if a call reaches vanilla. Argon's own test and record wraps answer from the octree, so a candidate no longer allocates anArrayVoxelShapeand its three coordinate lists just to have them discarded. The seed's two shapes are deferred the same way. BoxOctreeleaves hold six ints per box with an inclusive maximum instead of six doubles with a widened half-open maximum. This halves the leaf array and removes the int-to-double conversion on insert and the deflated doubles on the leaf scan. The 0.25 deflate is the inclusive cell test for integer boxes, so the hot query compares the candidate'sBoundingBoxints directly. A piece atInteger.MAX_VALUEstill fits without widening, and the coordinate-limit test still covers it.- A node subdivides when the leaf is full rather than one insertion later, so the 32-box array that used to be copied and then discarded is never allocated.
- The child array is sized to the axes that actually split (two, four, or eight slots) instead of always eight.
intersectsAnyBoxstays a half-open query for fractional callers and tests, but it is no longer on the layout path.
Frame Cadence
- The cached interval is rounded to the nearest nanosecond instead of truncated.
waitUntilreturns the clock reading that showed the deadline, and the jitter estimate uses it, so a paced frame reads the clock one fewer time.
Build
- Version is
0.3.1. The installed jar isargon-0.3.1.jar, and the F3 brand line reports0.3.1+26.3.
Tests
- Added
DeferredShapeTest, which checks the carrier againstShapes.createfor a world-space box and for a box inside the unit cube, including the memoised resolution. - Added a fractional half-open probe test against the new integer leaf storage, and extended the coordinate-limit test to the half-open query at
Integer.MAX_VALUE. - The mixin injection test now covers the two seed and three Placer
Shapes.createcall sites as well.
This mod has no additional files