Repository navigation
merge: sync upstream main (33de151) into the fork - #51
Merged
Merged
Conversation
Resolve button surfaces through the typed element style and box model. Allow caller-owned content in themed buttons and add icon-only actions with selection semantics to the public button group. Paired Motty change: use joined icon actions for note view modes and pin this framework commit in its CI. Reusable appearance and input primitives stay in Viva; note mode persistence stays in Motty.
A terminal row of many colors is one run per color, and rasterizing it made a DirectWrite text format and text layout for every run. Scrolling into a colored stretch therefore paid that cost again for each row entering view. Keep both for the rasterizer's lifetime, keyed by everything drawRun passes to DirectWrite, and release them with it. A 100-cell line split into 70 color runs rasterizes in 0.33 ms once its formats and layouts are kept, against 0.36 ms when each run makes them; a dense scrollback drag of the same text in Motty #1246 drops its p90 frame from 21.7 ms to 18.9 ms on the Windows test machine.
Rasterizing a row of many colors called ExtTextOut once per run, so a colorizer's line cost a syscall and a font select for every word or cell, and scrolling into a colored stretch spent the frame there. Draw the whole pass's text in one call: the other passes' cells are spaces in its string, and every character keeps the cell drawPiece puts it on. A 100-cell line split into 70 runs rasterizes in 0.15 ms against 0.36 ms with a call per run; a dense scrollback drag in Motty #1246 drops its p90 frame from 20.1 ms to 16.8 ms on the Windows test machine. A test proves a batched row has the piecewise row's exact pixels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync upstream
main(33de151) into the fork before the next Lithe desktop release.Upstream commits brought in (
d354e3c..33de151on the upstream side):54981a3feat(ui): compose themed buttons and joined icon actions80b8f0cperf(windows): keep terminal grid text formats and layouts33de151perf(windows): draw a colored terminal row in one GDI call per passThe merge had no conflicts. Fork-only patches are unchanged; #50 is merged on top of this separately.
Merge this PR with a merge commit (
gh pr merge <n> -R Lithe-IDEA/Lithe-viva --merge), not squash, so upstream stays an ancestor of forkmain.Verification on macOS (Apple Silicon):
go vet ./...: passed.go test ./...: everything passes exceptcmd/viva.built for macOS 13.0 … min_system says 12.0. This is the local toolchain and is the same ond354e3c.TestGeneratedRecipesAreCurrentandTestInstalledRecipesMatchReferenceSourcefail becausecmd/viva/templates/select.go.txtis stale. They fail the same way on upstream33de151and forkd354e3c.GOOS=windows GOARCH=amd64 go build ./...andGOOS=windows GOARCH=arm64 go build ./...: passed.GOOS=linux GOARCH=amd64 go vet ./...: passed.