|
All checks were successful
Build / build (push) Successful in 1m26s
Modified physics recorder to automatically save all captured data to IndexedDB:
- Auto-saves every 10 seconds in batches (non-blocking)
- Creates unique session ID for each gameplay session
- Buffers snapshots between saves to minimize IndexedDB writes
- Saves any remaining buffered data on disposal
- All data preserved indefinitely in browser storage
Technical implementation:
- Auto-save buffer collects snapshots between 10-second intervals
- performAutoSave() copies buffer and clears immediately (non-blocking)
- Async save happens in background without impacting frame rate
- Session ID format: "session-{timestamp}" for easy identification
- Ring buffer (30s) still available for quick exports
Recording flow:
1. Recording starts when XR pose is set
2. Every frame adds snapshot to ring buffer AND auto-save buffer
3. Every 10 seconds, auto-save buffer is flushed to IndexedDB
4. On disposal, any remaining buffered frames are saved
5. All data accessible via existing storage APIs
Performance: Minimal impact - saves happen async every 10s, not per frame.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| assets/themes/default | ||
| immersive | ||
| planetTextures | ||
| systems | ||
| 8192.webp | ||
| asteroid4.glb | ||
| background.mp3 | ||
| flare.png | ||
| shot2.mp3 | ||
| shot.mp3 | ||
| song1.mp3 | ||
| styles.css | ||
| thrust2.mp3 | ||
| thrust3.mp3 | ||
| thrust4.mp3 | ||
| thrust5.mp3 | ||
| thrust.mp3 | ||
| thust2.mp3 | ||
| yehrat.mp3 | ||