Engine 0.12.1
Release notes for Engine 0.12.1.
3 changes — 3 fixes
Patch Changes
-
#411
a666ac6Thanks @dm-balakin! - An editor opened again no longer starts the GPU device's threads and the engine's own again. A process that opened and closed a plugin's editor all session (as a DAW does) grew with every open, because the memory each opening's threads had freed stayed in glibc arenas the next ones did not use: reported at about 180 MB over 60 opens of a WebGL editor on Linux.- The GPU device the editors share (ANGLE's display, its worker threads, and the driver's device and threads) is kept when the last editor closes, until the plugin is unloaded, and so is the device WebGL uses where the editor composites on the CPU (
SOUNDOR_RENDERER=cpu), which was made for each runtime. It is still made when an editor first opens, never when the plugin loads. A device a GPU reset lost is not given to the next editor. - On Linux, the editors' accessibility (AT-SPI) work runs on one thread the plugin keeps,
soundor-a11y, instead of one per editor, and file and storage work on one,soundor-files, instead of one per runtime. A runtime's teardown still waits until what it wrote is written. - The VST3 adapter ends them when the host unloads the plugin (
ModuleExit,ExitDllorbundleExit), through the engine's newplatform::releaseModuleResources().
Hermes's threads (its collector and time-limit monitor) still start with each editor's runtime, and Mesa's swapchain threads with each window.
- The GPU device the editors share (ANGLE's display, its worker threads, and the driver's device and threads) is kept when the last editor closes, until the plugin is unloaded, and so is the device WebGL uses where the editor composites on the CPU (
-
#410
8518428Thanks @dm-balakin! - Round layout to the device-pixel grid by where each edge is in the view, instead of with Yoga's rounding, so boxes laid out to line up stay lined up at a fractional scale (125 %, 150 %), and the native renderer and the browser draw the same pixels:- Boxes centred in one parent share one centre exactly, and keep the same size wherever the parent lands; where their sizes would differ by an odd number of device pixels, a view's size is rounded the other way, or one device pixel added, to fit it. An
Image,CanvasorSvgat a whole number of device pixels keeps its size, so it stays sharp. - Nodes with the same style land on the same pixels whatever their type: an
Svg,ImageorCanvaswas rounded down like text, a pixel away from aViewstyled the same. - Border widths, outline widths and outline offsets are whole device pixels, rounded down and at least one, as CSS has them: the native renderer drew a 1 px border at 125 % as 1.25 device pixels with soft edges, where the browser draws one. What is inside a border moves with it.
- In the browser, the view's origin is put on a device pixel when the page places it between two (a view centred in the page), so the browser does not round each element again.
Text is still never narrower than measured, now by up to one device pixel less than before. Frames change by at most one device pixel.
- Boxes centred in one parent share one centre exactly, and keep the same size wherever the parent lands; where their sizes would differ by an odd number of device pixels, a view's size is rounded the other way, or one device pixel added, to fit it. An
-
#407
fa075ceThanks @dm-balakin! - A focusable node can leave the Tab order and stay focusable, for roving focus in composite widgets (lists, radio groups, toolbars):tabStop={false}on aVieworPressable, andnode.tabStopinsoundor:ui. A press,focus()and assistive technology still focus it, it still receives keys and hasfocusVisible, and its semantics are unchanged; Tab and Shift+Tab skip it in every runtime and in aFocusScope, and from it go on to the next Tab stop in tree order.FocusScope'sautoFocusfocuses the first Tab stop.