3 phút đọc
Auburn/FastNoise2: Modular node graph based noise generation library using SIMD, C++17 and templates – Repository Auburn/FastNoise2. Mô tả: Modular node graph based noise generation library using SIMD, C++17 and templates. 1432 stars, 148 forks, ngôn ngữ chính C++, cập nhật 2026-10-13.
1. Repository làm gì?
Modular node based noise generation library using SIMD, focused on performance, modern C++17 and designed with ease of use in mind.
Noise node graphs can be created in code or with the help of the included visual "Node Editor" tool. Or if you just want basic coherent noise you can easily generate it from a single Simplex/Perlin node
The node-based approach keeps all noise generation and operations (add, multiply, blend, etc.) within the SIMD pipeline. This means when combining multiple noise types or applying modifiers, the intermediate values stay in SIMD registers rather than being written to memory.
The traditional approach of generating noise types separately and combining them with scalar operations doesn't make sense if you want to benefit from SIMD. With just SIMD noise generation each noise type is generated into its own array, then the arrays would need to be combined afterwards in separate passes. With FastNoise2's node graph, the entire computation is fused and executed in SIMD, maximizing throughput and minimizing both memory allocation and bandwidth.
The FastNoise2 Node Editor tool provides a node graph editor to create trees of FastNoise2 nodes. Node trees can be exported as serialised strings and loaded into the FastNoise2 library in your own code. Node Editor has 2D texture/heightmap and 3D mesh previews for the node graph output, generation is infinite in all dimensions. See screenshots below for examples.
Check the Releases for compiled Node Editor binaries for desktop platforms
2. Dữ liệu và cấu trúc đáng chú ý
FastNoise Lite is a simpler, portable library best suited for basic noise needs in many languages. Choose FastNoise2 when you need:
Uses FastSIMD to compile code with multiple SIMD architectures and selects the fastest supported SIMD level at runtime
On Windows using ClangCL is recommended as MSVC has SIMD compiler bugs, which cause incorrect generation. ClangCL also complies much faster and has measurable runtime performance increases. Remember ClangCL binaries/libraries are fully compatible with MSVC!
FastNoise2 has continuous benchmarking to track of performance for each node type across commits
Results can be found here: https://auburn.github.io/fastnoise2benchmarking/
Benchmarked using NoiseBenchmarking
Million points of noise generated per second (higher = better)
Số liệu repository có thể thay đổi; nên mở liên kết nguồn để kiểm tra README, giấy phép và trạng thái phát hành.
Nguồn tham khảo: Xem bài gốc