audio perf: resample planar history + shared dot loop, mdct inverse fused unfold + fft index hoisting, AudioOps strided loops / remix term lists, wav sample loops, SILK LPC in locals, upvalue hoisting (Celt, Mpa), --!optimize 2 on every audio module; tools/bench_audio.luau

This commit is contained in:
4DBug committed 2026-11-01 19:00:38 -06:00
1 parent 01c044805f
commit 051aca5b74
98 files changed
+707 -171

No files matched your search

@@ -1,4 +1,5 @@
--!strict
--!optimize 2
-- codecs/audio/Hively/Load: AHX ("THX\0".."THX\2") and HivelyTracker ("HVL\0", "HVL\1") module files -> Tune.
-- Ported from hvl2wav replay.c 1.9 (hvl_load_ahx / hvl_reset; BSD-3-Clause, (c) 2006-2018 Pete Gordon;
-- licenses/hivelytracker-LICENSE.txt), with bounds checks the C code does not have.
@@ -1,5 +1,6 @@
--!strict
--!native
--!optimize 2
-- codecs/audio/Hively/Player: the AHX / HivelyTracker replayer and integer mixer, as hvl2wav's replay.c 1.9 computes them.
-- Ported from HivelyTracker (BSD-3-Clause, (c) 2006-2018 Pete Gordon; licenses/hivelytracker-LICENSE.txt). Where the C
-- code reads outside its arrays on bad data this port clamps instead.
@@ -1,5 +1,6 @@
--!strict
--!native
--!optimize 2
-- codecs/audio/Hively/Tables: the AHX / HivelyTracker replayer's waveform, panning, vibrato and period tables.
-- Ported from hvl2wav replay.c 1.9 (BSD-3-Clause, (c) 2006-2018 Pete Gordon; licenses/hivelytracker-LICENSE.txt) as
-- built on 64-bit Linux (`long` is 64-bit: the noise generator's shifts do not wrap at 32 bits).
@@ -1,4 +1,5 @@
--!strict
--!optimize 2
-- codecs/audio/Hively: the AHX / HivelyTracker engine (loader, replayer, waveform tables, render glue).
-- A port of hvl2wav replay.c 1.9 (BSD-3-Clause, (c) 2006-2018 Pete Gordon; licenses/hivelytracker-LICENSE.txt); at
-- hvl2wav's settings the output equals its 16-bit samples / 32768. hvl2wav pads a 44.1 kHz speed-multiplier-4 frame to