4792 Commits
Author SHA1 Message Date
waozi e681200230 Pin the dashboard to responsive previews and retained CSS sizing 2026-11-20 12:26:42 -03:00
waozi b107847a78 Make retained layouts easier to style, animate and preview 2026-11-20 12:13:01 -03:00
waozi 4dc993901f Fix ZX clock fallback and canvas regression coverage 2026-11-20 11:26:28 -03:00
waozi 9ea1567980 Add opt-in native stylesheet and layout motion 2026-11-20 01:48:13 -03:00
waozi da94e6ad6d Add modular Kryon motion and restore native ZX parity 2026-11-20 00:59:58 -03:00
waozi 458f222a19 Allocate retained tree label buffers on demand
Reserve fixed-capacity per-frame label storage only on first use. Keep borrowed label bytes stable across frame commits and avoid copying idle label arrays when the ZX engine reads tree fields.
2026-11-19 23:36:54 -03:00
waozi 9719c2869b Pin the dashboard starter to one tested Kryon package 2026-11-19 22:51:21 -03:00
waozi 43e6ea3d76 Preserve thin Cairo mesh texture edges during sampling 2026-11-19 22:45:41 -03:00
waozi 35fc05cbb7 Make native UI authoring easier with CSS, DOM widgets and previews 2026-11-19 22:05:49 -03:00
waozi 788f0151f7 Add hosted ZX software surfaces for Kryon apps
Reuse the Kryon frame, input and pixmap paths behind four typed surface bindings.
Verify the guest bundle in Ziran and the installed TaijiOS emulator.
2026-11-19 16:05:21 -03:00
waozi 452813114e Retain only the Android app viewport during route fades 2026-11-19 14:03:08 -03:00
waozi d2e537cc94 Keep animated image meshes and Android startup responsive 2026-11-19 02:03:27 -03:00
waozi a77c82bf0c Reuse linked scene shaders across room switches
Keep a bounded set of recent material programs and match their owned shader instructions across separately prepared scenes. Keep borrowed lookup pointers inside the frame and evict unused programs by last use.
2026-11-19 01:10:57 -03:00
waozi e2212c43dc Read opaque PowerVR scenes from their resolved framebuffer
Retain the resolved target in each asynchronous transfer slot until its fence signals. Skip the straight-alpha conversion draw for opaque ARMv7 PowerVR output and profile program setup, texture upload, GPU completion, pixel transfer and image publication.
2026-11-19 00:47:20 -03:00
waozi b14f4e5db1 Keep Android floating windows rendering during activity pause 2026-11-19 00:28:22 -03:00
waozi 2128587f0e Skin only referenced glTF primitive vertices 2026-11-18 19:08:46 -03:00
waozi aa637044c5 Retain Android Pixmap pictures at their drawn resolution
Probe intrinsic dimensions without decoding, then cache a premultiplied Lanczos reduction and grow it only when needed. Preserve source crops, meshes and natural dimensions.

Align the published Ziran pin for streamed asset digests and ARM fixes; improve ZX service failure diagnostics.
2026-11-18 19:04:39 -03:00
waozi 452faa27c1 Describe the texture fingerprint change without an unmeasured speed-up 2026-11-18 17:37:45 -03:00
waozi cc7bdae445 Fingerprint scene textures per pixel across four lanes
AddImageTexture hashed every byte of a picture with a dependent 64-bit
multiply, and rooms add tens of millions of texture bytes while they open
(56 MB for the Bedroom, 94 MB for the Living room). The fingerprint now
builds each four-byte pixel and runs four independent lanes, one multiply
per pixel, and still covers every byte, the size and the byte count; the
duplicate check still compares every byte before sharing a texture.
Portable code cannot read a byte buffer as words or copy it in bulk, so
the copy stays a byte loop.

