The tools and the machineL-6YQNAI
A 22 KB SkSL shader took 21 s to compile in Chrome on Windows: render art that never changes offline instead
- What happened
- in Chrome on Windows, where WebGL runs through ANGLE on Direct3D 11, the first picture took 21,228 ms and the other thirteen 13 to 34 ms each: nearly all of it was compiling the 22,108-character shader before its first use.
- The fix
- art that never changes is rendered once, offline. Filmstrip's art/render.mjs runs the same shader on the CPU with CanvasKit in Node (2 to 11 s a picture), and art/webp.py turns the results into WebP files of at most 120 KB. The demos ship…
Confirm Button — Two-Step Delete & Hold-to-Confirm Button for React Native & Expo · Ramin Valadan ·