Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(terrain): use main's destruction types after the #205 rebase
Drop the copied Fixed64, command, and voxel-DAG definitions. The column ring now calls astraweave-destruction. Demo chunks still fill from the island heightfield, and ColumnStream only decides which chunks stay loaded. The determinism job keeps the eleven main cases and adds worldgen_columns and deformed_chunk.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
  • Loading branch information
cursoragent and lazyxeon committed Oct 16, 2026
commit 04368b2fac7e60309fe1ccb1edcab84923701137
11 changes: 11 additions & 0 deletions .github/workflows/determinism-replay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v5

- name: Fetch Aravath nature models
run: git lfs pull --include "assets/aravath/models/nature/*.glb"

- name: Rust CI setup
uses: ./.github/actions/rust-ci-setup
with:
Expand Down Expand Up @@ -99,7 +102,11 @@ jobs:
seen.add(row.case);
merged.push(row);
}
<<<<<<< HEAD
const required = ["planner_pure", "perception_world", "gameplay_rng", "fixed64", "combat_resolve", "destruction", "gameplay_qa_aravath_slice", "nav_reroute", "causal_bridge", "scripted_system", "weaving", "traversal", "traversal_deformed", "worldgen_columns", "deformed_chunk"];
=======
const required = ["planner_pure", "perception_world", "gameplay_rng", "fixed64", "combat_resolve", "destruction", "gameplay_qa_aravath_slice", "nav_reroute", "causal_bridge", "scripted_system", "weaving", "worldgen_columns", "deformed_chunk"];
>>>>>>> 04893a95 (fix(terrain): use main's destruction types after the #205 rebase)
const names = new Set(merged.map((row) => row.case));
for (const name of required) {
if (!names.has(name)) {
Expand Down Expand Up @@ -138,7 +145,11 @@ jobs:
import sys
from pathlib import Path

<<<<<<< HEAD
required = {"planner_pure", "perception_world", "gameplay_rng", "fixed64", "combat_resolve", "destruction", "gameplay_qa_aravath_slice", "nav_reroute", "causal_bridge", "scripted_system", "weaving", "traversal", "traversal_deformed", "worldgen_columns", "deformed_chunk"}
=======
required = {"planner_pure", "perception_world", "gameplay_rng", "fixed64", "combat_resolve", "destruction", "gameplay_qa_aravath_slice", "nav_reroute", "causal_bridge", "scripted_system", "weaving", "worldgen_columns", "deformed_chunk"}
>>>>>>> 04893a95 (fix(terrain): use main's destruction types after the #205 rebase)
root = Path("replay-artifacts")
files = sorted(root.glob("*/replay-hash.json"))
print(f"artifacts: {[str(p) for p in files]}")
Expand Down
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ members = [
"examples/veilweaver_demo",
"examples/veilweaver_slice_loader",
"veilweaver_slice_runtime",
"astraweave-veil",
"aravath_runtime",
"examples/world_partition_demo",
"examples/profiling_demo",
# Phase 8 demos
Expand Down Expand Up @@ -234,7 +232,6 @@ astraweave-profiling = { path = "astraweave-profiling" }
astraweave-scripting = { path = "astraweave-scripting" }
astraweave-veil = { path = "astraweave-veil" }
astraweave-alloc = { path = "crates/astraweave-alloc" }
astraweave-veil = { path = "astraweave-veil" }
# mimalloc as an optional workspace dep so astraweave-alloc and any binary can
# reference it via the `fast-alloc` feature cascade. MIT-licensed; Microsoft-
# maintained; supports Windows/Linux/macOS with no extra build deps.
Expand Down
42 changes: 17 additions & 25 deletions aravath_runtime/src/ground.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use std::collections::{HashMap, HashSet};

use astraweave_physics::{Layers, PhysicsWorld};
use astraweave_render::mesh::{CpuMesh, MeshVertex as RenderVertex};
use astraweave_terrain::{ChunkCoord, ChunkMesh, DualContouring, MeshVertex, Voxel, VoxelGrid};
use astraweave_terrain::{
ChunkCoord, ChunkMesh, ColumnStream, DualContouring, MeshVertex, Voxel, VoxelGrid,
};
use glam::{Vec2, Vec3, Vec4};

use crate::island::{self, biome_at, column_material, Biome, MAT_WOOD};
Expand Down Expand Up @@ -62,6 +64,7 @@ pub struct Ground {
mesher: DualContouring,
bodies: HashMap<ChunkCoord, u64>,
generated: HashSet<ChunkCoord>,
stream: ColumnStream,
scatter: HashMap<ChunkCoord, Vec<PropSpot>>,
/// Chunk the ring was built around, plus the radius. A settled player
/// whose grid is clean skips the set rebuild.
Expand All @@ -85,6 +88,7 @@ impl Ground {
mesher: DualContouring::new(),
bodies: HashMap::new(),
generated: HashSet::new(),
stream: ColumnStream::new(),
scatter: HashMap::new(),
stream_key: None,
}
Expand All @@ -107,32 +111,19 @@ impl Ground {
if self.stream_key == Some(key) && self.grid.dirty_chunks().is_empty() {
return Vec::new();
}
let mut keep = HashSet::new();
for dz in -radius..=radius {
for dx in -radius..=radius {
if dx.abs().max(dz.abs()) > radius {
continue;
}
let coord = ChunkCoord::new(center.x + dx, 0, center.z + dz);
keep.insert(coord);
if self.generated.insert(coord) {
fill_height_chunk(&mut self.grid, coord);
self.reapply_edits(coord);
self.scatter.insert(coord, scatter_chunk(coord));
}
}
// ColumnStream is the loaded set. Island columns still fill the
// voxels, so the #205 heightfield stays the one the replay hashes.
let delta = self.stream.around(center.x, center.z, radius);
for &(x, z) in delta.added() {
let coord = ChunkCoord::new(x, 0, z);
self.generated.insert(coord);
fill_height_chunk(&mut self.grid, coord);
self.reapply_edits(coord);
self.scatter.insert(coord, scatter_chunk(coord));
}
let mut stale: Vec<ChunkCoord> = self
.generated
.iter()
.copied()
.filter(|coord| coord.y == 0 && !keep.contains(coord))
.collect();
// HashSet iteration follows the process hasher. Removal order is part
// of the physics step, so it has to be the same on every run.
sort_coords(&mut stale);
let mut removed = Vec::new();
for coord in stale {
for &(x, z) in delta.removed() {
let coord = ChunkCoord::new(x, 0, z);
self.generated.remove(&coord);
self.scatter.remove(&coord);
self.grid.remove_chunk(coord);
Expand Down Expand Up @@ -613,6 +604,7 @@ fn chunk_parts(mesh: &ChunkMesh) -> Vec<ChunkPart> {
indices,
albedo_image: None,
texture_source_hint: None,
..CpuMesh::default()
},
});
}
Expand Down
1 change: 1 addition & 0 deletions astraweave-core/src/sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ mod tests {
SIM_SYSTEM_CAUSAL,
SIM_SYSTEM_TRAVERSAL,
SIM_SYSTEM_FOREST_SCATTER,
SIM_SYSTEM_COLUMN_EROSION,
];
for i in 0..ids.len() {
for j in (i + 1)..ids.len() {
Expand Down
4 changes: 1 addition & 3 deletions astraweave-render/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ pub mod parallax; // Parallax Occlusion Mapping — steep ray-march + binary ref
pub mod particle_forces; // Enhanced particle simulation: forces, curves, emission shapes (Phase 7)
pub mod particle_render; // Billboard particle render pipeline with blending (Phase 7)
pub mod particle_sort; // GPU bitonic sort for depth-ordered particle transparency (Phase 7)
pub mod pbr_maps;
pub mod pipeline_cache; // Disk-backed Vulkan/DX12 pipeline cache (eliminates cold-start stalls)
pub mod residency;
pub mod scene_environment;
Expand All @@ -102,7 +103,6 @@ pub mod subgroup_ops; // Subgroup-optimized shader variants (auto-exposure, pref
pub mod surface_cache; // World-space irradiance probe grid (Lumen Phase 5)
pub mod taa; // Temporal Anti-Aliasing with neighborhood clamping and RCAS sharpening
pub mod temporal_upscale; // Temporal upscaling (TAA-U) — render at reduced internal res, resolve to native
pub mod terrain_gpu_bridge; // Render-side impl of TerrainGpuAccelerator (GPU noise + erosion bridge)
pub mod terrain_material;
#[cfg(feature = "terrain-splat-arrays")]
pub mod terrain_material_manager; // Phase 2.2: 8-layer splat-array terrain pipeline (Issue #9 fix)
Expand Down Expand Up @@ -153,7 +153,6 @@ pub mod advanced_post;
pub mod decals; // Screen-space decal system
pub mod deferred; // Deferred rendering pipeline
pub mod effects; // NEW
pub mod gpu_erosion;
pub mod gpu_particles; // GPU compute-based particle system
pub mod grass_blade; // Procedural per-blade grass geometry rendering
#[cfg(feature = "impostor-bake")]
Expand Down Expand Up @@ -207,7 +206,6 @@ pub use distance_field::{DfaoConfig, DfaoParams, DfaoPass, SdfBox, SdfConfig, Sd
pub use effects::{WeatherFx, WeatherKind};
pub use final_gather::{FinalGatherConfig, FinalGatherParams, FinalGatherPass};
pub use god_rays::{sun_to_screen, GodRayConfig, GodRayParams, GodRayPass};
pub use gpu_erosion::{ErosionPreset, GpuErosionConfig, GpuErosionPipeline};
pub use gpu_memory::{GpuMemoryBudget, MemoryCategory};
pub use gpu_particles::{EmitterParams, GpuParticle, GpuParticleSystem};
pub use gpu_profiler::{GpuProfiler, PassTiming};
Expand Down
Loading