4DBug
686a1fbf86
codecs/audio/Aac: HE-AAC (SBR) and HE-AACv2 (baseline PS) decoding
...
New shared modules under codecs/audio/Aac: Sbr (bitstream, band tables,
delta decoding), SbrBits, SbrQmf (32-band analysis / 64-band synthesis QMF
through DCT-IV), SbrHf (HF generation and adjustment), Ps (baseline PS),
SbrTables (ISO tables, from syom 0.8.1, MIT). Explicit signalling enables
SBR at construction; implicit SBR / PS is found by Decoder:probe /
Aac.probeFrames. audio/aac and audio/m4a report the output rate and take
opts.sbr = false for the core only; m4a scales iTunSMPB by the media tick.
Outside the folder: containers/AudioWrap writes an AAC-LC ADTS header for
HE-AAC AudioSpecificConfigs (the decoder finds SBR in the stream); the api's
default openAudio hook forwards opts.sbr.
2026-11-02 00:21:13 -06:00
4DBug
627ddded77
merge ws/perf-video
2026-11-01 21:22:20 -06:00
4DBug
6ddc5b6017
merge ws/perf-audio (Ogg page CRC via core Crc32.msb from ws/perf-core)
2026-11-01 20:57:10 -06:00
4DBug
de755ca036
merge ws/perf-core
2026-11-01 20:56:00 -06:00
4DBug
7a6368242b
video perf: MPEG-1/2, yuv -> rgba, H.264, VP8 faster in interpreted Luau (and native / LuaJIT), outputs unchanged
...
- codecs/video/Mpeg2/Decoder: coefficient loop keeps the bit position in a local and reads a 25-bit window with
one readu32 (no fifth byte); MPEG-1 oddification with bor; dequant shifts; tracks the highest coefficient so the
IDCT skips the zero rows; toRgba / toRgba422 through shifted-channel lookup tables (one rshift + one index per
channel, the alpha folded in), two rows per chroma row without a per-pixel branch
- codecs/video/Dsp: idct(blk, dst, off, stride, add, last?): pass 1 only over the rows up to last's, pass 2 with
the rows-4..7-zero branch tree when they are, fused with the put / add (rounding and the CLAMP offset in one
division); mc: an unrolled whole-sample copy for 8 / 16 wide blocks, the 4-tap case a column at a time reusing
each row's pair sums
- codecs/image/Yuv.toRgba: per-matrix luma table, shifted-channel clip tables, chroma once per 2x2
- codecs/video/H264: prediction scratch as buffers (put = u32 copy, bi-pred average four samples at a time),
whole-sample single-list blocks copied straight from the reference, implicit / identity weights routed to the
plain paths, 2-tap chroma when a fraction is 0 and the bilinear taps slide along the row, six-tap with two
multiplies; deblocking skips the inner edges of macroblocks with one motion and no luma coefficients
(S.flatTab) and finds equal motion before motionDiffers
- codecs/image/Vp8/Predict: six-tap filters with a sliding window (one read per sample)
- --!optimize 2 on every video codec / container module that lacked it (the bundles already force it)
- tools/bench_video.luau: the video fps lines on their own (sections, "once", "jitdefault"), more MPEG-1 clips
2026-11-01 20:54:46 -06:00
4DBug
d5276798c3
merge ws/perf-image
2026-11-01 20:33:57 -06:00
4DBug
3f788e9d22
perf(image): Floyd-Steinberg error sums in tables and locals (same float sums), map cache checked inline; build: regenerate bundles
2026-11-01 20:17:06 -06:00
4DBug
8bd15840d8
merge ws/engines
2026-11-01 20:14:34 -06:00
4DBug
58df9e8a3a
merge ws/quake
2026-11-01 20:08:48 -06:00
4DBug
a5a03ecb8d
audio perf: FLAC keeps floor(x * inv) / floor(u * 0.5) (LuaJIT: a division is slower)
2026-11-01 20:07:09 -06:00
4DBug
53290f0e0c
perf: brotli bit refill reads a u32
2026-11-01 19:51:01 -06:00
4DBug
688503fb2d
audio perf: type annotations (lint baseline)
2026-11-01 19:50:56 -06:00
4DBug
dbca9d5670
perf: zstd sequence extra bits and state updates read inline
2026-11-01 19:49:51 -06:00
4DBug
0e0b213a80
merge ws/idtech: UDMF (codecs/model/DoomMap), Doom 3 / Quake 4 .map + .proc, Wolf3D VSWAP + GAMEMAPS, codecs/text/Lexer
2026-11-01 19:48:30 -06:00
4DBug
4eca395b00
perf: CRC-64/XZ slice-by-4
2026-11-01 19:48:05 -06:00
4DBug
e100366cb8
merge ws/source: VBSP v19-21, VMF, KeyValues / data/vdf, codecs/model/Displacement (with ws/quake's Brush / Patch / Miptex)
2026-11-01 19:46:56 -06:00
4DBug
5b4ee7f937
perf: slice-by-8 MSB-first CRC-32 (Crc32.msb) for Ogg pages and bzip2 blocks; bzip2 checks each block's CRC over its output at once and moves long MTF shifts with table.move
2026-11-01 19:46:46 -06:00
4DBug
a2cd103674
audio perf: ALAC integer divisions
2026-11-01 19:45:14 -06:00
4DBug
738b881349
audio perf: Ogg page CRC slice-by-4, Opus comb filter index offsets
2026-11-01 19:44:18 -06:00
4DBug
5e71837637
audio perf: range decoder skips the normalize call when not needed, Opus single-stream block copy, AudioOps peak branch-free
2026-11-01 19:42:40 -06:00
4DBug
903e239a0e
perf(image): VP8L literal symbols inline, cross-colour identity tiles skipped, T / TR / TL predictors and SWAR addPixels; JPEG IDCT 5x5 path, gray / 4:4:4 colour fast paths; QOI index as tables; TGA rows without per-pixel div/mod; BC7 / BC6H bit reads from a word table; bench_image: bcn / exr
2026-11-01 19:41:47 -06:00
4DBug
64b0c75a53
audio perf: SoundFont voice loop split on the filter, loop wrap without the isLooping test
2026-11-01 19:35:08 -06:00
4DBug
3905426eff
audio perf: Tracker mixer fast path for filtered mono voices
2026-11-01 19:33:29 -06:00
4DBug
ddc5dd101f
perf: inflate copies matches of up to 8 bytes with two u32 moves
2026-11-01 19:31:20 -06:00
4DBug
0d05130526
audio perf: Tracker mixer fast path for mono interpolated voices (after the ramp, unchecked while in range)
2026-11-01 19:31:09 -06:00
4DBug
37aa29d03e
merge ws/quake (codecs/model/Brush for model/t3d)
2026-11-01 19:26:29 -06:00
4DBug
8f26e32a71
model/godot + data/tres + codecs/text/GodotVariant: Godot text scenes (.tscn / .escn) read + write against Godot 4's loader, .tres resources as data
...
docs/STYLE.md: the layout block lists codecs/text/GodotVariant (DOCS lint).
2026-11-01 19:25:15 -06:00
4DBug
c19a68dfae
merge ws/sourcemdl: Source MDL v44-49 (+vvd/vtx/phy/ani, flexes, animations), VMT materials, codecs/model/SourceAnim
2026-11-01 19:25:04 -06:00
4DBug
8b07f26666
audio perf: FLAC crc16 slice-by-4, LPC / rice integer division, MP3 antialias unrolled
2026-11-01 19:25:00 -06:00
4DBug
9855a7edd6
perf(image): JPEG fused YCbCr upsampling/colour (8-bit), IDCT DC-only / 4x4 paths from per-block nonzero extent, progressive refine skips zero tails; PNG Paeth table + SWAR sub/avg, rgb8 convert, encoder filter costs by table; GIF palette table + opaque draw copy; WebP fancy upsampler inlined; ImageOps 8-bit RGBA resample, opaque premultiply skip, convert / nearest fast paths; tools/bench_image.luau
2026-11-01 19:24:15 -06:00
4DBug
4ea42f1375
audio perf: AAC codeword unpack tables + fused long-window overlap-add, MDCT inverse branch-free unfold, FFT last-pass loops
2026-11-01 19:22:33 -06:00
4DBug
097a4340b9
perf: deflate compressor 1.5x (same output): 4-byte match compares, counted chain walk, hoisted filter bytes, inline hash inserts, symbols emitted through a local 16-bit accumulator
2026-11-01 19:19:57 -06:00
4DBug
175ca9e823
archive/wad2, image/lmp, image/spr, data/q3shader, data/q3skin
...
WAD2 / WAD3 with miptex / qpic / conchars / font / palette images and addImage; Quake .lmp pictures, palette and
colormap (palette never embedded); Quake / Half-Life / SPR32 sprites with frame groups; Quake III shader scripts and
.skin files. Miptex gains qpic decode / encode and palette mapping; Pixels.keyed keeps the key colour (alpha 0).
2026-11-01 19:17:00 -06:00
4DBug
59c2438ca1
audio perf: compat math.sign branch-free (WavPack on LuaJIT 1.7-2x), Opus MDCT running indices, SILK FIR12 rows, Vorbis residue / window / overlap-add loops without per-sample branches
2026-11-01 19:16:18 -06:00
4DBug
e4840b719b
model/vmf: Hammer VMF read and write (Brush solids with Valve 220 axes, displacements, entities, cameras, visgroups, byte-exact write back, document builders); KeyValues: escapes = "quotes", bare / flat block layout for writing
2026-11-01 19:15:54 -06:00
4DBug
3320339507
perf: F.detect: the extension's format scoring 1 returns at once (65x with a name), archive/br's trial-decode sniff runs last and only when it could still win; mpegts sniff finds sync bytes with string.find; inflate reuses its dynamic-table scratch buffers
2026-11-01 19:14:53 -06:00
4DBug
11b7f89dab
perf: JSON decode skips whitespace without a pattern call when there is none; JSON encode inlines output appends and caches indent strings
2026-11-01 19:11:09 -06:00
4DBug
7947dd7f3b
perf: XML encode (name cache, escape fast path, indent cache, no key list for attribute-less elements), Types.object shares one empty key list until set, rbxm column type check
2026-11-01 19:07:41 -06:00
4DBug
051aca5b74
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
2026-11-01 19:00:38 -06:00
4DBug
0ec772ee30
perf: rbxmx / XML decode 2.5x: Types.object keeps the key order in the object's own metatable (no global weak map insert), XML fast paths for plain attributes / text / end tags, utf8.len validation, rbxmx components read in order
2026-11-01 19:00:12 -06:00
4DBug
c30e8618fc
codecs/model/Displacement: Source displacement surfaces (CCoreDispInfo grid, normals, triangles); model/vbsp uses it
...
STYLE.md: Displacement listed in the layout block and the section 2a table.
2026-11-01 18:59:58 -06:00
4DBug
9efeea304e
merge ws/quake (codecs/model/Brush, Patch, Miptex)
2026-11-01 18:57:46 -06:00
4DBug
4bd59a30c8
merge ws/quake (codecs/model/Brush, codecs/model/Patch, model/map) for model/d3map
2026-11-01 18:55:23 -06:00
4DBug
158fa3d3f0
perf: Adler-32 by 88-byte SWAR blocks (2.4x interpreted); inflate tables carry length / distance base and extra bits; tools/bench_core.luau
2026-11-01 18:49:31 -06:00
4DBug
d8212c6839
merge ws/source (codecs/text/KeyValues for .vmt materials)
2026-11-01 18:46:27 -06:00
4DBug
5ad934565d
codecs/model/Brush, codecs/model/Patch, codecs/image/Miptex; Pixels palette helpers
...
Brush: plane brushes -> polygons (qbsp-style clipping), Quake standard / Valve 220 / brush-primitive projection,
optional coplanar merge and CSG hull; tested against ericw-tools qbsp -nofill (area per plane, texels per corner).
Patch: Bezier control grids moved out of model/bsp/Quake3, per-axis subdivisions (patchDef2 / patchDef3), normals.
Miptex: Quake / GoldSrc miptex decode / encode and the WAD2 / WAD3 directory (model/bsp uses it now).
Pixels: grey, keyed, colorList, colormap, paletteBytes. STYLE: layout block and 2a table list the new modules.
2026-11-01 18:40:29 -06:00
4DBug
1c79609ecb
codecs/text/KeyValues: Valve KeyValues text (conditions, #include / #base, duplicates, escapes, entity lump) and binary; data/vdf over it
...
STYLE.md: KeyValues listed in the layout block and the section 2a table.
2026-11-01 18:35:33 -06:00
4DBug
c7e0639913
model/sourcemdl: Source MDL v44-49 with .vvd / .vtx / .phy / .ani (WIP, no tests yet); codecs/model/SourceAnim shared with model/mdl's GoldSrc animation values
2026-11-01 18:34:50 -06:00
4DBug
7d4e0381fe
codecs/model/DoomMap: the Doom map-to-Scene builder moved out of archive/wad, plus a UDMF 1.1 TEXTMAP parser (fields kept, namespace flag bits); Wad.map loads UDMF maps; model/udmf for a standalone TEXTMAP; codecs/text/Lexer (C-style tokens for id Tech / UDMF text)
...
STYLE.md: layout block and the 2a table list DoomMap and Lexer. tests/archive/wad: the UDMF stub map now loads (empty) instead of UNSUPPORTED.
2026-11-01 18:33:24 -06:00
4DBug
9e7d159af8
audio/mpc: newV split in two halves (newVEven, newVOdd): as one function its native lowering failed register allocation and it ran interpreted
2026-11-01 18:20:23 -06:00