The image material test adds pictures that differ in one byte or only in
shape and expects separate textures with exact copies, and an equal
picture to share the first. It runs as native source, saved IR and a
portable bundle.
2026-11-18 17:37:31 -03:00
waozi e347250890 Keep Ziran's native code cache on Android
AndroidProcessPrepare pointed TMPDIR at the app's files but left Ziran's
native cache to Ziran's own guess at the app's cache folder, which misses
secondary users and renamed processes, so Kryon apps compiled their
portable code again on every start. Unless ZIRAN_NATIVE_CACHE is set, it
now names the app's cache/ziran-native folder beside its private files.
The Android JNI host test checks the folder derived from the files path.
2026-11-18 17:37:31 -03:00
waozi 68c81f4d4b Keep smooth sheet tiles from bleeding their neighbours on Cairo
Kryon 0.6.0 moved a smooth picture drawn without a prepared smooth copy
from Cairo's good filter to its best one. That filter reaches well past
the source rectangle, so tiles cut from one sheet took in the cells around
them: Wurm's joined hedge showed light seams and failed its private UI
test. Such pictures use the good filter again; prepared smooth copies are
unchanged. A sampling test draws the black half of a black and white sheet
at half size and expects its last column to stay dark (17 of 255 bled in
with the best filter).
2026-11-18 17:07:30 -03:00
waozi a606338e49 Read the drag probe's report through the stream that read ready
The harness read `ready` with readline() on the probe's buffered stdout
and then called communicate(timeout=30), which reads the raw pipe. A drag
that ends at once, as the cancelled drag can, writes its report in the
same pipe read as `ready`, so the report sat in the buffer and the harness
saw an empty line about one run in three. It now waits for the probe and
reads the rest from the same stream; six runs in a row pass.
2026-11-18 16:21:16 -03:00
waozi 76aa168b09 Render scenes on WebGL 2 and present them as a canvas image
With KRYON_WEBGL2, web builds run the GPU scene renderer on a private
WebGL 2 canvas through the same GLES 3 calls as the native path.
SceneGpuRenderCanvas renders a scene, blits the resolved frame to that
canvas and returns it as a page texture, with no pixel readback or
upload. Native EGL rebinds its API inside MakeSceneCurrent, so the
renderer no longer repeats it, and WebGL reports that it cannot map pixel
pack buffers for asynchronous readback.
2026-11-18 16:06:21 -03:00
waozi a20dcbc66e Keep a desktop window's events flowing when input goes unread
Keys wait in SDL's queue while Kryon's input queue is full, and every
event behind them waits too. An application that stopped taking input,
such as a host reading keys another way, left 32 keys pending and lost
the wheel. Once a pending queue's head stays put across two polls, keys
go into the queue (or are dropped when it is full) instead of waiting.
Applications that take input every frame keep the waiting. A test leaves
80 key events unread behind a wheel step and expects the step.
2026-11-18 15:18:33 -03:00
waozi fe93bc1ecc Record the open check work after the 0.6.0 gate
The changelog's Unreleased entry gets its blank line back. The checks plan
lists the drag-source check that fails about one run in three and the five
text-area checks that are the slowest group in the behavior run.
2026-11-18 15:12:13 -03:00
waozi 6328315557 Decode phone AVIF pictures with the exact multi-core conversion
The avif pin moves to f5f186bb. Its bridge converts 8-bit 4:2:0 and 4:2:2
pictures across the cores with libavif's own float arithmetic, so the
strict AVIF digests still match while Jungle's phone launch loses most of
its picture conversion time. The lock changes only avif.
2026-11-18 15:10:45 -03:00
waozi 8d5d2e752a Release Kryon 0.6.0
Kryon builds with Ziran 0.7.0. Web pages scroll by the browser's pixel
wheel and select text with the mouse, and the website's Apps page plays
every published Kryon web app. Packages can supply bundle pictures on the
web and Android, native checks no longer trip over the page event bridge,
and Android scenes cache shader binaries, read frames back faster and add
large pictures in one block. The changelog section lists what users get;
VERSION follows it.
v0.6.0
2026-11-18 14:53:57 -03:00
waozi f9ef45130a Build Kryon with Ziran 0.7.0
The toolchain pin moves from 0c4465a4 to the Ziran 0.7.0 release. Its std
provides base64 for glTF scenes, which CI's hosts shard could not find on
the old pin. The lock changes only the toolchain.
2026-11-18 14:52:56 -03:00
waozi a6804dbf67 Speed up Android scene readback and active touch pacing 2026-11-18 14:52:22 -03:00
waozi b6f35a7408 Document Android's linked picture codecs
Android decodes PNG, WebP and AVIF in process with the linked codecs; other
formats use the activity's decodeBundleImage bridge, and
`make android-pictures-device-test` checks both on the USB Moto.
2026-11-18 14:22:39 -03:00
waozi 07fa2b18c2 Scroll web pages by the browser's pixel wheel and select text with the mouse
Canvas pages pass the browser's wheel distance in CSS pixels to Scroll
widgets, keeping subpixel remainders, and mouse drags select text while a
scrollbar's thumb stays draggable. Selected text copies with Ctrl+C and
shows a text cursor. The widget codec carries the two new scroll inputs.
2026-11-18 14:22:18 -03:00
waozi 994d0f02b5 Copy a scene picture's texels in one block
AddImageTexture appended each texel with VecPush, sixteen million calls
for a 2048 by 2048 picture and 17% of a phone room's launch. It now grows
the texel list once, copies the block and truncates on failure.
2026-11-18 14:20:38 -03:00
waozi 03b37b35cd Reconfigure the audio codec archives when their source moves
CMake keeps one source folder per build folder. A local override or a new
lock moves the audio package, and the MP3 and Vorbis archives then failed
to configure. Their build folders now start over when the cached source
differs.
2026-11-18 14:20:17 -03:00
waozi 4a817726ba Run every generated Go file in the layout check
The check listed the Go files it expected by name. Ziran's std math now
imports std finite, so `go run` missed finite.go and failed with an
undefined Finite_Finite64 in CI's check and sanitizer jobs. It runs every
generated file instead.
2026-11-18 14:19:55 -03:00
waozi ac988e74a0 Cache Android scene programs and specialize active shadow lights 2026-11-18 13:13:26 -03:00
waozi ac6c8f47b8 Add VRM 0.x avatars: humanoid map, expressions, lookAt and spring bones
scene_vrm reads the VRM extension of a .vrm/.glb loaded through scene_gltf:
the humanoid bone map, blend shape expressions (blink and the rest) set as
morph weights, Bone lookAt through its range curves, and VRM 0.x spring
bones with sphere colliders. Springs follow UniVRM's VRMSpringBone (Verlet
inertia less drag, stiffness back to rest, gravity, length kept, pushed out
of colliders), step at a fixed 60 Hz in the world placed by VrmSetFrame so
whole-body motion swings the hair, and settle at rest after a seek. Node
positions come from the instance TRS, so one GltfUpdateScene a frame is
enough.

