Deterministic simulation and ray-tracing engine for General Relativity, Post-Newtonian dynamics, relativistic hydrodynamics, and polarized radiative transfer in curved spacetimes.
Primary references:
- System Description: scientific scope, runtime modes, validation targets.
- Technical Architecture: subsystem structure, scheduling, concurrency, precision model.
- Technical Manual: component-level implementation and engineering constraints.
- Mathematical Formulation: equations, metrics, transport formalisms, PN terms.
- File Formats & I/O: YAML schema, FITS/HDF5/VTK formats, SPICE/HORIZONS ingestion, cluster configuration.
- CLI & REPL Reference: interactive commands, headless exporter options, cluster worker daemon.
- Testing Guide: test suite structure, writing rules, and validation targets.
- Documentation Index: index of the documentation set.
- Source Tree: repository layout.
-
Spacetime Models
- Analytic metrics: Minkowski, Schwarzschild, Kerr, Reissner–Nordström, Kerr–Newman, Schwarzschild–de Sitter (Kottler) (Catalog & Gauges).
- Coordinate forms: Boyer–Lindquist, Kerr–Schild Cartesian, Eddington–Finkelstein, Painlevé–Gullstrand, isotropic (Coordinate Systems).
- Additional models: FLRW, Morris–Thorne, Alcubierre, Lemaitre–Tolman–Bondi, Quintessence, Chaplygin, Vaidya evaporating, and TeVeS (Cosmological & Exotic Spacetimes).
- Specialized numerical solvers (
trace_extended_photonandtrace_spherical_spacetime_dispatch) directly integrate expanding cosmologies, wormhole throats, warp bubbles, scalar fields, and time-dependent evaporation rates (Technical Manual). - Multi-source Kerr black hole superposition: simultaneous Hamiltonian integration through up to 16 Kerr black holes using Cartesian Kerr-Schild metrics with analytical horizon entry and disk crossing detection (Technical Manual, Mathematical Formulation).
- Numerical spacetime support: 3+1 BSSN metric grids with spatial and temporal interpolation (Metric Modules).
- Metric invariants and curvature tensors: Riemann, Ricci, and Kretschmann invariants (Diagnostics Window).
-
Geodesics and Integrators
- Adaptive explicit integrators: RK45 Dormand–Prince with infalling radial step limiting and algebraic constraint projection, Cash–Karp 5(4) with wide stability intervals, Vernier 9(8) 16-stage high-order Runge-Kutta scheme.
- Symplectic integrators: Gauss–Legendre orders 4 and 6 satisfying
$b_i A_{ij} + b_j A_{ji} - b_i b_j = 0$ with Picard stage iterations to tolerance$10^{-14}$ , Forest–Ruth post-Newtonian scheme. - Predictor-corrector: Hermite 4th-order Aarseth scheme evaluating 4th-order finite difference jerk, snap, crackle, and Aarseth variable timestep regulation.
- Digital filter step controllers: Standard, PI30, and PID42 digital filter controllers eliminating step chattering.
- Horizon boundary state machine: HorizonDetector tracking exterior, horizon surface, interior, and physical singularity boundaries with absorption and continuity modes.
- Specialized null geodesic solvers: Cartesian angular-momentum conserving Schwarzschild RK4, Kerr-Schild Hamiltonian RK4, planar equatorial RK4, and SIMD geodesic bundles.
- Image rendering integrates null rays with specialized null RK4 schemes; the integrator selected at runtime determines the N-body integration only (Technical Manual).
-
Relativistic Dynamics
- Post-Newtonian N-body dynamics: conservative 1PN Einstein-Infeld-Hoffmann, 2PN, and 3PN terms.
- Dissipative terms: 2.5PN radiation reaction and 3.5PN radiation dissipation.
- Spin dynamics: spin-orbit and spin-spin couplings.
- Dedicated Hulse–Taylor binary pulsar model (Dynamics Subsystem).
- Interaction layers: Coulomb, magnetic dipole, collision, thermodynamic, fragmentation, and annihilation (Dynamics Subsystem).
- Spacetime-source bodies with Kerr horizons, horizon absorption, and body merging (State Advance).
- Body Manager architecture partitioned into seven functional tabs (Object Catalog, Source Catalog, Create Object, Create Source, System Dynamics, Interactions, Randomizer Controls).
- Multi-Body Geometric Pattern Generator synthesizing annular asteroid belts, coplanar debris swarms, and 3D spherical formations (Plummer clusters, uniform spheres, Fibonacci lattice shells, infalling blast waves) across 10 archetype presets with Kirkwood gap simulation and collision safeguards.
- Gravitational Hierarchy Engine with Hill sphere occupancy tracking and Kozai-Lidov resonance detection.
- Local Frenet-Serret RTN Maneuver Injector decomposing impulses along radial, tangential, and normal axes with pre-burn orbit prediction, Hohmann transfer departures, and isokinetic plane-change burns.
- Relative Orbital Plane Alignment Tool supporting coplanar, polar, and retrograde snaps relative to any attractor.
- Bulk body actions (velocity and spin assignment, grid snapping, scattering, mass equalization, parameter equalization, culling; Keybinds).
-
Gravimetry and Large-Scale Gravity
-
Spherical harmonic gravity expansions up to degree and order 32 (
$J_n$ ,$C_{nm}$ ,$S_{nm}$ Architecture). - Analytical orbital precession and tidal Love number perturbations.
- Dark matter modules: thirteen analytic density profiles (NFW, Hernquist, Burkert, Einasto, Plummer, Cored Isothermal, Singular Isothermal, Dehnen, Point Mass, Jaffe, Moore, Soliton BEC core, King Beta model), triaxial ellipsoidal geometry (
$q_y, q_z$ ), Tait-Bryan Euler orientations, geodesic lensing kicks, three false-color visualization modes, Keplerian halo orbits, five geometric layout generators, subhalo population generator, Barnes–Hut octree acceleration with quadrupole multipoles, composite galaxy synthesis, and MOND, TeVeS, and (f(R)) Chameleon models. - Cosmological and semiclassical modules: inhomogeneous LTB voids with exact cycloid shell evolution and bang times, quintessence scalar fields with four potentials (Exponential, Ratra-Peebles, PNGB, SUGRA), generalized Chaplygin gas, Kerr horizon surface gravity thermodynamics, Polyakov 2D renormalized stress-energy tensors, coupled Hawking mass loss and spin-down integration, and Unruh-DeWitt detector excitation rates.
-
Spherical harmonic gravity expansions up to degree and order 32 (
-
Application Lifecycle, Platform Bootstrap & Startup Window
- Operating-system platform bootstrap: per-monitor v2 DPI scaling, explicit Application User Model ID registration, heap corruption termination, and asset path normalization across ancestor directories (Technical Manual).
- Single-instance mutual exclusion: Win32 named mutex and POSIX advisory lockfile with existing window detection, unminimizing, and foreground activation.
-
Staged startup progress monitoring: 9 sequential range stages (
StartupStage), asymptotic creep limit smoothing, cooperative cancellation, and live shader compilation tracking. -
Autonomous native Win32 splash window: background worker thread with
std::promisesynchronization, flicker-free GDI double-buffering.
-
Relativistic Hydrodynamics and Compact Objects
- GRHD/GRMHD 3+1 conservative formulation with WENO5-JS, WENO5-Z, and MP5 reconstructions and TVD slope limiters.
- Multi-wave approximate Riemann solvers: HLL, HLLC with contact wave restoration, and HLLD (Architecture).
- Exact divergence control: constrained transport 2D enforcing (\nabla \cdot \mathbf{B} = 0) via vertex electric fields.
-
Conservative-to-primitive variable inversion: bracketed 1D Newton-Raphson solvers for hydro (
$p$ ) and MHD ($z$ ) with bisection safeguards. - One-dimensional relativistic fluid solver: RelativisticHydroSolver1D with 3 ghost cells, Outflow/Periodic/Reflecting boundaries, acoustic CFL stepping, and SSP-RK3 temporal evolution.
- EOS models: ideal gas, Synge, Mathews, relativistic Fermi gas, polytropic, piecewise polytropic, and tabulated nuclear EOS with 3D trilinear interpolation (SFHo, Shen, LS220, SLy4, APR4) and HDF5 container serialization.
- Compact-object modeling: Tolman-Oppenheimer-Volkoff (TOV) solver with adaptive scale-height RK4 stepping, surface/central redshifts, compactness, and mass-radius stability curve generation (
$M_{\max}$ ,$R_{1.4 M_\odot}$ ). - Relativistic accretion and magnetosphere models: Novikov–Thorne thin disk with Page-Thorne analytical flux integration, Fishbone–Moncrief torus in barotropic equilibrium, and Blandford-Znajek jet magnetosphere.
-
Radiative Transfer and Rendering
- Backward null geodesic ray tracing in curved spacetimes (Mathematical Formulation).
- Polarized transfer in full Stokes representation ((I,Q,U,V)) via Delano analytical matrix exponential scaling and squaring, linear/circular/total polarization degrees, EVPA, and Mueller reference frame rotations; image rendering uses blackbody disk emission integrated with CIE 1931 matching functions.
- Radiative processes: thermal and non-thermal synchrotron with Faraday rotation and conversion, thermal bremsstrahlung with relativistic Gaunt factor, and inverse Compton scattering with Klein-Nishina differential cross sections (Architecture).
- Kinetic electron distributions: Maxwell-Jüttner 4-regime sampling with rational Bessel approximations and Doppler line broadening kernels.
- Continuous spectral pipeline with 4096-bin logarithmic grid, CIE 1931 observer convolution, and ACES/logarithmic HDR tonemapping (Mathematical Formulation).
- Analytical Carter constant null geodesic classification using Cardano and Ferrari depressed quartic root solving for absorption and escape turning points.
-
Geodesic ray probe inspection resolving constants of motion (
$E, L_z, \xi, \mathcal{Q}, \eta, b$ ), sub-step disk crossings, observed temperatures, image orders, and 3D deflection angles. - Relativistic Terrell-Penrose aberration and moving sphere analytical spacetime ray intersections with retarded time solving.
- Vulkan compute pipeline in native FP64 with CPU SIMD (AVX2/AVX-512/Neon) and scalar fallbacks in double and single precision.
- Ray-traced ellipsoidal celestial bodies with 27 surface texture modes, including 14 photographic planetary maps (Earth Blue Marble with automatic twilight terminator blending, Sun, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Ceres, Eris, Haumea, Makemake) at 1K/2K resolutions (Technical Manual).
-
3D body illumination engine supporting 7 light source modes (CentralSource, CameraHeadlight, FixedDirection with azimuth/elevation, FixedPoint, NearestEmissiveBody, SpecificBody, Unlit), inverse-square distance attenuation with
$64\times$ clamp, wrapped diffuse terminator softness, Blinn-Phong specular reflections, shadow occlusion rays tested against body ellipsoids and horizon spheres, and inter-body emission lighting with$16\times$ clamp across 3 detail presets (Minimal, Reduced, Full; Architecture, Technical Manual). -
Procedural multi-layer skybox engine evaluating equal-area spherical voxel partitioning, 8 star point spread function models (Gaussian, Lorentzian, Moffat, Airy diffraction with Chebyshev Bessel approximation, HardDisc, DiffractionSpikes, PinpointDirac, CinematicBloom), 6 star placement laws, 4 parameter sampling distributions, multi-octave curl-noise nebulae, open and globular star clusters with Plummer density profiles, interstellar dust extinction lanes, deep-field Sersic galaxies across 6 morphologies, quasars with relativistic jets and Doppler beaming (
$\delta^3$ ), pulsars with rotating magnetic sweep beams, supernova remnant shells, and 3D spherical coordinate grids supporting degree ticks and 5 cell fill modes over a 16-color palette (Technical Manual). - Schematic projection overlay with first-order light deflection (Mathematical Formulation) and secondary observer viewports executing comoving free-fall probe kinematics, asymptotic telephoto cameras, and 3D lensed beacon markers (Mathematical Formulation).
- 3D spatial reference system providing Cartesian reference planes (XY, XZ, YZ), adaptive logarithmic spacing, graduation ticks, distance rings, horizon occlusion, and dynamic scale bar calibration (Mathematical Formulation).
- Still frame and sequence image streaming in ten output formats (Capture Subsystem).
- Synthetic VLBI interferometry pipeline: Event Horizon Telescope array modeling, Fourier
$(u, v)$ coverage synthesis, closure phase evaluation, thin-ring first null diameter fitting, and OIFITS standard export.
-
Distributed Computing and Heterogeneous Cluster Engine
-
Cluster topology and operational roles: master orchestrator, autonomous worker daemon (
cluster_worker), hybrid participatory nodes, and isolated offline standalone mode. -
Zero-overhead offline autonomy: complete decoupling ensuring zero network allocations, sockets, or thread overhead when
cluster.enabled = 0. -
Dynamic latency-damped load balancing allocating tile quotas proportionally to measured throughput and
$(\text{RTT})^{-\alpha}$ latency penalties. - Fault-tolerant dynamic work stealing reclaiming stalled remote tiles onto the local thread pool upon deadline expiration without frame drops.
- Cryptographic transport channel: X25519 ECDH key agreement, HKDF-SHA256 derivation, and ChaCha20-Poly1305 AEAD authenticated encryption with a 64-packet anti-replay sliding window.
-
Adaptive tile compression codecs: DirectRaw for local 10GbE LAN, QOI HDR with FP16 radiance and RLE, and LZ4 block compression with SIMD channel-shuffling delivering
$> 3.5,\text{GB/s}$ decompression throughput. - SIMD radiance data sanitization guarding against IEEE 754 NaNs, infinities, and unphysical negative fluxes.
-
Distributed task routing: five task classes encompassing
$32 \times 32$ ray-traced viewport tiles with pre-pass culling, capture studio image bands, row-partitioned post-Newtonian N-body accelerations evaluated on GPU viaGpuNBodyExecutor(nbody_accel_fp64.comp) or CPU, Monte Carlo geodesic bundle ensembles, and polynomial chaos stochastic quadratures. -
UDP multicast auto-discovery on
239.255.77.88:42424via packed 72-byteDiscoveryBeacondatagrams with SHA-256 namespace tag derivation and HPC Slurm cluster integration with automatic MPI rank and nodelist detection. -
Dedicated SPIR-V compute shaders:
cluster_tile_tracer_fp64.compandnbody_accel_fp64.comp. - Distributed verification test suites: cluster cryptography (suites/cluster_crypto_protocol.md), scheduler work stealing (suites/cluster_scheduler_stealing.md), compression codecs (suites/cluster_serialization_codecs.md), worker execution (suites/cluster_worker_execution.md), distributed pipeline reassembly (suites/distributed_geodesic_pipeline.md), and multi-worker throughput scaling (suites/cluster_throughput.md).
-
Cluster topology and operational roles: master orchestrator, autonomous worker daemon (
-
Deterministic Runtime and Reproducibility
-
Synchronous input event journal primitive (
EventJournal), decoupled from the command queue. - Engine signature computation and SHA-256 ABI verification.
- Lock-free SPSC command and result queues and static worker thread pool.
- Allocation-free hot paths utilizing cache-aligned linear memory arenas (Technical Manual).
-
Synchronous input event journal primitive (
-
Scientific Data and Interoperability
- Declarative YAML scenario parser and serializer with hierarchical path resolution.
- SPICE binary SPK kernel evaluation, NASA JPL HORIZONS vector table ingestion, and astronomical frame transformations.
- FITS 4.0 2D radiance image and 3D spectral cube export with WCS metadata headers (Serialization).
- Custom binary HDF5-signature container serialization for worldlines, metric series, and covariance matrices.
- VTK XML PolyData (VTP) geometry export for rays, trajectories, and event horizon meshes.
- Incremental image codecs and stream writers (Serialization).
-
Capture and Experiment Control
- Scriptable multi-segment camera motion paths with 29 shape layers across 7 categories, 9 orientation modes (including chase-lead velocity tracking), 16 presets, 7 projection transition morphing modes, 46 easing curves, and expression evaluations (Mathematical Formulation).
- Motion script serialization and scripted timeline events with 15 actions, continuous ramps, and 52 parameter bindings (Capture Subsystem).
- Deterministic and real-time capture pipelines with banded rendering, sub-frame temporal averaging, camera collision avoidance, post-processing color grading, triangular noise dithering, and automated ffmpeg video encoding with custom filter chains and rate control.
- Multi-channel physics telemetry recording across 54 kinematic and relativistic channels in seven file formats (Capture Modules).
- Path preview generation for visual trajectory inspection in the schematic overlay (Capture Modules).
-
Interactive Workspace
- Primary viewport window with camera transport toolbar, hold-to-zoom magnification, and a configurable 25-element HUD (Technical Manual).
-
Multi-window docking workspace with dedicated interfaces for master simulation controls, scenario selector, celestial body manager, curvature diagnostics, spectrograph (including synthetic VLBI interferometry and polarization analysis), performance optimization, profiling, Comparison Workbench with Welch's
$t$ -test significance testing, physical constants, key bindings, log console, and Capture Studio (Technical Manual). - Six navigation modes (Free-Fly 6-DOF, Orbit Center, Spherical Boyer-Lindquist, Rocket Thrust, Surface Walk on celestial bodies, and Planet Orbit).
- External gamepad flight controller integration supporting Xbox, Bluetooth, and USB dual-stick controllers with deadzones, trigger elevation, bumper roll, tap and double-tap chords, alongside configurable arrow key modes.
-
Forensic crash reporting and hang monitoring: structured crash dumps under
logs/crashes/(Vectored Exception Handlers, Unhandled Exception Filters,sigactionwith 64 KiBsigaltstack, registers, RIP disassembly, RSP stack words, DbgHelp/backtrace symbol stacks, process minidumpsminidump.dmp, preference attachments, retention pruning), backgroundHangWatchdogthread tracking UI and simulation heartbeats with GUI modal loop exclusion, and.session_activecrash guard file. - Physical constants engine supporting SI, Planck, and Custom presets, with independent unit preferences across 19 physical quantities and dimensional expression parsing.
-
Modular persistent preferences architecture partitioned across nine domain configuration files in
config/preferences/.
-
Uncertainty Quantification
- Bounded interval arithmetic adhering to IEEE 1788 (Description).
- Multidimensional zonotope enclosures with Girard order reduction (Description).
- Continuous Jacobi-Lyapunov covariance matrix differential propagation (Description).
- Generalized polynomial chaos expansions (gPCE) on Hermite and Legendre bases (Description).
The visual renders and trajectory sequences below were recorded and generated using the integrated Capture Studio workspace widget.
- ISO C++23 compliant compiler:
- GCC 13 or newer (Linux x86_64, aarch64, Windows MinGW-w64)
- Clang 16 or newer / Homebrew LLVM (Linux, FreeBSD, macOS Intel & Apple Silicon)
- Apple Clang 15+ (Xcode 15+ on macOS 14 Sonoma / Xcode 16+ on macOS 15 Sequoia)
- MSVC 2022 v19.36+ (Windows 11 x64)
- MinGW-w64 GCC 13+ (Windows 11 portable static builds)
- CMake 3.25 or newer
- Ninja or Make build system
- Vulkan headers & loader (1.2+):
- Linux:
libvulkan-dev(Debian/Ubuntu) orvulkan-loader-devel(Fedora/RHEL) - macOS: MoltenVK runtime (
brew install molten-vk vulkan-headers vulkan-loaderor LunarG Vulkan SDK) - Windows: LunarG Vulkan SDK
- Linux:
glslangValidator(recommended for compiling compute shaders to SPIR-V bytecode):- Linux:
glslang-tools/glslang - macOS:
brew install glslang - Windows: included in LunarG Vulkan SDK
- Linux:
- OpenGL and GLFW (automatically fetched and built via CMake FetchContent)
- ENet and LZ4 (automatically fetched and built via CMake FetchContent when
ENGINE_ENABLE_DISTRIBUTED=ON, enabled by default) ffmpeg(optional run-time dependency for automated video assembly in Capture Studio)
| CMake Option | Type | Default | Description |
|---|---|---|---|
CMAKE_BUILD_TYPE |
String | Release |
Build profile: Release, Debug, RelWithDebInfo, MinSizeRel. |
ENABLE_LTO |
Boolean | OFF |
Interprocedural / Link-Time Optimization (-flto=auto on GCC, /GL on MSVC). |
ENABLE_PGO_GENERATE |
Boolean | OFF |
Instrument binary for Profile-Guided Optimization generation. |
ENABLE_PGO_USE |
Boolean | OFF |
Utilize recorded profiling data to produce optimized binary. |
ENGINE_ENABLE_DISTRIBUTED |
Boolean | ON |
Compile distributed computing subsystem, network codecs, and cluster worker. |
ENGINE_PORTABLE_EXE |
Boolean | OFF |
Produce standalone portable executable with static runtime on Windows MinGW. |
ENGINE_UNIVERSAL_MACOS |
Boolean | OFF |
Build macOS Universal 2 binary supporting both arm64 and x86_64. |
ENGINE_NATIVE_OPTIMIZATION |
Boolean | OFF |
Tune CPU instructions for the host compilation architecture (-march=native). |
CMAKE_OSX_DEPLOYMENT_TARGET |
String | 11.0/10.15 |
Minimum target macOS deployment version. |
Install Visual Studio 2022 Community/Professional with the "Desktop development with C++" workload, CMake 3.25+, and the Vulkan SDK from LunarG.
cmake -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release -j $env:NUMBER_OF_PROCESSORScmake -S . -B build-release -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DENABLE_LTO=ON -DENGINE_PORTABLE_EXE=ON
cmake --build build-release --target RelativisticEngine -j $env:NUMBER_OF_PROCESSORS| Hardware Architecture | Minimum OS | Supported Compilers | Vulkan Driver Implementation |
|---|---|---|---|
| Apple Silicon (M1 / M2 / M3 / M4) | macOS 14.0 (Sonoma) / 15.0 (Sequoia) | Apple Clang (Xcode 15+) or Homebrew LLVM (clang++ 16+) |
MoltenVK (libMoltenVK.dylib) via Metal |
| Apple Silicon (M1 / M2 / M3 / M4) | macOS 11.0 (Big Sur) / 12.0 (Monterey) / 13.0 (Ventura) | Homebrew LLVM (clang++ 16+) |
MoltenVK (libMoltenVK.dylib) via Metal |
| Intel x86_64 | macOS 14.0 (Sonoma) / 15.0 (Sequoia) | Apple Clang (Xcode 15+) or Homebrew LLVM (clang++ 16+) |
MoltenVK (libMoltenVK.dylib) via Metal |
| Intel x86_64 | macOS 11.0 (Big Sur) / 12.0 (Monterey) / 13.0 (Ventura) | Homebrew LLVM (clang++ 16+) |
MoltenVK (libMoltenVK.dylib) via Metal |
| Intel x86_64 (macOS Catalina 10.15.7) | macOS 10.15.7 | Homebrew LLVM (clang++ 16+) |
MoltenVK (libMoltenVK.dylib) via Metal |
xcode-select --install
brew install cmake ninja vulkan-headers vulkan-loader molten-vk glslang
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_LTO=ON
cmake --build build -j $(sysctl -n hw.ncpu)export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER="/opt/homebrew/opt/llvm/bin/clang" \
-DCMAKE_CXX_COMPILER="/opt/homebrew/opt/llvm/bin/clang++" \
-DENABLE_LTO=ON
cmake --build build -j $(sysctl -n hw.ncpu)xcode-select --install
brew install llvm cmake ninja vulkan-headers vulkan-loader molten-vk glslang
export PATH="/usr/local/opt/llvm/bin:$PATH"
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER="/usr/local/opt/llvm/bin/clang" \
-DCMAKE_CXX_COMPILER="/usr/local/opt/llvm/bin/clang++" \
-DENABLE_LTO=OFF \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
cmake --build build -j $(sysctl -n hw.ncpu)cmake -B build-universal -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DENGINE_UNIVERSAL_MACOS=ON \
-DENABLE_LTO=OFF \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
cmake --build build-universal -j $(sysctl -n hw.ncpu)sudo apt update
sudo apt install -y build-essential cmake ninja-build g++-13 gcc-13 \
libvulkan-dev vulkan-tools glslang-tools libgl1-mesa-dev \
libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=gcc-13 \
-DCMAKE_CXX_COMPILER=g++-13 \
-DENABLE_LTO=ON
cmake --build build -j $(nproc)sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y build-essential cmake ninja-build g++-13 gcc-13 \
libvulkan-dev vulkan-tools glslang-tools libgl1-mesa-dev \
libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=gcc-13 \
-DCMAKE_CXX_COMPILER=g++-13 \
-DENABLE_LTO=ON
cmake --build build -j $(nproc)sudo apt update
sudo apt install -y software-properties-common wget gpg
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y build-essential cmake ninja-build g++-13 gcc-13 \
libvulkan-dev vulkan-tools glslang-tools libgl1-mesa-dev \
libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=gcc-13 \
-DCMAKE_CXX_COMPILER=g++-13 \
-DENABLE_LTO=ON
cmake --build build -j $(nproc)sudo dnf install -y gcc gcc-c++ cmake ninja-build \
vulkan-loader-devel vulkan-tools glslang mesa-libGL-devel \
libX11-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel libXext-devel
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_LTO=ON
cmake --build build -j $(nproc)sudo dnf --enablerepo=crb install -y gcc-toolset-13-gcc gcc-toolset-13-gcc-c++ cmake ninja-build \
vulkan-loader-devel mesa-libGL-devel libX11-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel
source /opt/rh/gcc-toolset-13/enable
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_LTO=ON
cmake --build build -j $(nproc)sudo pacman -Syu --needed base-devel cmake ninja gcc vulkan-devel vulkan-tools glslang \
mesa libx11 libxrandr libxinerama libxcursor libxi libxext
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_LTO=ON
cmake --build build -j $(nproc)sudo zypper install -y gcc13 gcc13-c++ cmake ninja \
vulkan-loader-devel vulkan-tools glslang Mesa-libGL-devel \
libX11-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel libXext-devel
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=gcc-13 \
-DCMAKE_CXX_COMPILER=g++-13 \
-DENABLE_LTO=ON
cmake --build build -j $(nproc)apk add build-base cmake ninja g++ gcc vulkan-loader-dev glslang mesa-dev \
libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev linux-headers
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_LTO=ON
cmake --build build -j $(nproc)sudo apt update
sudo apt install -y build-essential cmake ninja-build g++-13 gcc-13 \
libvulkan-dev vulkan-tools glslang-tools libgl1-mesa-dev \
libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=gcc-13 \
-DCMAKE_CXX_COMPILER=g++-13 \
-DENABLE_LTO=ON
cmake --build build -j $(nproc)cmake -B build-server -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_LTO=ON \
-DENGINE_ENABLE_DISTRIBUTED=ON
cmake --build build-server --target headless_exporter cluster_worker -j $(nproc)pkg install -y llvm17 cmake ninja vulkan-loader vulkan-headers glslang libglvnd glfw lz4 enet
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang17 \
-DCMAKE_CXX_COMPILER=clang++17 \
-DENABLE_LTO=ON
cmake --build build -j $(sysctl -n hw.ncpu)ctest --test-dir build --output-on-failure -j $(nproc 2>/dev/null || sysctl -n hw.ncpu)./build/headless_exporter --validate-benchmarks./build/RelativisticEngine --headless./build/cluster_worker --auth-token "a8f5c2d3e9b14708215649fbcde71024385960abcedf1234567890abcdef1234" --backend autocmake -B build-pgo -DCMAKE_BUILD_TYPE=Release -DENABLE_PGO_GENERATE=ON
cmake --build build-pgo --config Release -j $(nproc 2>/dev/null || sysctl -n hw.ncpu)
./build-pgo/headless_exporter --validate-benchmarkscmake -B build-opt -DCMAKE_BUILD_TYPE=Release -DENABLE_PGO_USE=ON
cmake --build build-opt --config Release -j $(nproc 2>/dev/null || sysctl -n hw.ncpu)cd build
cpack -G TGZ
cpack -G DEB # Linux Debian/Ubuntu
cpack -G RPM # Linux Fedora/RHEL/openSUSE
cpack -G NSIS # Windows Nullsoft Installer
cpack -G DragNDrop # macOS DMG./build/RelativisticEngineAvailable interactive commands (warp, step, set mass, status, etc.) are documented in the Interactive Terminal Commands (REPL) and navigation keybindings in Navigation & Viewport Keybindings.
./build/headless_exporter --validate-benchmarks
./build/headless_exporter --scenario scenarios/kerr_accretion_disk.yaml --output-dir ./output --width 3840 --height 2160Command-line options are documented in Headless Batch Exporter, declarative scenario definitions in Declarative Scenario Definition, and validation targets in Verification Criteria & Benchmark Protocols.
# Start an autonomous worker listening on LAN (auto-discovered by running masters)
./build/cluster_worker --auth-token "a8f5c2d3e9b14708215649fbcde71024385960abcedf1234567890abcdef1234" --backend auto
# Start an outbound worker targeting a remote master host (cloud instance / Colab)
./build/cluster_worker --master-address 198.51.100.24:42425 --auth-token "a8f5c2d3e9b14708215649fbcde71024385960abcedf1234567890abcdef1234" --no-listen --no-discoveryWorker options, Slurm HPC submission scripts, and configuration schemas are documented in Cluster Compute Worker and Cluster Configuration File.
Sky and panorama assets:
- ambientCG assets (CC0 1.0): assets/sky/ambientcg/LICENCE.txt
- ESO Milky Way panorama (CC BY 4.0): assets/sky/eso/LICENCE.txt
Earth and planetary assets:
- Solar System Scope Planetary textures (CC BY 4.0): assets/textures/solarsystemscope/LICENCE.txt
This project is licensed under the MIT License. See LICENSE for details.


