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
This commit is contained in:
1 parent
62fcfa7e93
commit
45f6cbc7a8
11 files changed
+1610
-1571
No files matched your search
@@ -44,9 +44,10 @@ as `F`, and its input files as variables such as `pngBytes` (a buffer) or `srtTe
|
||||
**Roblox.** Two builds, both committed (rebuilt by `python3 -I tools/build.py roblox`):
|
||||
|
||||
- [`build/Rosetta.rbxm`](../../build/Rosetta.rbxm), the native build: a ModuleScript `Rosetta` with child
|
||||
ModuleScripts, the chunks (Core, one per heavy codec such as Mpeg2, H264, Jpeg, Opus, and the rest by folder). A
|
||||
chunk is required the first time one of its modules is, so an Actor that only decodes MPEG-1 and JPEG loads only
|
||||
those chunks and Core. Roblox compiles native code per ModuleScript within a budget per module; each chunk stays
|
||||
ModuleScripts, the chunks (Core; Detect, the sniffs `F.detect` runs; one per heavy codec such as Mpeg2, H264, Jpeg,
|
||||
Opus; and one per format folder, codec or container, small neighbours packed together). A chunk is required the
|
||||
first time one of its modules is, so an Actor that only decodes MPEG-1 and JPEG loads only those chunks and Core,
|
||||
and `F.detect` compiles Detect alone. Roblox compiles native code per ModuleScript within a budget per module; each chunk stays
|
||||
well under it (tools/bundle.py checks it). Insert the file, or mount it with Rojo
|
||||
(`"Rosetta": { "$path": "rosetta/build/Rosetta.rbxm" }`; this repository's `default.project.json` does, so
|
||||
`rojo build -o Rosetta.rbxm` or `rojo serve` works from here). [`build/Rosetta.rbxmx`](../../build/Rosetta.rbxmx)
|
||||
|
||||
Reference in new issue
Block a user