make scene-gltf-test also runs the VRM checks from source and saved IR
against a small fixture: bone map, expressions, lookAt curves, gravity,
colliders, stability at uneven frame steps while the body moves, settling.
2026-11-18 13:10:37 -03:00
waozi 1774e55057 Keep the page event bridge to web targets
canvas_events.zi defines the browser event policy only when OS is .WEB, but
page_events.zi used it unguarded. Checking or building a package's sources
for a native target, as Breeze's source check does, reported unresolved
CanvasEvent names and TextFromCString(*s32). The bridge's body now sits
under the same guard, so native checks see an empty module and web builds
are unchanged.
2026-11-18 13:02:56 -03:00
waozi 97207e63ea Export the canvas file and pixmap picture hooks to packages
Breeze supplies bundle pictures through `canvas_os` on the web and through
`pixmap_image_owner` on Android. Neither was in the manifest's exports, so
the web link reported undefined `SetLoadFileDataCallback` and
`GetFileLength`, and Android pictures showed "Missing image".
2026-11-18 12:46:33 -03:00
waozi b9dcffc906 Render Android at native size and repair 32-bit GLES uploads 2026-11-18 12:45:40 -03:00
waozi 0ad6f6cf07 Load glTF 2.0 models into scene meshes and skins
Read .gltf and .glb documents in Ziran: buffers, bounds-checked accessors
for every component type with normalized integers and sparse overrides,
triangle primitives with the standard vertex attributes and morph
targets, node hierarchies, skins and LINEAR, STEP and CUBICSPLINE
animations. Materials keep PBR factors, texture info, alpha modes and
PNG or JPEG images from URIs, data: URIs or bufferViews.

