100 Commits
Author SHA1 Message Date
4DBug 3de6cd81cd merge ws/blendparent 2026-11-03 05:26:06 -06:00
4DBug 2c2a52e4b3 model/blend: vertex and triangle parents, parent_type / parent_bone / parent_vertices / matrix_parent_inverse, widget flags, modifier stacks with Blender's type names and the armature modifier's settings 2026-11-03 04:57:53 -06:00
4DBug a9874e9f54 merge ws/rbxchunks2 2026-11-03 03:32:28 -06:00
4DBug 91371121d9 build: regenerate the LuaJIT bundle 2026-11-03 03:20:41 -06:00
4DBug cfa137730b merge ws/blendmat 2026-11-03 02:52:28 -06:00
4DBug 3f0a0df9c7 H.264: Cabac / Cavlc resolved once per process (upvalue), not per slice; AAC: SBR / PS required with the first SBR element (AacSbr chunk: an AAC-LC open compiles 55 KB, not 203 KB); m4a: Alac required for an ALAC track; chunked build: Vp8 / Vp8L and the Opus CELT encoder in chunks of their own; load check: AAC-LC and HE-AACv2 m4a opens 2026-11-03 02:51:47 -06:00
4DBug 05a44e1193 chunked build: one chunk per unit (no neighbour packing: host/Roblox alone, PNG no longer pulls Blend / Cpio); H.264 entropy coders in chunks of their own (Decoder requires CABAC or CAVLC on the first slice; Cabac / Cavlc tables out of Tables); Brotli dictionary in Brotli/Dictionary (its own chunk, on the first dictionary reference); load check: unknown detect, PNG load, H.264 CAVLC / CABAC open each require exactly their chunks 2026-11-03 02:28:48 -06:00
4DBug 3a56a66ac1 model/blend: material inputs traced through reroutes, mix, colour adjustments, colour ramps and node groups; unresolved links flagged with neutral values; roughness / metallic image textures with their channel; vertex colours; bump; UDIM images with the <UDIM> token and their tiles 2026-11-03 02:22:45 -06:00
4DBug 8fd5a4c3f2 merge ws/rbxchunks 2026-11-03 02:05:59 -06:00
4DBug 45f6cbc7a8 chunked build: detect check (F.detect on common headers loads the Detect chunk only, Detect under 160 KB); sniff extraction skips table and type keys (Aac.adts no longer pulls core/Bits into Detect); guide: chunk layout 2026-11-03 01:54:24 -06:00
4DBug 62fcfa7e93 merge master 2026-11-03 01:25:32 -06:00
4DBug 5b2605f514 root: Video, AudioWrap, Rbx, ImageOps required on first use (F.Rbx, F.video.codecs through __index); chunked build: one chunk per unit (format folder, codec, container), small family neighbours packed to 32 KB; Sniffs copies typed as in their module 2026-11-03 01:24:44 -06:00
4DBug 3468bfb49a Sniffs: fields the sniffs read from codecs / containers (Aac.adts, IsoBmff.sniff, Zstd.MAGIC, ...) copied once onto shared proxies, so detection loads no codec chunk; chunked build: a Detect chunk (Sniffs + what it requires); Brotli: static dictionary inflated on first reference (a trial decode no longer loads Deflate) 2026-11-03 01:19:07 -06:00
4DBug 6b6a1501df model/blend: Anim.split type annotation 2026-11-03 01:14:12 -06:00
4DBug d64adc978f model/blend: bone / path split ends at the first unescaped '"]' (constraint paths kept whole in path) 2026-11-03 00:57:28 -06:00
4DBug 888ff212c3 merge ws/blendrig3 2026-11-03 00:45:25 -06:00
4DBug a1a3971207 model/blend: drivers (object, object data, shape keys: variables, targets, keys, f-curve modifiers) and custom properties (objects, pose bones, bones) as data; f-curve modifiers on raw action curves; limit rotation use_legacy_behavior; 5.0 bone hide driver move for older files 2026-11-03 00:16:12 -06:00
4DBug b4e1ffebd4 merge ws/blendrig2 2026-11-02 23:58:36 -06:00
4DBug f1d98ec904 merge ws/downscale 2026-11-02 23:41:47 -06:00
4DBug 8d7f3e4d34 png / jpeg: maxSide + yield docs (guide, API) and tested snippet; jpeg destuff calls the yield hook per 64 KB; F.model.loadTextures passes maxSide / yield / yieldRows / maxPixels to the image decoders; bench lines (4096^2 16-bit PNG full vs maxSide 1024, JPEG 1/4); build/ regenerated
init.luau (small, backward compatible): loadTextures forwards those four options to F.load.
2026-11-02 23:39:52 -06:00
4DBug 56e1449b97 model/blend: action / transform / stretch to / armature / floor / limit distance / track to / locked track constraint fields, copy scale add / uniform; bone inheritance and b-bone fields; stored pose basis; every action raw in meta.blend.actions (first layer / strip / channel bag for layered actions) 2026-11-02 23:18:18 -06:00
4DBug 64a2553c0c png: tests for maxSide / reduce (every PngSuite and generated image, APNG frames, a 2048x2048 16-bit fixture), yield; paeth for 16-bit RGB rows; jpeg: opts.maxSide (scale 1..8) and opts.yield reach the codec; Deflate.zlibStream tests 2026-11-02 23:01:59 -06:00
4DBug e3e6273799 png: row-streaming decode through a streaming inflate (no whole inflated buffer, no IDAT concatenation); opts.maxSide / reduce (power-of-two box reduction), opts.yield / yieldRows
codecs/compress/Deflate: Inflate.raw takes an optional sink (output window: 32 KB history + a chunk) and feed (input
window over split ranges); Deflate.zlibStream(buf, ranges, sink, window?). The existing entry points are unchanged
(bench: no regression under luau -O2 or LuaJIT).
2026-11-02 22:48:27 -06:00
4DBug d1e2e25bdf merge ws/videoctl 2026-11-02 22:46:27 -06:00
4DBug 1eb3055df2 merge ws/blendrig 2026-11-02 22:44:57 -06:00
4DBug f7c8abc1b4 merge master into ws/videoctl 2026-11-02 22:17:23 -06:00
4DBug f9e2e6a455 merge master 2026-11-02 22:17:13 -06:00
4DBug 7ea8498f78 video: yields before the rgba / scale conversion and between a new H.264 picture's planes; build/ regenerated 2026-11-02 22:05:24 -06:00
4DBug 89b363af78 merge ws/lazydetect 2026-11-02 21:59:42 -06:00
4DBug e05392ee8e api: lazy format detection (Sniffs.luau): F.detect loads no format module
tools/gen_registry.py now also writes src/Rosetta/Sniffs.luau: each format's sniff copied
(tools/sniff_extract.py) with the top-level locals, types and load-time loops it reaches;
requires outside core/ become proxies that require on first field access. 198 of 199
sniffs are copied (model/fbx reads Binary.MAGIC at load time: its module sniffs).
Registry entries gain sniff (0 copy, 1 copy reaching a codec / container, 2 module) and
variant (the module has variant(r)).

