A 2D pixel physics engine. Potentially as the basis for a game like Noita and to provide eye candy in the CLI tool Tattoy.
WAYLAND_DISPLAY= DISPLAY=:0 RUST_BACKTRACE=1 RUST_LOG="info,wgpu_hal::gles=off" cargo run --example youre-a-pixel
Using a dedicated Rust GPU shader compiler: https://github.com/rust-gpu/cargo-gpu
RUST_LOG=debug cargo run -- build --shader-crate ../wrach/shaders/physics --output-dir ../wrach/assets/shaders --force-overwrite-lockfiles-v4-to-v3
Release build:
- 1,000,000 particles at ~39fps
- Tests:
cargo test --workspace
- Lint
cargo clippy --all --all-targets --all-features -- --deny warnings
- Remove unused deps:
cargo shear --fix
- Support changing the workgroup size without recreating the comp ute worker
- Confirm how long it takes between
.gpu_uploads()
and the change appearing on screen - Logs should not output unless explicitly requested in
RUST_LOG