diff options
Diffstat (limited to 'TODO.md')
| -rw-r--r-- | TODO.md | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -4,6 +4,13 @@ This file tracks prioritized tasks with detailed attack plans. ## Recently Completed (February 5, 2026) +- [x] **Audio Lifecycle Refactor (Task #56)**: + - [x] **Phase 1: Design & Prototype**: Created `AudioEngine` class and `SpectrogramResourceManager` to manage audio subsystem initialization and resource loading with lazy loading strategy. + - [x] **Phase 2: Test Migration**: Migrated all tracker-related tests (`test_tracker.cc`, `test_tracker_timing.cc`, `test_variable_tempo.cc`, `test_wav_dump.cc`) to use AudioEngine instead of direct synth/tracker initialization. + - [x] **Phase 3: Production Integration**: Updated `main.cc` to use AudioEngine, eliminating initialization order fragility in production code. Fixed pre-existing demo crash (procedural texture loading). + - [x] **Phase 4: Cleanup & Documentation**: Removed backwards compatibility (synth_init() from audio_init()), updated HOWTO.md and CONTRIBUTING.md with AudioEngine usage patterns and best practices. + - **Result**: Initialization order dependency eliminated. All 20 tests pass. Binary size impact <500 bytes. Demo runs successfully. + - [x] **Physics & Collision (Task #49)**: - [x] **CPU-Side SDF Library**: Implemented `sdSphere`, `sdBox`, `sdTorus`, `sdPlane` in `src/3d/sdf_cpu.h` using `mini_math.h`. Added `calc_normal` for numerical gradients. - [x] **BVH Construction**: Implemented `BVHNode` and `BVHBuilder` in `src/3d/bvh.h/cc`. Optimized broad-phase collision queries with `BVH::Query`. @@ -113,18 +120,6 @@ This file tracks prioritized tasks with detailed attack plans. - [x] **Enhanced Procedural Noise:** Implemented a multi-octave Value Noise generator for higher-quality skybox textures. - [x] **Scene Integrity:** Restored proper object indexing and removed redundant geometry, ensuring the floor grid and objects render correctly. -## Priority 1.5: Audio System Architecture (Task #56) -**Goal:** Refactor tracker-synth relationship to eliminate fragile initialization order dependency. - -- [ ] **Task #56: Audio Lifecycle Refactor** - - **Problem:** Current system requires synth_init() before tracker_init() or spectrograms get cleared - - **Impact:** Fragile, hard to test, prevents composition, causes subtle bugs - - **Proposed Solution:** Unified AudioEngine class that manages synth and tracker as members - - **See:** `doc/AUDIO_LIFECYCLE_REFACTOR.md` for detailed design options and implementation plan - - **Effort:** 2-3 weeks (incremental migration path available) - - **Size Impact:** ~500 bytes (acceptable for robustness gain) - - **Priority:** Medium (current workaround functional but fragile) - ## Priority 2: 3D System Enhancements (Task #18) **Goal:** Establish a pipeline for importing complex 3D scenes to replace hardcoded geometry. - [ ] **Task #18.0: Basic OBJ Asset Pipeline** (New) |
