diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-24 14:09:45 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-24 20:59:59 -0300 |
| commit | 93d901ec5b80c36cb6c9d9027a8b39de5adafaca (patch) | |
| tree | bedeef40bec64693f819d975880ea219854212ad /src/body_layer.zig | |
| parent | c07af484b6f2688a64e850562d1f804c76c5ac52 (diff) | |
| download | pardes-93d901ec5b80c36cb6c9d9027a8b39de5adafaca.tar.gz pardes-93d901ec5b80c36cb6c9d9027a8b39de5adafaca.zip | |
anim 1b: the probe measures input-to-present latency, where each frame's work goes (zones: body rows and colours, the GUI's build, shaping, rasterizing, a soft present's GPU wait, upload and flip) and the view presented; timedemos for throughput (stress), every file kind of a corpus (kinds) and every kind of pane (panes)
Diffstat (limited to 'src/body_layer.zig')
| -rw-r--r-- | src/body_layer.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/body_layer.zig b/src/body_layer.zig index 3684605f..d4ca6d69 100644 --- a/src/body_layer.zig +++ b/src/body_layer.zig @@ -255,7 +255,9 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane .bg = pane_bg, }; const tz_body = tracy.zone(@src(), "bodyText"); + const probe_text = pardes.FrameStats.nowNs(); const body = built orelse try bodyText(p, arena, pane); + p.frames.zone(.body_text, probe_text); tz_body.end(); // A select sweep begun on the tag and dragged into the body marks the // body rows it crossed only where no text is: it is laid down before @@ -268,6 +270,8 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane // this is what writes it into the surface. const tz_rows = tracy.zone(@src(), "paneBodyRows"); defer tz_rows.end(); + const probe_rows = pardes.FrameStats.nowNs(); + defer p.frames.zone(.body_rows, probe_rows); var it = std.mem.splitScalar(u8, body, '\n'); var i: u16 = 0; while (it.next()) |line| : (i += 1) { @@ -277,6 +281,8 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane } const tz_color = tracy.zone(@src(), "paneRecolor"); + const probe_color = pardes.FrameStats.nowNs(); + defer p.frames.zone(.body_color, probe_color); // File layout is independent of whether its producer requests colors. if (pane.file) |*f| { panes.File.drawGutter(p, s, pane, r, tx, tw, body_h, active); |
