diff options
Diffstat (limited to 'src/gui/gui.zig')
| -rw-r--r-- | src/gui/gui.zig | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 8d69ed80..60b00f7a 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -1059,7 +1059,7 @@ const Gui = struct { capture_pad: u32 = 0, capture_dir: []const u8 = "", /// PARDES_TEST_SERIES: every captured frame is kept too, numbered, for a - /// feel review's frame series (docs/render-pipeline.md §8.4). + /// frame series to look at. capture_series: bool = false, captured: u32 = 0, capture_tex: ?*c.SDL_GPUTexture = null, @@ -3713,7 +3713,7 @@ fn waitInput(ctx: ?*anyopaque, timeout_ms: u32) void { // would; otherwise a wait that ran out moves it exactly to the // core's wake. // Through an edge, or woken for the next: the shell redraws the last - // frame with the new alpha, no core render (§5.5 level B). + // frame with the new alpha, no core render. if (blink_ms != null and (blink.?.edge or !got)) g.blink_due = true; if (s.test_clock) |*virtual| { if (frontendMoving(g)) { @@ -3769,7 +3769,7 @@ fn waitInput(ctx: ?*anyopaque, timeout_ms: u32) void { // limiter spins: asleep between 60 Hz frames, the CPU's clock fell // (intel_pstate, 4.9 GHz down toward 0.8) and every frame, an // input's first among them, took 2-5x as long: input-to-present p50 - // 1.9 ms spinning against 7-8 ms asleep (docs/next-anim.md). + // 1.9 ms spinning against 7-8 ms asleep. // ponytail: a core while something moves (~250 ms a scroll); a // sleep to a millisecond short of the tick if the power matters more. while (paced and !g.input_seen and s.held == null) { @@ -3989,7 +3989,7 @@ fn runDemo(g: *Gui, in: *Input, core: *pardes.Pardes) void { /// The blink now, from the frame's time since input and how long ago it /// arrived; null where nothing blinks (off, idle, an unfocused window). -/// The cursor's opacity under blink (§5.4): solid while typing and for +/// The cursor's opacity under blink: solid while typing and for /// `hold_ns` after, then on and off with an eased edge, solid again after /// `idle_ns` of no input. `edge` says whether it is mid-edge (a frame is /// owed), `next_ns` when the next edge starts (a wake). @@ -7332,8 +7332,8 @@ fn softPresentFrame(g: *Gui, cmd: *c.SDL_GPUCommandBuffer, target: *c.SDL_GPUTex defer if (frame_probe) |probe| probe.zone(.gui_upload, probe_upload); if (!c.SDL_UpdateTexture(texture, null, mapped, @intCast(sw * bpp))) return error.GpuMap; // PARDES_FRAMES_CAPTURE: every presented frame's pixels as they went - // out, and when, for a recording at the frames' own times (the - // samples of docs/next-anim.md). One write a frame; nothing else. + // out, and when, for a recording at the frames' own times. One write a + // frame; nothing else. if (frame_capture_dir) |dir| captureSeries(dir, @as([*]const u8, @ptrCast(mapped))[0..size], sw, sh); // The cell shader already produced premultiplied backgrounds with opaque // foreground ink. Copy that alpha unchanged; never modulate the full frame. @@ -7512,7 +7512,7 @@ fn bodyPixels(region: pardes.Region, layout: CellLayout) [4]f32 { }; } -/// The frame's decor, group by group (docs/render-pipeline.md §3.4), all of it +/// The frame's decor, group by group (docs/render-pipeline.md), all of it /// read from the regions and the palette: the page's rules and the panes' /// rails, rules and grip marks with the page, notice rules with the /// notices, bar cursors with the ink. @@ -8222,7 +8222,7 @@ const Caret = struct { seen: struct { owner: u8 = pardes.Region.none, line: i32 = 0, x: u16 = 0, y: u16 = 0 } = .{}, /// The default flavour's spring, as fast again as the caret follows - /// input (§8.1: it settles in 90-150 ms). + /// input (it settles in 90-150 ms). const omega: f32 = 34 * 2.4; /// The trailing corners of a jump, a little behind the leading ones. const follow: f32 = 0.85; |
