0.25.0 RELEASE NOTES
Fizlet 0.25.0
By Chris Cooley ↗ · · CHANGELOG.md ↗
- Site: Daily (
/gallery/) under All is one flat list, strictly newest first. It was in theme sections, so the same piece sat on top and a new one was hard to find. Now a Daily page with All on lists its cards by date, then by gallery number for same-day pieces, with no theme heads; a theme chip groups the page (that theme's head, over only its cards,#theme-<id>in the address), a second press or All flattens it again (no hash). Every card keeps its stickers (Winner, New/Approved, Hero, Hi-Fi); only approved entries show, as before. The Hi-Fi page (a lane filter) stays in theme sections. No layout shift from the change (CLS on arrival, measured: 0 at 1440, at most 0.0001 at 390). Test:tests/site.mjs(the first card on/gallery/is the newest approved entry; no group heads under All; a chip shows its group; All flattens). @fzlt/core/drive:state,save(dst)andload(src): roll a car back and replay it bit for bit (rollback netcode). Everything the model carries from step to step (and its read-outs:pos,rot,vel,input, per wheelcomp,press,spin,contact,wheel, the spring and spin memories) now lives in oneArrayBuffer;stateis aUint8Arrayover all of it (whole doubles, the model's state first, sonew Float64Array(v.landing.buffer)still reads yaw at 0).save(dst)copies it out,load(src)puts it back (into the same car or a twin made with the same options); neither allocates. A game no longer has to catch a car's typed arrays as they are made (Dune Hop swapped the global constructors to do it). Test: step 200, save, step 300, load, step 300 again: the same bytes (car and bike, long travel), and into a twin; save + load 200,000 times, 0 young GCs. The defaults' path is unchanged (the hash test). drive 5,118 → 5,260 B gz (budget 5,312).@fzlt/core/diorama:behindreads the side along the ray from the eye. It used the camera's forward axis, which is right only for a parent in the middle of the picture; off to one side (a close camera, a car that is not the one followed) a wheel near the cut-over got the wrong side (Dune Hop: a far hub cap over a side pod). Now the wheel's place across its parent is compared with the ray from the eye to the parent. Size 6,472 → 6,479 B gz (budget 6,528). Test: thebehindtest also runs with the car off to one side of a close camera, where the axis and the ray disagree on some wheels; it fails on the axis rule.@fzlt/core/diorama:behind, a layer drop on the far side of the parent (wheels that stay behind the body). Layers order a cluster's parts before depth, so a car whose wheels sit on the layer above its body drew its far-side wheels over the body at every heading (Dune Hop 0.2.2: a far rear tyre over the roll cage, a far front tyre over the seat, worst in a turn or a drift). A new option on any object,behind: n(live, likelayer): while its place across its parent (posx and z, turned with the parent) points away from the camera, it and its children drawnlayers lower. Hubs at the body's layer with tyres one above andbehind: 1.5draw over the body on the near side and under it on the far side, at any heading, pitch, roll, steer and view. Default 0: no change. Zero allocation per draw (the existing test). Size 6,360 → 6,472 B gz (budget 6,464 → 6,528). Test:tests/diorama.test.mjs(four wheels round a body at 16 headings × 5 camera yaws, pitched and level: each near wheel paints after every body face, each far one before; withbehind0 they all paint over it again).