diff options
Diffstat (limited to 'core/root.zig')
| -rw-r--r-- | core/root.zig | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/core/root.zig b/core/root.zig index a4adf7b1..61c236ae 100644 --- a/core/root.zig +++ b/core/root.zig @@ -143,11 +143,15 @@ pub const TagKind = Layer.Kind; /// too long for its width. pub const MAX_TAG_ROWS = 8; /// Panes, then columns, then the workspace bar, then each pane's notice -/// bands: a band to a tag, however many lines it has; then each pane's -/// rows unrolled under its tag (Band.zig). -pub const MAX_TAG_LAYERS = BAND_LAYER_BASE + MAX_PANES; -pub const NOTICE_LAYER_BASE = MAX_PANES + MAX_COLS + 1; -pub const BAND_LAYER_BASE = NOTICE_LAYER_BASE + MAX_PANES * Pane.Notices.max; +/// bands: a band to a tag, however many lines it has; then the rows +/// unrolled under the one tag out of rest (Band.zig: a view has one, the +/// keyboard's, SPEC ยง3.4). A frame makes many a temporary Surface, each +/// with every layer: a layer to a pane here cost every frame 0.9%. +pub const MAX_TAG_LAYERS = BAND_LAYER + 1; +/// The notice row's layer, after the workspace tag's. +pub const NOTICE_ROW_LAYER = MAX_PANES + MAX_COLS + 1; +pub const NOTICE_LAYER_BASE = MAX_PANES + MAX_COLS + 2; +pub const BAND_LAYER = NOTICE_LAYER_BASE + MAX_PANES * Pane.Notices.max; /// Columns a session holds (each costs about 8 KB of state, a column tag /// being most of it). pub const MAX_COLS = 16; @@ -636,7 +640,7 @@ const machine_lines = [_]struct { []const u8, usize, []const u8 }{ .{ "FrameStats.zig", 7, "a frame's clock and log: frames are local, never digested" }, .{ "Handover.zig", 29, "a window carried to another process over a socket: the session's host" }, .{ "Kind.zig", 1, "host_io's KindJob: a kind's job is the host's" }, - .{ "Messages.zig", 6, "the message clock, read through tape.value(.clock); PARDES_NOTIME, the tests', read by a host's `stamp` alone (between steps, or in a host's call), whose text the tape carries in the setMessage it makes: never a step's" }, + .{ "Messages.zig", 4, "PARDES_NOTIME, the tests', and the time of day, read by a host's `stamp` alone (between steps, or in a host's call), whose text the tape carries in the setMessage it makes: never a step's" }, .{ "Output.zig", 2, "the fonts module (Fonts lists them under tape.site(.fonts)) and the build's version line" }, .{ "Stream.zig", 14, "the disk search's worker: it runs off the step and its batches are inputs" }, .{ "builtins.zig", 2, "Mount's probe (tape.site(.probe)) and Term's shell check (tape.site(.shell))" }, |