The scene adapter creates one indexed mesh per primitive and a SceneSkin
per skinned primitive, samples animations into node poses and morph
weights, and can switch to dual-quaternion skinning. Malformed files
report a diagnostic instead of crashing.

Tests cover the small fixtures, every interpolation mode, sparse and
normalized accessors, malformed files, and a headless GLES render of an
animated two-bone skin against a committed reference. The Khronos sample
models committed here are CC-BY-4.0 or CC0-1.0 with their attribution.
2026-11-18 11:33:54 -03:00
waozi 6816ed7866 Run paired widget checks as table-driven Ziran cases
Press focus and text-input focus, direction pad and SwipeArea, and the two
text area layout checks each compiled through the same widget or main matrix
with the same bindings. Each pair now runs as one Ziran module whose main
walks a table of cases, so behavior scripts drop from 177 to 174 and the
three checks take 21 s instead of 40 s locally. The plan maps each removal
and records the measured times.
2026-11-18 03:41:04 -03:00
waozi 2da7a627f6 Export the gallery examples as ZX again
Kryon's sources load through `--module-path kryon=DIR`, so the exporter
binds the frame entry and names the bundle entry by their package-scoped
module names. An export that names another file than its same-named module,
as `modal` names modal_frame.zi, is imported by its target's own name, and
other facades import from the deepest module root, because a slash in an
import names another package. All 101 examples export and render again. The
docs no longer say the website publishes these bundles; the Components page
runs every example live.
2026-11-18 03:36:11 -03:00
waozi 56b99c99f7 Run paired behavior checks as table-driven Ziran cases
The cell and terminal list checks now run as one Ziran module whose
SelfTest walks both case sets. The geometry suite's table runs its camera
cases, which no script ran before, then the vector path and view transform
behaviors. Each pair compiled through the same commands, so behavior scripts
drop from 179 to 177 with the same assertions; the plan maps both removals.
2026-11-18 03:35:47 -03:00
waozi 9926d5bc8e Play every published Kryon web app from the website
The Apps page lists Werkzeug, Inner Breeze, Jungle Academy, Arcade, Shovey,
Apfelwurm and Choano, each with a Play in browser link to its published web
build and its source where that is public. Terminal, Browser, GitHub,
Explorer and Task Manager stay listed as desktop apps, each with the reason
it has no browser build yet; plans/2026-11-18-web-apps.md records what each
one needs. Wide screens show three cards per row.
2026-11-18 03:28:13 -03:00
waozi 2a44bbdb5e Skip warped triangles too thin for Cairo to sample
A warped image whose triangle corners nearly meet asks Cairo to sample
thousands of picture pixels per screen pixel. Cairo keeps that step in
16.16 fixed point, fails the whole surface with NO_MEMORY, and the frame
is lost: Inner Breeze closed on opening Astral Projection, whose figure
edge fans make such slivers. The Cairo host now leaves out a triangle
whose screen-to-picture step exceeds 4096, which covers under a pixel.
The Cairo image sampling test draws such a sliver.
2026-11-18 03:07:12 -03:00
waozi e74f080498 Benchmark and accelerate Kryon shader workloads 2026-11-18 02:43:52 -03:00
waozi b5a61b37df Fix Kryon build regressions and consolidate checks
Select Darwin host code for the native ZX player and keep its Linux socket
service on Linux. Feed RGB to the JPEG encoder and retain Android
notification callbacks when generating native host libraries.

Resolve the Pages gallery verifier against the same source revisions as the
build. Reuse prepared template dependencies and check the JavaScript policy
against files present in the checkout. Combine related text-input checks
and perform shared source policy checks once per CI run.
2026-11-18 01:52:02 -03:00
waozi 0177e695f9 Pace Android frames from retained paint changes 2026-11-18 01:48:17 -03:00
waozi 1ed9695e52 Keep full GPU shadow filtering without hardware PCF
Use nearest depth textures and interpolate the comparison results in the material shader when the hardware probe fails. Exercise CPU parity and shadow rendering with both paths.
2026-11-18 01:37:05 -03:00
waozi 4b79d97615 Retain smooth indexed scene geometry on GLES
Upload only changed vertex streams during deformation and keep material texture uploads on their assigned sampler units.
2026-11-18 01:33:24 -03:00