init.luau detect: the extension's formats first, then by sniff cost and registry order;
a sniff runs only while its cap (1, or LATE) could still win, ties to registry order, so
results equal the eager path. F.detect loads the winner only when it has variant().

tests/detect.luau: every copied sniff against its module's on samples of every fixture
module (tools/fixtures/detect.py), scores within 0..1, and F.detect against the eager
reference with no name, the right / wrong / unknown extension and per category.

Outside init / Registry / gen_registry: tools/fixtures.py (LAST generators run after
the others and rerun when their outputs change), tools/lint_rules.py (Sniffs is api
layer, skipped by DUP), docs/STYLE.md and docs/API.md notes, build/ regenerated.
2026-11-02 21:58:10 -06:00
4DBug 9a15a71b4a model/blend: rig data docs section and snippet (docs_blend: control bone, collection, damped track, widget), header; type fixes; rebuild 2026-11-02 21:57:10 -06:00
4DBug 4231149f3e model/gltf: mesh.extras.targetNames from and to glTF mesh extras; ops/MeshOps.merge: targets = true concatenates morph targets by name 2026-11-02 21:53:22 -06:00
4DBug 835ddde65b model/blend: rig data (bone head / tail / roll, deform, collections and layers, colours, custom shapes and widgets, pose locks and IK settings, constraint stacks), shape key fields and targetNames, relative keys and vertex groups in morph targets, muted keys, loose edges as lines 2026-11-02 21:49:19 -06:00
4DBug 0b2d8774b9 video: frame reuse (opts.reuse, v:release, decoder:release) and the control tests
- codecs/video/Video/Pool: Images a decoder made, handed back and reused (only its own; fresh meta)
- H264 / Vp8 / Mpeg2 output Images come from a Pool; H264 / Vp8 decoder:release, VideoCodecDecoder.release
- Video.open: opts.reuse recycles the previous frame's Image at the next nextFrame; v:release(frame); the yuv Image
  under an rgba / scaled frame (never seen by the caller) goes back to the codec at once
