Engine 0.8.0
Release notes for Engine 0.8.0.
18 changes — 13 features, 4 fixes, 1 breaking change
Minor Changes
-
#254
0ada0c5Thanks @dm-balakin! - Box shadows:Style::boxShadow, a list ofBoxShadow { offsetX, offsetY, blur, spread, color, inset }read fromstyle.boxShadow(each field optional and checked, aTypeErrornaming its path), drawn as CSS drawsbox-shadow: the first on top, outer ones outside the border box before the background, inset ones inside the padding box over it, blurred by Skia's Gaussian mask (sigma half the blur). What a node draws outside its box is nowStyle::inkOverflow(), per edge, for its outline and its outer shadows, and damage, promoted-canvas layers and animation groups count that far around it. Shadows are not laid out, not hit and not animated;node.stylecompares them by value, as it doestransform, and the DevTools inspector shows them. -
#252
3275981Thanks @dm-balakin! - Double clicks: a click'sdetailsays which of a series it is, and the second click of a series is followed by adblclick(Event::Type::DoubleClick) to the same node. The platform counts the presses:PointerInput::clickson the first button's down, which the click carries asEvent::detail. Every pointer event hasdetailinsoundor:ui(0 but forclickanddblclick). The DevToolsInput.dispatchPointercommand takes aclickCountfordownandclick, so synthetic input says its count rather than depending on timing. -
#289
a54e1daThanks @dm-balakin! - Expose plugin version and runtime environment in soundor:host, and extend host state with processing mode, sample precision, optional track metadata, loop boundaries and timecode. Rename snapshot/subscribe to getHostState/subscribeHostState. Configure plugin.version (default 0.1.0) consistently across formats. -
#262
b35730cThanks @dm-balakin! - Enable Linux GPU composition and Skia Ganesh rendering through an input-transparent X11 child window and ANGLE Vulkan. X11/XCB libraries load at runtime, preserving CPU fallback and headless loading. XWayland is supported when the host supplies an X11 editor window. -
#260
9e809c3Thanks @dm-balakin! - Render retained UI and Canvas 2D with Skia Ganesh on macOS through the existing ANGLE Metal device. Share rendered textures with the compositor and fall back to CPU drawing when GPU drawing is unavailable. -
#266
496fe62Thanks @dm-balakin! - Accept synchronous functional updaters on parameter and persistent state fields. Resolve once against the latest immutable store value, validate before publishing, and reject asynchronous results. Automatically bracket changed automatable parameter writes in a host gesture when no explicit gesture is active, preserving nested gestures and keeping state gestures explicit.Raise the runtime API version to 4 for the compatible setter addition; older runtime API versions remain supported.
-
#282
79a9ce5Thanks @dm-balakin! -RuntimeHost::Options::dispatchModules: a backend's own modules (state, History) deliver what they queued for JavaScript from insidetick(), right after the parameter changes, under the tick's one time limit, timed asTickStatistics::modules, and in every runtime a dev reload creates. -
#281
0354f73Thanks @dm-balakin! - Latest-value channels (soundor/js/Channels.h):js::ValueChannel<T>andjs::BufferChannel<T>carry a number, or a buffer of up tomaxLengthnumbers, from one producer thread to the UI. Publishing (publish(), or a buffer'sbuffer()thencommit(), in place) takes no lock, never allocates and never waits, so the audio callback can publish: a triple buffer hands whole values over with one atomic exchange, and the UI never reads a partly written one.RuntimeHost::tick()delivers the newest value of each connected channel (js::deliverChannels()), skipping the ones in between, so a slow, hidden or closed UI accumulates nothing; a context connected later starts with the value published last.TickStatistics::channelstimes it,Channel::statistics()counts what was published and taken, andsoundor_channel_benchmarkmeasures it. Bindings connect channels withbind::connectChannels()and export them withbind::installChannels(). -
#280
27a3303Thanks @dm-balakin! -js::EventSource(soundor/js/Events.h) delivers native events from any thread to the JavaScript contexts connected to it: publishing queues a value for each, under a short lock, without running or waiting for JavaScript, andRuntimeHost::tick()delivers them (js::deliverEvents()) on the context's thread, in the order published. Each context holds at mostOptions::capacity(1024) undelivered events, drops newer ones and logs how many; with no context connected, an event is dropped; either side may go first.TickStatistics::eventstimes the delivery. Bindings connect a source withbind::connectEvents(), export its subscribableeventswithbind::installEvents()and call them withbind::dispatchEvent(). -
#255
13da21dThanks @dm-balakin! - Breaking: native handles are gone:bind::HandleType,readHandle(),writeHandle()and the release queue behind them. The bindings convert every sized number exactly:read()/write()ofstd::int8_t…std::uint64_tandfloat(integers of up to 32 bits from integral numbers in range, 64-bit ones from bigints through JSI'sBigInt, floats rounded to nearest), aTypeErrorfor the wrong kind of value and aRangeError(256 is out of range for uint8 (0 to 255)) beyond the range. Typed arrays of every element type read as spans and write from vectors (Int8Array…BigUint64Array),readBuffer()/writeBuffer()copy one into a struct field and back, andreadNullable()/writeNullable()mapnulltostd::optional. -
#258
553d8c4Thanks @dm-balakin! - Parameters:parameters::Infocarries the declared type, access, step and choice options, andparameters::Hostconverts as the plugin does (constrain,toNormalized,fromNormalized,format,parse).soundor:parametersexposes them to JavaScript, and a write to a read-only parameter throws aTypeError. -
#288
02d06a8Thanks @dm-balakin! - Add booleansoundor:uiisVisible()/subscribeVisibility() and isFocused()/subscribeFocus() APIs so plugins can react to editor visibility and keyboard focus across runtimes. Add test runtime setters and Testing Library editor helpers. The analyzer example pauses its UI subscriptions while hidden. -
#267
553076dThanks @dm-balakin! - Add processor-owned StateHistory with opt-in discrete edits, History-enabled parameter/state gestures, synchronous buffered transactions, undo/redo, subscriptions, and useStateHistory(). JavaScript and native C++ share one manager in JUCE; Web and simulated runtimes implement the same contract. History survives editor recreation and clears on project restoration. Runtime API 5 is now required so older runtimes cannot silently ignore History options. -
#257
87ce3c9Thanks @dm-balakin! - Render retained UI and Canvas 2D with Skia Ganesh through the existing ANGLE device on Windows. Keep layer damage and animation caches on the GPU, share canvas textures with the compositor, and retain CPU rendering when GPU drawing is unavailable. Pixel APIs preserve their existing semantics; a GPU reset clears GPU Canvas 2D contents and resets drawing state.
Patch Changes
-
#286
6b97261Thanks @dm-balakin! - Provide the public GPU compositor factories in no-GPU builds. They return null with a diagnostic so consumers, including the JUCE plugin editor, link successfully and select CPU rendering. -
#286
6b97261Thanks @dm-balakin! - Keep Skia's system libraries after the ANGLE/Skia archives when linking a prebuilt engine. Fixes unresolved fontconfig and FreeType symbols with GCC and GNU ld in JUCE integration consumers. -
#269
8e94ab3Thanks @dm-balakin! -soundor_run_uireports the process's resident memory: at startup (with the engine's heap, in the startup record and on stderr) and per frame's largest sample (rssBytesMaxper phase) — the floor a plugin editor gets with nothing of its own in it, for the benchmark's memory work. -
#284
79ccdf6Thanks @dm-balakin! - Bundle the JavaScript lowering tool's runtime dependencies and capture their build-time identity, so fresh installs of a published engine keep selecting its prebuilts even after Babel releases new versions. Workspace builds still track installed lowering dependencies.