Commit Graph

7 Commits

Author SHA1 Message Date
tyler 849306d65e build: replace premake with a hand-written Makefile; optimize FFT
Build system
- Add a single hand-written Makefile (GNU make + gcc, pure C). Builds
  raylib from vendored source and links rspektrum with no premake/lua.
  Targets: all/run/test/bench/clean; release default, DEBUG=1 for debug;
  ARCH overridable (defaults to -march=x86-64-v3).
- Remove premake entirely: rspektrum.make, raylib.make, build/premake5*
  binaries, build/premake5.lua, build/ecc/*. The generated top-level
  Makefile was gitignored, so hand-edits to it were silently lost.
- Vendor raylib src/ into the repo (was gitignored -> fresh clones could
  not build). Commit only src/ (~16MB); examples/projects stay local.
  Verified: a build from the git-tracked tree alone succeeds offline.
- Release flags bumped to -O3 -ffast-math with a portable arch baseline
  (x86-64-v3 = AVX2+FMA on x64, SSE2 on x86). Confirmed FMA/AVX codegen
  in fft.o.

FFT optimization (src/fft.c)
- Precompute twiddle factors and the bit-reversal permutation once per
  size, cached as a small plan table (FFTW's idea, lightweight). Removes
  the per-butterfly cexpf() and per-element bit-twiddling that dominated.
- 3.6x faster on the mlnl_samples.wav STFT workload (2048-pt, -O2 same
  flags both sides): 81us -> 22us per FFT. With the new -O3/-ffast-math/
  AVX2 release flags stacked: ~15us (5.5x vs the old -O2 baseline).
- Verified vs a double-precision reference DFT: 1e-6 relative error,
  round-trip 2.4e-7. Drop-in: same FFT() signature.

Tests/bench (bench/)
- fft_verify.c: FFT vs reference DFT + round-trip check (make test).
- fft_bench.c: times the real STFT workload (make bench).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-06 21:13:49 -07:00
tyler 7916e8a24e docs+chore: add screenshot to README; drop committed export PNGs and junk
- README: embed resources/Screenshot.png under the intro
- remove accidentally-committed app export outputs (spectrogram_full.png,
  spectrogram_export.png) and gitignore them so they don't return
- remove unused resources/wabbit_alpha.png and stray .qwen/settings.json.orig

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 15:51:12 -07:00
Jeffery Myers 3f4dfdc483 remove exe from common launch commands and let each platform define it's own 2026-01-07 08:53:30 -08:00
MavikBow 2f8dbbfa87 added vi/vim cache files to .gitignore 2025-07-17 21:36:05 +03:00
Jeffery Myers 8d0485eafc use a single script file.
autogenerate the extern folder
2024-08-20 16:16:17 -07:00
Jeffery Myers 1c30e84c38 linux info, ignores 2024-08-14 19:33:30 -07:00
Jeffery Myers fe934db383 Initial commit 2024-08-14 17:08:10 -07:00