@motionscript/renderer 0.1.0-alpha.9 → 0.1.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @motionscript/renderer
2
2
 
3
+ ## 0.1.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 6b89575: The renderer's prewarm now also builds the drawing pipelines for the canvas format, so their shader compile overlaps a host's start-up instead of delaying its first frame.
8
+ - e279864: A 3D scene's surface and image textures stay their own across frames. A frame's image ids are given out in the order they are met, so when a scene's set of textures changed size (a token appearing, a plane entering) the scene's id moved on and its old id became a surface, while the renderer kept the old scene and drew it into that surface: a texture showed a picture of the whole scene, and sampling the target being drawn raised a WebGPU validation error. The renderer now drops a scene whose id becomes something else, and binds every image and surface a scene uses to the current frame's id on every sync.
9
+ - e9db554: An asset is downloaded and decoded once while it is loading, however many ask for it: the weights of one font family share its files (each weight used to fetch the whole family), two draws of one image or video share one decode, and every session, still and export on a page shares one request per source (`loadAssetBytes`, which the audio mix now goes through as well). A load that fails is asked for again next time.
10
+ - 7cd4e53: A Text with a Write On reveal (`start`/`end` short of the whole string) or styled `runs` drew nothing at all: the renderer ignored the text's pieces while core left their painting to them. Each piece now draws with its own fill and stroke, the unrevealed characters held in place but clear, so a Write On types the text on character by character.
11
+ - Updated dependencies [3630b74]
12
+ - Updated dependencies [1c43a37]
13
+ - Updated dependencies [e279864]
14
+ - @motionscript/core@0.1.1-alpha.0
15
+
16
+ ## 0.1.0
17
+
18
+ ### Patch Changes
19
+
20
+ - d2241c3: Drawing is faster with the same output: rects and ellipses build their outlines without going through an SVG path string, arcs convert without allocating, and a colour string already parsed is not parsed again (until the theme changes). On a scene of 10,000 ellipses a frame the renderer's per-frame work drops by about 15%.
21
+ - 2026625: Plain rects and ellipses (a solid fill without a shadow, or a solid, undashed stroke round a rect or a circle) now draw as the renderer's own shapes instead of as paths: a scene of many small moving shapes renders over twice as fast. Their antialiased edges come out marginally different (a few levels on edge pixels, nothing visible at normal size); interiors and axis-aligned edges are unchanged.
22
+
23
+ ## 0.1.0-alpha.10
24
+
25
+ ### Patch Changes
26
+
27
+ - d2241c3: Drawing is faster with the same output: rects and ellipses build their outlines without going through an SVG path string, arcs convert without allocating, and a colour string already parsed is not parsed again (until the theme changes). On a scene of 10,000 ellipses a frame the renderer's per-frame work drops by about 15%.
28
+ - 2026625: Plain rects and ellipses (a solid fill without a shadow, or a solid, undashed stroke round a rect or a circle) now draw as the renderer's own shapes instead of as paths: a scene of many small moving shapes renders over twice as fast. Their antialiased edges come out marginally different (a few levels on edge pixels, nothing visible at normal size); interiors and axis-aligned edges are unchanged.
29
+
3
30
  ## 0.1.0-alpha.9
4
31
 
5
32
  ## 0.1.0-alpha.8
package/README.md CHANGED
@@ -71,7 +71,10 @@ defaults to beside the module.
71
71
  - `WgpuStorageAdapter` decodes images to `ImageBitmap`s, video frames with
72
72
  mediabunny, and hands font bytes to ms-text. Bytes come through
73
73
  `loadBytes` (a plain `fetch` by default), which a platform points at its own
74
- asset store.
74
+ asset store. A load in flight is joined, never repeated: per adapter by asset
75
+ (a font by family, since every weight registers the family's files) and
76
+ page-wide by source, so the sessions, stills and exports asking for one file
77
+ while it arrives share one download (`sharedLoader`).
75
78
  - `WgpuSurfaceContext` is the adapter's render context mounted on a canvas,
76
79
  with the preview knobs a host sets (`pixelRatio`, `view`, `frame`,
77
80
  `clipToFrame`, `frameBackground`). Mounting is asynchronous (WebGPU device