voelin-gpui: the tree marks who talks again, the ring on the avatar and the bars on the row

The gate ruled for parity: the tree cleared `talking` on every row to keep its
pane from being drawn with each start and stop of someone's voice, and the
Slint tree (channels.slint) has the speaking ring on the avatar and the bars
on the row. The model keeps the flag now and client_row draws the ring
(Avatar::speaking) and the bars, 14 pixels as SpeakingBars is, after the badges
and before the LIVE mark, as the Slint row orders them.

The cost was measured with the meter at 10 starts and stops a second (the
sample server, release build, lavapipe on Xvfb :231): the tree pane is
rendered once for each, 9.97 a second for 9.97 events, as the members panel is,
and the rail, the top bar and the main area not at all; 102 % of a core in
all, 5.0 % of it GPUI's thread, which is what the run before the change had
(3.1 % to 5.0 %). docs/ui.md replaces the paragraph that said the tree carries
no talking with the figure; the tests that counted the tree as not drawn count
it as drawn once (a talker changes one row and draws the tree once; the tree
and the members panel and no other pane), and the sample server's tree marks
Kairo.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-28 07:42:20 +03:00
1 parent 6b01e25391
commit 122b2d29fa
6 files changed
+100 -52

No files matched your search

+6 -9
View File
@@ -11,11 +11,11 @@
//! inserted, not a list that starts again at the top. A change that moves none
//! of what a pane shows emits nothing.
//!
//! **The tree does not mark who is talking.** Its rows are built with
//! `talking` cleared: a talker changes the rows of the members panel (and the
//! sidebar's own card), not the tree's, which therefore is not drawn again
//! with every start and stop of someone's voice. The Slint tree draws speaking
//! bars on the row; docs/ui.md records the difference.
//! **The tree marks who is talking**, as the Slint tree does (the ring on the
//! avatar and the speaking bars on the row): someone who starts or stops
//! talking changes one row of the tree and one of the members panel, so each
//! of the two panes is drawn again once for it, and no other pane is
//! (docs/ui.md, "What a change costs").
use std::sync::Arc;
@@ -124,13 +124,10 @@ impl Snapshot {
fn of(app: &AppState) -> Self {
let vm = &app.vm;
let view = vm.current.and_then(|id| vm.sessions.get(&id));
let (mut rows, people, total) = match logic::tree_view(vm, false) {
let (rows, people, total) = match logic::tree_view(vm, false) {
Some(tree) => (tree.rows, tree.server_members, tree.member_total),
None => (Vec::new(), Vec::new(), 0),
};
for row in &mut rows {
row.talking = false;
}
Self {
rows,
people,