Kryon v0.6.0 (8d5d2e75) on Ziran 0.7.0 (55b01768) is the released base
every root shares, so this package moves to it with the rest of the set.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every shape was its own SDL_RenderGeometry call, and Kasaival draws about
4,500 a frame. SDL merges them into few GPU draws, but its validation,
vertex copy and command upkeep per call dominated frames on phones. Shapes
that share a texture and blend mode now queue and go to SDL as one call.
Anything that draws otherwise, switches the target or clip, changes or
frees a queued texture, or reads the frame flushes the queue first. Each
shape is still checked as SDL checks a call, so a bad one drops alone.
Kryon 1774e550 guards page_events to web targets on top of 97207e63's
canvas and pixmap picture hooks, so native source checks pass again.
Breeze's whole graph moves to it together, keeping one Kryon.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Kryon 97207e63 exports canvas_os and pixmap_image_owner, so apps serve their
own pictures in the browser and on Android, and renders Android at native
size. Breeze's whole graph moves to it together, keeping one Kryon.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
EndDrawing waited for the target frame rate after a vsync present had
already waited for the display, so each frame slipped to the next vsync:
a Pixel 4a drew 30 fps and a Moto e6 play 18. With vsync on and a target
at the display's refresh, the present alone paces the frame.
With PLATFORM_ANDROID, InitWindow(0, 0) opens a window that fills the
display, and pictures decode as PNG in Ziran instead of through Kryon's
Android decoder, which needs Kryon's own activity.
sdl_text_freetype renders the lettering with FreeType in the system's
sans-serif face (or GAME2D_FONT), with FreeType's long fields 32 bits on
Windows, so a static MinGW build links without Pango or Cairo. A Linux
test drives the backend directly.
With --use-preload-plugins the browser decodes a page's preloaded PNGs
before main; LoadImage and LoadTexture take those pixels through
emscripten_get_preloaded_image_data and decode in Ziran only otherwise.
Neon's 23 MB of sprite sheets no longer block the page at startup.
With PLATFORM_WEB, Emscripten's SDL2 port opens the canvas window, PNG
pictures decode in Ziran, text draws on the page's 2D canvas through
std/web (sdl_text_web), the browser paces frames instead of a busy wait,
and WebAudio starts once the player presses a key or button. The desktop
text moved unchanged to sdl_text_pango; sdl_text selects the backend.
Kryon b5a61b37 paces Android frames from retained paint changes, keeps
smooth indexed scene geometry on GLES and full shadow filtering without
hardware PCF, so Breeze's graph shares one Kryon for its Android host.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Game2D/Sdl imported Kryon's Cairo window raster for its text, which also
exports the Raster* functions Kryon widgets paint through. A game that
paints those widgets with Game2D (Kasaival) then had every one defined
twice. The new sdl_text module lays out and rasterizes the lettering
itself, and the SDL test defines RasterText to keep it that way.
Kryon 8e44f3f8 keeps indexed scene geometry relative to each mesh and
keeps desktop animations presenting without input. Practices already
builds on it, so Breeze's whole graph can share one Kryon.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Games get SDL game controllers with raylib's button and axis numbering, a
fullscreen toggle that scales the game at its own size, the window icon,
GenImageColor, LoadImage, PNG bytes through LoadImageFromMemory and music
from bytes through LoadMusicStreamFromMemory. The SDL surface test covers
each from source and saved IR.
Game2D/Sdl is a game's window: SDL2 draws it with its accelerated
renderer, or SDL's software renderer without a GPU, and games keep the
calls they use for windows, frames, shapes, textures, render targets,
blending, scissoring, the 2D camera, text, keyboard, mouse and touch
input, timing, random values, sounds and music. Pictures decode through
Kryon's image_pixels, text draws with Kryon's text raster and audio mixes
in Ziran's std/audio, so Game2D no longer needs raylib or its version.
Render textures keep drawing upright with a negative source height.
SetFixedFrameTime steps headless and replayed runs deterministically,
replacing the RaylibNull link-time stand-in.
Shapes draw through a one-pixel white texture as centre-fanned triangles:
SDL's software renderer ignores additive blending for untextured
geometry and for the two-triangle rectangles it copies as rectangles.
tests/sdl_surface_test.sh checks drawing, input, timing and audio from
source and saved IR on a private Xvfb with SDL's software renderer and
dummy audio.
Kryon 3627ea8a removes raylib, so the lock drops raylib, dr_libs and stb and
moves avif and audio to the pins that Kryon declares. Plot, Game2D, CSS,
Entity and Apps move to this pair together, so apps that combine them
share one Kryon.
Game2D's Raylib module binds to raylib's C ABI, but this Kryon no longer
selects a raylib version, so the module's ABI comparison runs only when
RAYLIB_HEADER_DIR names a raylib source.
Kryon 3f724419 builds its vendored codecs with CMake 4 and pins Ziran
e0367fa9, which includes the Wasm record-copy fix (6a066abd) that
hosted bundles need in the browser. CSS, Plot, Game2D, Entity, Apps,
Auth and Workbook move to this pair together, so consumers keep one
Kryon copy.
Local tests: ziran lock and the package's own suite through build-queue,
on HEAD plus this change (other uncommitted work set aside, no local
overrides).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Kryon 028d42cb adds Escape dismissal for modals independent of outside
clicks, desktop camera offsets, native frame snapshots
(FramePreviousSnapshot) and desktop image services; it still pins Ziran
ebd19223. CSS, Plot, Game2D, Entity, Apps and Auth move to it together,
so consumers keep one Kryon copy.
Local tests: ziran lock and the package's own suite through build-queue,
on HEAD plus this change (other uncommitted work set aside, no local
overrides).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Kryon 9052a642 applies desktop camera offsets to Cairo painting and
pixel snapping; ebd19223 is the Ziran it pins. CSS, Plot, Game2D, Entity,
Apps and Auth move to this pair together, so consumers keep one Kryon
copy.
Local tests: ziran lock and the package's own suite through build-queue,
on HEAD plus this change (other uncommitted work set aside, no local
overrides).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
GameStickSteer turns a held press into a unit heading from its anchor
towards the finger, drags the anchor past its reach and reports taps.
The touch indicator now draws the stick's ring, finger and heading.
The portable bundle has been .zx since Ziran's permanent format
cutover, but the test still named its output .zib and the locked
toolchain predated the release, so it wrote old-format bytes under
the old name. Update the lock to the current Ziran and Kryon
masters, drop the C++ target that Ziran has removed from the Raylib
compile check, and name and run the bundle as .zx.
RaylibNull is a link-time stand-in for libraylib: the same Raylib
adapter's foreign surface as no-op #program_export definitions with a
real CLOCK_MONOTONIC clock, a fixed 1/60 frame time, and the seeded LCG
headless builds need for reproducible autoplay runs. Games link it
instead of libraylib to run without a window or GPU.
The Raylib adapter gains FileExists, UpdateTexture, LoadTextureFromImage
wrappers and the TEXTURE_FILTER_BILINEAR constant so native video
playback (decode into a texture) can be written entirely in Ziran.