Provides a new octree implementation which uses native CPU operations and OS memory management to speed up chunk loading / octree creation and rendering of Chunky scenes.
Different octree implementations optimized for different user needs with optimizations for different stages in the scene creation process:
- Octree optimized for insertion / building (faster octree creation)
- Octree optimized for memory efficiency (loading huge worlds)
- Octree optimized for access speed (fast rendering)
(Personal goals: learn Zig, efficient memory management, optimizations for modern platforms)
- Chunky 2.5.0-snapshot builds
- Java 21 with JEP 442: Foreign Function & Memory API (Third Preview)
⚠️ this requires preview features to be enabled - see installation below
Releases are compiled for x86_64 (64-bit) systems targeting Windows, Linux and MacOS and packed into a single cross-platform .jar
.
- JDK 21+
- Zig 0.11.0+
- Download the newest version from the releases
- Put the downloaded
.jar
-file in.chunky/plugins/
- Start the Chunky launcher and ensure that you have the newest release installed (2.5-SNAPSHOT or higher)
- Enable the plugin in the plugin manager
- Make sure that you are using an installation of Java 19 (or a subversion 19.x, but not a lower or higher version)
- Append
--enable-preview --enable-native-access=ALL-UNNAMED
to the Java options - Start Chunky and switch the octree implementation to
NATIVE_ZIGv1
in theAdvanced
tab - (If you have the debug console enabled, you should now see some messages about created octrees)