- tests/video/control.luau: yield hook (identical frames, H.264 / VP8 / MPEG-1, conversions), disposable packets in
  every container, skipDisposable bit-exact at the right index, reuse identical and recycled, fuzz
- docs/guide/video.md: Skipping and reusing frames; docs/API.md
2026-11-02 21:46:59 -06:00
4DBug 15e0dfcc86 video: yield points in H.264 picture setup and VP8 rows, rgba / scale conversion; disposable packets and skipDisposable
- H264: picture and grid allocations split between yield calls (a 1080p picture's tables are 1.6 M slots)
- Vp8: Decode.decodeFrame hook three times per macroblock row and once per loop filter row; Options.yield
- Yuv.toRgba / Yuv.scale: optional hook every 16 rows; imageToRgba / imageScale take an out Image and the hook
- Video.open passes opts.yield to the conversions, the VP8 and MPEG-1/2 decoders
- codecs/video/Video/Disposable: H.264 nal_ref_idc 0 (avcC length-prefixed / Annex B), VP8 frames refreshing no
  reference; containers/Demux sets packet.disposable for h264 / vp8 tracks; Video.isDisposable(track, packet)
- skipDisposable: H.264 keeps skipped pictures in output order (pts pool / POC bookkeeping), VP8 applies the header
  state then skips; receive() returns false for a skipped picture, VideoFrame.index counts it
- Types: Packet.disposable, VideoCodecDecoder.receive may return false
- tools/fixtures/videoctl.py: VP8 two temporal layers (IVF + WebM)
2026-11-02 21:35:33 -06:00
4DBug 03e7b21eca merge ws/perf-jit 2026-11-02 21:28:49 -06:00
4DBug a87ad99410 perf (LuaJIT): stop cross-codec trace pollution in long mixed processes; bench.sh mixed
- compat math.clamp is vararg: LuaJIT never starts a root trace at a vararg function but still inlines it. The plain
  shim, called from interpreted code, collected aborted root traces until it was blacklisted, after which every trace
  through it aborted: in one process, png (or anything earlier) left jpeg / webp / tiff / ImageOps 2-10x slower.
- Dct.fdctQuantize: branch-free quantiser and a divisor table (q * 8) from Jpeg.Encode; the sign branch among the column
  pass's live values made LuaJIT retry side traces it could not compile (register coalescing) forever. Also faster
  in luau -O2 (~5%) and native (~10%). Outputs unchanged.
- tools/bench_mixed.luau + bash tools/bench.sh mixed: core, audio, video, image in one LuaJIT process against the
  per-codec benches, marking lines more than 1.3x slower mixed.
2026-11-02 21:12:36 -06:00
4DBug dde6be117c merge ws/heaac 2026-11-02 01:32:15 -06:00
4DBug e993458d36 codecs/audio/Aac/SbrDct: 64-point transforms as two 16-point halves (Roblox native register allocation) 2026-11-02 01:13:28 -06:00
4DBug 10f70c3a8a codecs/audio/Aac/SbrQmf: fused analysis fold; comment tidy 2026-11-02 00:43:03 -06:00
4DBug 028bee3f59 docs/guide/audio: HE-AAC section and opts.sbr; audio/caf: SBR only at the described rate 2026-11-02 00:40:25 -06:00
4DBug 9a4cacc40b codecs/audio/Aac: probe parses only, two frames for AAC-LC streams 2026-11-02 00:38:29 -06:00
4DBug a081e7d437 codecs/audio/Aac/Ps: shared ring positions, symmetric hybrid filter, silent bands skipped 2026-11-02 00:36:01 -06:00
4DBug 95efdd7e3e codecs/audio/Aac: faster SBR windows and HF assembly 2026-11-02 00:33:56 -06:00
4DBug c291312f8a codecs/audio/Aac/SbrDct: straight-line DCT-IV / DST-IV for the SBR QMF banks; HE-AAC bench lines 2026-11-02 00:31:45 -06:00
4DBug 778502c54d tests: HE-AAC against ffmpeg (ADTS, M4A explicit / implicit, TS, MP4, MKV; mono, stereo, 5.1, PS) 2026-11-02 00:25:02 -06:00
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 c0766614bc build: regenerate bundles after the audio perf pass 2026-11-01 20:38:20 -06:00
4DBug 8a706a993c bsp, map: meta.unit = 0.0254 (Quake units are inches), as vbsp/vmf 2026-11-01 20:35:47 -06:00
4DBug d5276798c3 merge ws/perf-image 2026-11-01 20:33:57 -06:00
4DBug c93ef2fa6f build: regenerate bundles after the core perf pass 2026-11-01 20:30:07 -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 f9c95a357b tests/model/bsp: every Quake 1 / Half-Life material links its texture 2026-11-01 20:12:43 -06:00
4DBug 351f6620dd model/bsp: Quake 1 / Half-Life / Quake II materials link their texture (baseColorTexture), as Quake III does 2026-11-01 20:10:47 -06:00
4DBug 58df9e8a3a merge ws/quake 2026-11-01 20:08:48 -06:00
4DBug e6d78a3033 docs/guide: index lists Godot, T3D, ASE, Unity packages, .tres, LDtk, Ogmo 2026-11-01 20:08:45 -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 d339f1e081 types: Types.object metatable reads typed any; lint baseline 91 2026-11-01 19:59:50 -06:00
4DBug 6fab0d3dca bench: tools/bench.sh core [filter] runs tools/bench_core.luau under luau -O2, --codegen and LuaJIT 2026-11-01 19:58:07 -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 11d0df9418 merge ws/blend 2026-11-01 19:48:59 -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 be397639ea model/blend: comments to specs only, a type fix; build: regenerate bundles 2026-11-01 19:44:35 -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 2dac8b2a14 perf: MD5 runs its four rounds as four loops (no per-step round test) 2026-11-01 19:37:20 -06:00
4DBug cc4aa331eb build: regenerate bundles 2026-11-01 19:35:47 -06:00
4DBug 74df2ed607 bench: Godot tscn decode / encode, LDtk, ASE lines 2026-11-01 19:35:11 -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 8d305bb942 model/t3d: Unreal T3D (UE1-4) brushes through codecs/model/Brush and actors as nodes 2026-11-01 19:33:35 -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 b1d9fad454 perf: MeshOps normals / tangents accumulate without a table per triangle 2026-11-01 19:29:39 -06:00
4DBug f6c7857525 perf: OBJ encode: triangle lines built directly, number format lists hoisted 2026-11-01 19:28:03 -06:00
4DBug 08f3b1c5bd model/blend: compressed .blend sniffing (gzip peek, zstd up to 4 MB) so F.model.load finds them 2026-11-01 19:26:34 -06:00
4DBug 37aa29d03e merge ws/quake (codecs/model/Brush for model/t3d) 2026-11-01 19:26:29 -06:00
4DBug b7e96cbf34 perf: OBJ decode 1.65x: plain v / vt / vn / f lines matched in place from the text, faces fanned without temporary tables 2026-11-01 19:26:24 -06:00
4DBug 3e4170288b docs/guide/scene.md: close the Build engine snippet (merge of ws/sourcemdl) 2026-11-01 19:25:52 -06:00
4DBug 1e69799c21 docs/guide: Quake maps and BSP, WAD2 / WAD3, lmp / spr, Quake III shaders and skins; bench lines; q3skin sniff needs a path 2026-11-01 19:25:25 -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 4c3159d02d perf: base64 decode through a two-character table, one u32 write a group (5x) 2026-11-01 19:23:45 -06:00
4DBug 3c8d5e99d7 model/blend: Blender 1.6x-2.0x files (big-endian, 32-bit, TFace / MCol, IPO curves, additive dsize), easing curves, owner-scoped address lookup; containers/Blend tests; docs section; bench line 2026-11-01 19:23:28 -06:00
4DBug fe1ee676c6 model/sourcemdl: type annotations (lint type baseline back at 92); bundles regenerated 2026-11-01 19:23:12 -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