Skip to content

Conversation

@emyfops
Copy link
Collaborator

@emyfops emyfops commented Sep 7, 2025

This pull request simplifies the 3d rendering by introducing the Treed class and the ShapeBuilder.
Boiler plate objects and classes were also removed to help understanding how to use them correctly.
3d related function names were renamed for consistency (ex: ofBox, filledBox -> box, filled)

A major improvement comes in the PersistentBuffer class where memory comparison was previously checked by groups of 8 and 1 bytes to detect mismatch and is now replaced by ByteBuffer.mismatch which uses SIMD operations (I believe so) to return the index of the first mismatch between 2 buffers.

Note that BlockESP had some features removed to accommodate the recent changes and they will be reintroduced further down the development.
The Particles module was fully added back into the mod.

Another pull request should be expected not that far from now which will rework the rendering backend to simplify future refactors.

@github-actions github-actions bot added the triage Requires labelling or review label Sep 7, 2025
@Avanatiker Avanatiker merged commit 0da7658 into 1.21.5 Sep 7, 2025
2 checks passed
@Avanatiker Avanatiker deleted the refactor/3d branch September 7, 2025 21:14
@Avanatiker Avanatiker restored the refactor/3d branch September 7, 2025 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Requires labelling or review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants