timeline: name the line's page-mapping jobs #439

Manually merged
github merged 1 commit from github-bot/gh-439 into gh-pr/439/base 2026-12-04 18:54:54 +00:00 AGit
Owner

@⁠Benflex1 on GitHub · 2026-12-04 03:38 UTC · original
Benflex1:timeline-map-label → main · +1 −0 · 1 files · 1 commits · merged 2026-12-04 18:48 UTC

Problem

In queue/behind.rs, Job::go names each job's timeline span. Job::Map (a CopyPageMappings batch applied on the line) has no arm of its own, so it falls into _ => and shows up as "the line: a wait that is met". Wait, Value and Lists are the jobs that arm was meant for, and they do nothing there.

On a camera-turn replay this hid 3–14 ms per frame of page-mapping work on the submitting thread. It looked like idle fence waiting, so it was easy to overlook (data in #365).

Change

One arm: Job::Map(..) => "the line: page mappings". Timeline span name only; no behaviour change. Builds with and without diagnostics; rustfmt clean.

**@⁠Benflex1** on GitHub · 2026-12-04 03:38 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/439) `Benflex1:timeline-map-label` → `main` · +1 −0 · 1 files · 1 commits · merged 2026-12-04 18:48 UTC ## Problem In `queue/behind.rs`, `Job::go` names each job's timeline span. `Job::Map` (a `CopyPageMappings` batch applied on the line) has no arm of its own, so it falls into `_ =>` and shows up as **"the line: a wait that is met"**. `Wait`, `Value` and `Lists` are the jobs that arm was meant for, and they do nothing there. On a camera-turn replay this hid 3–14 ms per frame of page-mapping work on the submitting thread. It looked like idle fence waiting, so it was easy to overlook (data in #365). ## Change One arm: `Job::Map(..) => "the line: page mappings"`. Timeline span name only; no behaviour change. Builds with and without `diagnostics`; rustfmt clean.
Job::Map fell into the catch-all arm of Job::go and showed in timelines as
"the line: a wait that is met", although Wait, Value and Lists do nothing
there. On a camera-turn replay that hid 3-14 ms per frame of page-mapping
work (CopyPageMappings) on the submitting thread.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 03:42:11 +00:00
Author
Owner

@⁠Luxuride on GitHub · 2026-12-04 11:16 UTC · original

Read this one against its merge base rather than the branch tip, since the branch is ~42 commits behind.

The change is the right one and there is nothing I would ask for: Job::Map is the only job in the match at crates/victory-gpu/src/queue/behind.rs:721-725 that both does real work (Job::Map(apply) => apply() at :778) and fell into _ => "the line: a wait that is met", so the old label was wrong rather than merely vague. timeline::span is not feature-gated, so the new string is compiled in both profiles, and nothing anywhere asserts these span names (grep "the line:" finds only this file).

Ship it.

**@⁠Luxuride** on GitHub · 2026-12-04 11:16 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/439#issuecomment-7409868923) Read this one against its merge base rather than the branch tip, since the branch is ~42 commits behind. The change is the right one and there is nothing I would ask for: `Job::Map` is the only job in the match at `crates/victory-gpu/src/queue/behind.rs:721-725` that both does real work (`Job::Map(apply) => apply()` at `:778`) and fell into `_ => "the line: a wait that is met"`, so the old label was wrong rather than merely vague. `timeline::span` is not feature-gated, so the new string is compiled in both profiles, and nothing anywhere asserts these span names (`grep "the line:"` finds only this file). Ship it.
github-bot changed target branch from main to gh-pr/439/base 2026-12-04 18:54:33 +00:00
github manually merged commit 68aed68fcd into gh-pr/439/base 2026-12-04 18:54:37 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.