zhenyan121 f4114c2699 refactor: world generation (#17)
* refactor: use TBB for concurrent hash maps and parallelize chunk processing

* fix: tbb link fail

* refactor(chunk): remove biome check for caves in rivers and oceans

* refactor(random): replace std distributions with custom implementations

Avoid overhead and platform-dependent behavior of `<random>` distributions by using direct engine operations and integer arithmetic. This ensures deterministic, cross-platform results and improves performance.

* refactor(generation): use chunk seed for cave and river paths

- Use per-chunk seed instead of global path_id for cave and river generation.
- Remove unused m_sum variables and m_path_id members.
- Clamp river yaw within 10 degrees of initial direction.
- Fix river radius interpolation (use t instead of 1-t).
- Lower sea level from 64 to 63.
2026-06-14 11:36:37 +08:00
2026-06-12 19:42:59 +08:00
2026-05-28 21:34:36 +08:00
2026-06-14 11:36:37 +08:00
2026-04-21 22:53:34 +08:00
2026-05-28 21:34:36 +08:00
2026-05-28 21:34:36 +08:00
2026-03-05 13:43:34 +08:00
2026-04-14 09:24:10 +08:00
2026-05-28 21:34:36 +08:00
2026-04-19 18:01:09 +08:00
2026-05-28 21:34:36 +08:00

What's it

A cube game like Minecraft, using C++ and OpenGL.

Build Guide

Prerequisites

  • CMake (>= 3.24)
  • C++ 23 compatible compiler

Step

  1. Clone the repository
    git clone https://github.com/zhenyan121/Cubed.git && cd Cubed
    
  2. Configure with CMake
    mkdir build && cd build
    cmake -G "Ninja" ..
    
  3. Build the project
    ninja
    
Description
No description provided
Readme MIT 2.9 MiB
Languages
C++ 92.6%
Python 3.7%
GLSL 1.9%
CMake 1.8%