Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Changelog
Performance Improvements
-
Precomputed Chunks for Rendering: Moved the calculation of which chunks to render from the mixin's shouldBuild method to the WorldRenderEvents.AFTER_ENTITIES event in the main mod class (Cobalt.java). This reduces per-chunk computation.
-
Thread-Safe Data Sharing: Introduced an AtomicReference<Set<ChunkPos>> named chunksToRender to safely share the set of chunks to render between threads.
-
Simplified shouldBuild Method: Updated the mixin (ChunkRenderMixin.java) to check if a chunk is in the precomputed chunksToRender set, eliminating heavy computations during chunk building.
-
Optimized Sight Line Calculations: Adjusted how chunks intersected by the player's view are calculated and included neighboring chunks for smoother transitions.
-
Code Cleanup: Removed unnecessary variables and methods, like lastRenderedTime, to streamline the code and enhance performance.
Dependencies
Files
Metadata
Release channel
AlphaVersion number
1.1-1.21Loaders
Game versions
1.21Downloads
57Publication date
September 23, 2024 at 7:36 AMPublisher
Kubik-MC
Member