You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first frame on the CPU on Windows: with Direct3D 11, a translucent window shows its first frame drawn on the CPU through a WARP device's swap chain on its own DirectComposition visual, and the hardware device's chain replaces it at its first present, in the same commit; a window without composition shows it through GDI until its swap chain presents. Not yet run on a Windows machine.
The first frame on the CPU for a program with its own loop: render.cpu_stage_next says, after each frame, whether the next one is owed at once (it ends the CPU stage, on the GPU) or the device did not come; fidget asks for its device at its start, for cpu_first, and shows its first screen at a median of 106 ms from its start instead of 285 (lavapipe, Xvfb). The CPU's frames are drawn in bands on up to eight threads, and the pixels well inside a plain shape skip its distance: fidget's first screen is rasterised in 9 to 17 ms instead of 346.
Popups above native child views (ui.native_child): tooltips, menus, toasts, text-reveal bubbles, floating views, and modal dialogs now draw above embedded native child windows (such as Windows WebView2) with full alpha and unclipped drop shadows. Register the host box with ui.native_child(box) each build; gt:host automatically puts the main DirectComposition surface below child windows (render.set_under_children), draws overlapping overlays on a second topmost = TRUE composition surface of the same window (ui.draw_tree_base, ui.draw_tree_overlay), and intercepts pointer input only over interactive overlays (platform.set_native_input_shield) so clicks pass through to the native child when idle or showing tooltips.
The graphics device asked at the program's start: host.program_start asks for the device, so that its adapter answers while the program reads its settings and opens its window, and the first frame drawn on the CPU waits less for it. A process that never calls it (a command line's answer, a plugin's child, a headless run) makes no device. -define:TOOLKIT_EARLY_DEVICE=false or TOOLKIT_EARLY_DEVICE=0 turns it off. render.preload_when_done gives a device being made a callback for its end (host.ahead_due wakes its loop with it).
ui.tab_face, ui.tab_body, ui.tab_strip_start: a program's own tab boxes (a fixed width, drags, its own content) get the toolkit's tab look, with an optional accent along the chosen tab's top (mark); the toolkit's rows of tabs use the same calls (docs/widgets.md, "Your own tab strip").
platform.set_wallpaper and ui.wallpaper_set: a picture as the desktop's background, through the desktop portal on Linux (GNOME, KDE) and the system's setting on Windows, on the chores; the result (set, cancelled, unsupported, failed) comes back to the program, which says it in its own words.
Tables per channel: draw.filter_lut applies a table (draw.lut_texture) to a layer on the GPU, and image.lut_levels, lut_exposure, lut_curve, lut_then and lut_apply make the tables and write the same one into a picture: levels, gamma, exposure and curves preview at the GPU's speed, and the file gets what the screen showed.
ui.paste_answer: a paste whose clipboard holds none of the kinds asked answers Paste_Kind.Nothing, so a program can say there is nothing to paste instead of doing nothing.
ui.Drag_Out (drag_out, drag_out_files, drag_out_start, drag_past_threshold): a box's file or text dragged out to another program past the system's threshold, one drag a press; an offscreen window records what would have gone, for a test. The file tree drags its rows out with it.
The menu bar's keys (ui.menu_bar_button): Alt+letter opens a menu (the access letter marked with & in the entry's words, else its first letter, underlined while Alt is held); F10 or Alt alone lights the bar, whose arrows move and open; in an open menu of the bar Left and Right go to the menu beside it, and Escape steps back to the lit entry.
image.place(dst, src, x, y): a picture copied into another at a place, alpha too, cut at its edges: a canvas of another size without a copy of the loop.
The first frame drawn on the CPU: a program opened by host.host_open on Linux shows its first picture while the graphics device, its surface and its pipelines are still being made, drawn on the CPU with the shaders' own formulas and given to the window through wl_shm on Wayland or PutImage on X11; the next frame is the GPU's, in the same place, and the two pictures differ by a few pixels at most. On lavapipe (hello, Xvfb) the first content shows about four times sooner (a median of 88 ms after the process started instead of 392, on a loaded machine). A tiling compositor's tile is drawn on the CPU too, so it shows the window at once. render.init_window(..., cpu_first = true) asks for it in a program with its own loop; render.cpu_stage_active, render.cpu_stage_end and render.cpu_frame_exact say where it is; platform.show_pixels, platform.can_show_pixels and platform.drop_pixels show a picture drawn on the CPU on a window. Layers, filters, blend modes, planes, pictures and application shaders are not drawn on the CPU: they show from the GPU's frame. A machine with no graphics driver gets the same sentence as before, at the same place. TOOLKIT_CPU_FIRST=0 turns it off; -define:TOOLKIT_CPU_FIRST=false leaves it out of the program (64 KB of code). TOOLKIT_CPU_SHADOW=1 draws each GPU frame on the CPU too, for a test (render.cpu_shadow_pixels).
Changed
Tabs take the surface they frame, in a style per context: a dock's stacks and a stack of views are an Underline (the strip on the panel's own ground, no line nor border before it, an accent bar under the shown tab); ui.tabs and ui.tab_panel are Folders (the chosen tab is the page's surface, one outline round both, the other tabs words with no outline); a small panel's switcher asks for .Segmented, a header band for .Header. A content names its ground once (Dock_Options.surface, View_Options.surface, Tab_Panel_Options.surface, ui.tabs_over) and the toolkit paints its body, strip and tab with it: no double border, no cut, no pasted tab. Dock_Options.tab_style, View_Dock_Options.tab_style, Tabs_Options.style choose another. ui.tabs_ex gives a tab its own content (Tabs_Options.content), a "+" after the tabs (after), the tab whose menu was asked by a right click, the Menu key or Shift+F10 (Tabs_Result.menu, menu_at, menu_keyboard) and a middle click (closed). A stack's first tab's words stand over its panel's first column, a view's as a dock's (ui.dock_content_inset() inside a view gives its stack's); the keyboard's ring on an Underline's or a Header's tab leaves its accent bar showing; a strip's arrows leave a Folder's line and a tab_panel's frame showing (Strip_Options.edge). The debug window's tabs are an Underline; the edged finish no longer lights a dock's strip.
ui.preview: Preview_Options.wheel (.Zooms, .Pans, .Ctrl_Pans) replaces wheel_pans: a program gives the plain wheel or Ctrl with it to moving the content, the other one zooms.
Fixed
AltGr is no Alt on Linux: ISO_Level3_Shift no longer comes as Key.Alt, so a program that reads Alt does not see it when a French or German layout types €, @ or { with AltGr.
Menus and dropdown lists: the longest row is no longer cut by a pixel lost to rounding at a fractional scale ("English (United Kingdo…" at 120 dpi); a list wider than its button near the window's edge shows every row whole, inside the window.
The file tree's drag out: a drag the system refuses at once no longer starts again at every frame while the button is held: one drag a press.
Rows of tabs (a stack of views, a dock's stack, ui.tabs): too long for their room, the tabs first narrow, their words cut with an ellipsis down to ui.TAB_TITLE_LEAST_EM, before the strip scrolls; a tab cut by an arrow to a sliver of its outline is hidden whole; a strip resized brings its chosen tab back into view; a narrow stack keeps its Close inside the window. ui.tab_title_width sizes a tab's words for a program's own row of tabs.
The palette's hint row: in a narrow palette the keys of the selected row are cut with an ellipsis and stay inside the palette, instead of running past its edge.
session.click_at: moves the pointer first and builds frames, even where the pointer already was: a right click on a block that takes it with ui.context_take opens its menu with no move before it.
A window shown on X11 always gets its first frame: an event that came before the loop's wait looked at the connection (the window's MapNotify, read with another answer) ended no wait, and a window with nothing else to say slept before its first frame until an input came. Seen in 1 to 5 starts in 100 of a loaded machine.
ui.thumb_picture: a place given in next without a size (fixed_x, fixed_y) stays; only the sides left unset fill the room.
Security
A test never reaches the person's desktop, bus or graphics card: on Linux every test process, however it was started, and every program a tool of the toolkit runs (program sessions, tk screenshots, the timeline test) has its environment isolated before its main (base.isolated_env): no display but a server the test started itself (GT_TEST_DISPLAY), a session bus where nothing answers unless the test has its own (GT_TEST_BUS), Vulkan on Mesa's lavapipe alone with the implicit layers off, Mesa's EGL vendor alone, no VA-API driver. A test started by hand from a desktop's shell opened its windows on that desktop, spoke on its bus and could load NVIDIA's EGL driver. base.software_vulkan_driver (moved from toolbox) and base.mesa_egl_vendor find Mesa's drivers.