Tl.Bake
2.0.1
See the version list below for details.
dotnet tool install --global Tl.Bake --version 2.0.1
dotnet new tool-manifest
dotnet tool install --local Tl.Bake --version 2.0.1
#tool dotnet:?package=Tl.Bake&version=2.0.1
nuke :add-package Tl.Bake --version 2.0.1
Tl.Bake
The tlb command (package Tl.Bake) compiles designer-authored timeline JSON into canonical TLB1 binary assets for the tl runtime. The command was named tlbake before 1.0.0-alpha.8. The output is TLB1 v3 and the loader accepts v3 only; assets baked by earlier alphas (v1, or the v2 layout shipped through 1.0.0-alpha.8) are rejected at load with a diagnostic, so update the tool and re-bake.
dotnet tool install --global Tl.Bake --prerelease --add-source <directory containing the Tl.Bake nupkg>
tlb boss.json boss.tlb --assembly MyGame.Domain.dll
tlb boss.json # output defaults to boss.tlb; assembly discovered from the JSON's types
tlb # exactly one *.json in the directory
tlb --json --assembly MyGame.Domain.dll
tlb --watch boss.json boss.tlb --assembly MyGame.Domain.dll
tlb --strip boss.tlb boss.ship.tlb
tlb --report boss.tlb
- Deterministic: identical inputs produce byte-identical assets.
--assemblynames the assemblies containing the track/clip structs; the assembly name must match the assembly that ships those types at runtime (pair keys hash assembly-qualified names). Explicit--assemblyalways wins and skips discovery.- Lazy forms:
tlb boss.jsondefaults the output toboss.tlbbeside the input and discovers the assembly by sweeping DLLs under the launch directory for one defining every(namespace, type)pair the JSON references; baretlbrequires exactly one*.jsonin the directory.tlb.dbin the launch directory caches the last resolution per JSON, is machine-local (gitignored), and is rewritten whenever it goes stale. --jsonprints the authorable(track, clip)pairs the assemblies expose, with member names, so authoring tools can fill type lists automatically.- TLB1 v3 stores each pair's unique track and clip values once in per-pair
value pools and references them from frame slots by fixed-width
ushortindex in 24 B, 8-aligned slot rows (at most 65,535 unique values per pool).--reportaudits the split, includingpool/<pair>/track-unique-count,pool/<pair>/clip-unique-count, and the totalspool/unique-countandpool/value-bytes. --watchre-bakes on save: it bakes every input once at start, then rebuilds only files whose content hash changed, printing JSON events (ready,rebuild,skip,diagnostic). A directory input watches every*.jsonin it;--debounce <ms>(default 100) coalesces editor saves.--cache <dir>: content-keyed cache; hits preserve timestamps, failures are never cached.- Install the matching
Tl.CSharppackage for the runtime and the build-time consumer binding. Unity consumes thecom.iafahim.tlUPM package from the tl.unity repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0-preview.1 | 60 | 11/6/2026 |
| 3.0.0 | 278 | 10/3/2026 |
| 2.0.1 | 168 | 10/1/2026 |
| 2.0.0 | 104 | 10/1/2026 |
| 1.3.0 | 122 | 9/28/2026 |
| 1.2.0 | 129 | 9/24/2026 |
| 1.1.0 | 131 | 9/21/2026 |
| 1.0.0 | 131 | 9/21/2026 |
| 1.0.0-alpha.10 | 239 | 9/19/2026 |
| 1.0.0-alpha.9 | 108 | 9/18/2026 |
| 1.0.0-alpha.8 | 107 | 9/17/2026 |
| 1.0.0-alpha.7 | 131 | 9/17/2026 |
| 1.0.0-alpha.6 | 118 | 9/14/2026 |
| 1.0.0-alpha.5 | 126 | 9/13/2026 |
v2.0.0: consumer vocabulary rename with no compatibility aliases: OnMemo is Fold, OnActive is ExecuteActive, ApplyLanes is ApplyChunk, and the (effects, inputs) Apply overload folded into the ColumnSet form — Apply(ids, clocks, forward, fx) for one effect column, Apply(ids, clocks, forward, in ColumnSet) for any columns, ApplyChunk(ids, clocks, forward, fx0, fx1) for two typed fold lanes. Fold semantics, caps, and playback receipts are unchanged. v1.0.0: first complete stable release. API settlement with no compatibility aliases: the consumer method Execute is now OnActive, Step is now Advance, and the typed Apply/Advance overloads live on the Timeline pair surface (the Lane facade is removed). Playback floors receipted on every host shape and CPU tier: shared-clock crowds 0.08 ns/row, per-entity calls 0.80 ns forward, non-AVX2 tiers 0.48 ns via the kernel tier ladder and flat record arena, bit-exact across AVX2, Vector128, and scalar. Bakes dispatch by discovered signature through the IBake marker; the live playground handles arbitrary valid authoring. Pair-typed folding is pair-isolated: Timeline<TTrack,TClip> measures and plays only its own pair, never another pair's consumers. OnActive with no gameplay parameters registers a dispatch-only consumer, fired per row at the position's tick by the no-output Apply(indices, positions, forward) overload.