D3D12.X: XCL_OVERLAY draws fps / stats into the shown frame #445

Open
ryosen0 wants to merge 2 commits from upstream-pr/450 into main
ryosen0 commented 2026-11-24 00:29:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ryosen0 on 2026-11-24T00:29:41Z.


XCL_OVERLAY=1 draws a small stats panel into the top-left corner of the frame XCL shows: the title's fps and frame time, draws and dispatches per second, the process's commit and the adapter's video memory, refreshed once a second. Off unless asked for.

What is in it

  • hle/overlay.rs: the sample-to-text formatting, a 5x7 bitmap font (only the characters the lines use) and the panel rendered on the CPU into BGRA/RGBA pixels matching the back buffer's format, rows padded to a 256-byte pitch. 5 unit tests.
  • present.rs: after the game-image copy, the panel is copied from a small upload buffer into the back buffer at (8, 8) on XCL's own command list - part of the image, so it survives the flip-model swap chain and shows in screenshots and recordings. (A child window was tried first: the flip presentation draws over it - it never appears.) No extra window, no GDI, no input taken, none of the title's resources touched. 8-bit back buffers only; 10-bit / fp16 frames draw nothing.
  • host.rs logs one line when enabled; README.md documents the variable.
  • cd41749 fixes the two problems upipibi found by reading the copy: the copy locations cloned into ManuallyDrop (one leaked back-buffer reference per overlay frame — ResizeBuffers then fails — and every recreated panel buffer stayed alive); now they borrow via transmute_copy as readback_copy does. The placed footprint's RowPitch was w * 4, almost never a multiple of D3D12_TEXTURE_DATA_PITCH_ALIGNMENT; overlay::panel now pads its rows to 256 and the footprint uses the same panel_row_pitch. Tests panel_rows_are_at_a_256_byte_pitch and panel_row_pitch_is_256_aligned fail without the change.

Tested

  • RTX 3060 Ti 8 GB (wave32), Ryzen 7 9800X3D, driver 32.0.16.1742, Windows 11.
  • cargo test --workspace --no-fail-fast -- --test-threads=1 on 093f600: 709 passed, 0 failed, 41 ignored; 2 GPU SKIPPED (no wave64 on this adapter).
  • Retail runs with XCL_OVERLAY=1 (panel visible, verified by PrintWindow capture in the earlier round): clean exit, steady 60 presents / 2 s.

Regression run
Main at the branch's merge-base (e50836b, current main — includes #762 translated cache, #713 full symbols, #771 Discord invite):

xcl-smoke v1
commit: e50836bdf6f5c026f281d545ed86fb2f07ba6e6a
gpu: NVIDIA GeForce RTX 3060 Ti
title: ScarlettGame
seconds: 90
exit: 0x0
frames shown: 2417 (PresentX 2417)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14601 MB

This PR (093f600, rebased onto e50836b; only a README conflict with #762's bullet, both bullets kept):

xcl-smoke v1
commit: 093f6002a78f85742532eea7b9ec27b4971e1a18
gpu: NVIDIA GeForce RTX 3060 Ti
title: ScarlettGame
seconds: 90
exit: 0x0
frames shown: 2398 (PresentX 2398)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14468 MB

Not tested

  • 10-bit / fp16 back buffers (the overlay draws nothing there by design), other GPUs, wave64 hardware.
  • A ResizeBuffers / mode change with the overlay on (the leak fix removes the known blocker; no runtime resize repro was run). The debug-layer rejection of the unaligned pitch was not reproduced on this machine (Graphics Tools not installed); the alignment fix is verified by the unit tests and code reading.

AI use
GPT-6.2 Astra (API model selector) in DSH wrote the code and the fixes, ran the builds, tests and runs, and wrote this description; the human contributor watched the runs and reviewed the change. The two fixes follow upipibi's read-only review, credited in the commit message.

<!-- greyfinch-sync:ivall/xcl:issue:5463736552 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/450). Originally posted by [ryosen0](https://github.com/ryosen0) on 2026-11-24T00:29:41Z. --- `XCL_OVERLAY=1` draws a small stats panel into the top-left corner of the frame XCL shows: the title's fps and frame time, draws and dispatches per second, the process's commit and the adapter's video memory, refreshed once a second. Off unless asked for. **What is in it** - `hle/overlay.rs`: the sample-to-text formatting, a 5x7 bitmap font (only the characters the lines use) and the panel rendered on the CPU into BGRA/RGBA pixels matching the back buffer's format, rows padded to a 256-byte pitch. 5 unit tests. - `present.rs`: after the game-image copy, the panel is copied from a small upload buffer into the back buffer at (8, 8) on XCL's own command list - part of the image, so it survives the flip-model swap chain and shows in screenshots and recordings. (A child window was tried first: the flip presentation draws over it - it never appears.) No extra window, no GDI, no input taken, none of the title's resources touched. 8-bit back buffers only; 10-bit / fp16 frames draw nothing. - `host.rs` logs one line when enabled; `README.md` documents the variable. - `cd41749` fixes the two problems upipibi found by reading the copy: the copy locations cloned into `ManuallyDrop` (one leaked back-buffer reference per overlay frame — `ResizeBuffers` then fails — and every recreated panel buffer stayed alive); now they borrow via `transmute_copy` as `readback_copy` does. The placed footprint's `RowPitch` was `w * 4`, almost never a multiple of `D3D12_TEXTURE_DATA_PITCH_ALIGNMENT`; `overlay::panel` now pads its rows to 256 and the footprint uses the same `panel_row_pitch`. Tests `panel_rows_are_at_a_256_byte_pitch` and `panel_row_pitch_is_256_aligned` fail without the change. **Tested** - RTX 3060 Ti 8 GB (wave32), Ryzen 7 9800X3D, driver 32.0.16.1742, Windows 11. - `cargo test --workspace --no-fail-fast -- --test-threads=1` on `093f600`: **709 passed, 0 failed, 41 ignored**; 2 GPU SKIPPED (no wave64 on this adapter). - Retail runs with `XCL_OVERLAY=1` (panel visible, verified by PrintWindow capture in the earlier round): clean exit, steady 60 presents / 2 s. **Regression run** Main at the branch's merge-base (`e50836b`, current main — includes #762 translated cache, #713 full symbols, #771 Discord invite): ``` xcl-smoke v1 commit: e50836bdf6f5c026f281d545ed86fb2f07ba6e6a gpu: NVIDIA GeForce RTX 3060 Ti title: ScarlettGame seconds: 90 exit: 0x0 frames shown: 2417 (PresentX 2417) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14601 MB ``` This PR (`093f600`, rebased onto `e50836b`; only a README conflict with #762's bullet, both bullets kept): ``` xcl-smoke v1 commit: 093f6002a78f85742532eea7b9ec27b4971e1a18 gpu: NVIDIA GeForce RTX 3060 Ti title: ScarlettGame seconds: 90 exit: 0x0 frames shown: 2398 (PresentX 2398) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14468 MB ``` **Not tested** - 10-bit / fp16 back buffers (the overlay draws nothing there by design), other GPUs, wave64 hardware. - A `ResizeBuffers` / mode change with the overlay on (the leak fix removes the known blocker; no runtime resize repro was run). The debug-layer rejection of the unaligned pitch was not reproduced on this machine (Graphics Tools not installed); the alignment fix is verified by the unit tests and code reading. **AI use** GPT-6.2 Astra (API model selector) in DSH wrote the code and the fixes, ran the builds, tests and runs, and wrote this description; the human contributor watched the runs and reviewed the change. The two fixes follow upipibi's read-only review, credited in the commit message.
TheHoracio commented 2026-11-24 07:05:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by TheHoracio on 2026-11-24T00:46:30Z.


Test report on AMD RDNA3: RX 7800 XT (16 GB, wave32 and wave64), driver 32.0.32015.7029, Ryzen 7 9800X3D, Windows 11 Pro 10.0.26300, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug build. No retail data was used.

Tested: the PR head 057eabd as it is (on its base 2997c9a).

  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 680 passed, 0 failed, 41 ignored, no SKIPPED tests.
  • The four new hle::overlay tests pass: every_character_the_lines_produce_has_a_glyph, lines_show_the_rate_over_the_interval, panel_is_opaque_with_green_text_in_the_formats_channel_order, zero_frames_is_zero_fps_not_a_division_by_zero.

Not tested: the overlay drawn on screen (XCL_OVERLAY=1 on a title), a regression run, a release build, the head merged onto current main.

AI use: Claude Code ran the commands and drafted this comment; the runs are real runs on the hardware above.

<!-- greyfinch-sync:ivall/xcl:comment:7118419228 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/450#issuecomment-7118419228). Originally posted by [TheHoracio](https://github.com/TheHoracio) on 2026-11-24T00:46:30Z. --- Test report on **AMD RDNA3**: RX 7800 XT (16 GB, wave32 and wave64), driver 32.0.32015.7029, Ryzen 7 9800X3D, Windows 11 Pro 10.0.26300, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug build. No retail data was used. **Tested:** the PR head `057eabd` as it is (on its base `2997c9a`). - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **680 passed, 0 failed, 41 ignored**, no SKIPPED tests. - The four new `hle::overlay` tests pass: `every_character_the_lines_produce_has_a_glyph`, `lines_show_the_rate_over_the_interval`, `panel_is_opaque_with_green_text_in_the_formats_channel_order`, `zero_frames_is_zero_fps_not_a_division_by_zero`. **Not tested:** the overlay drawn on screen (`XCL_OVERLAY=1` on a title), a regression run, a release build, the head merged onto current `main`. AI use: Claude Code ran the commands and drafted this comment; the runs are real runs on the hardware above.
upipibi commented 2026-11-24 07:06:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T04:36:55Z.


Two problems in the overlay copy at bac87c3, found by reading the code (not run):

1. A reference leaks on every overlay frame, and ResizeBuffers then fails (present.rs:744, :749)
pResource: ManuallyDrop::new(Some(bb.clone())) AddRefs the back buffer, and the ManuallyDrop means that reference is never released. The same happens to the overlay buffer at :749. The other copy locations in this file use transmute_copy (:559, :905-906) to avoid exactly this. While XCL_OVERLAY is on, every back buffer gains one reference per frame. DXGI's ResizeBuffers fails while any back-buffer reference is outstanding, so the first resize or mode change after the overlay has drawn makes ensure_swapchain fail, and the window stops presenting. Every recreated overlay buffer (the panel changes width with its text) also stays alive. Using transmute_copy(&bb) / transmute_copy(tex), as at :905, fixes both.

2. RowPitch isn't 256-aligned (present.rs:754)
RowPitch: w * 4 with w = 16 + 12 * cols (overlay.rs panel) gives 64 + 48 * cols bytes, which is almost never a multiple of D3D12_TEXTURE_DATA_PITCH_ALIGNMENT (256). A placed footprint needs a 256-aligned pitch; the debug layer (XCL_D3D12_DEBUG=1) rejects the copy, and behaviour without it is undefined (NVIDIA tolerates it). Padding each row in panel()/overlay_copy to align_up(w * 4, 256) fixes it.

Also on merge order: besides #674, this PR conflicts textually in present.rs with #711, #732, #733, #604, #555, #615, #734 and #735 (each of those merges cleanly into main).

AI-assisted (Claude Code), read-only review.

<!-- greyfinch-sync:ivall/xcl:comment:7122181159 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/450#issuecomment-7122181159). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T04:36:55Z. --- Two problems in the overlay copy at `bac87c3`, found by reading the code (not run): **1. A reference leaks on every overlay frame, and `ResizeBuffers` then fails** (`present.rs:744`, `:749`) `pResource: ManuallyDrop::new(Some(bb.clone()))` AddRefs the back buffer, and the `ManuallyDrop` means that reference is never released. The same happens to the overlay buffer at `:749`. The other copy locations in this file use `transmute_copy` (`:559`, `:905-906`) to avoid exactly this. While `XCL_OVERLAY` is on, every back buffer gains one reference per frame. DXGI's `ResizeBuffers` fails while any back-buffer reference is outstanding, so the first resize or mode change after the overlay has drawn makes `ensure_swapchain` fail, and the window stops presenting. Every recreated overlay buffer (the panel changes width with its text) also stays alive. Using `transmute_copy(&bb)` / `transmute_copy(tex)`, as at `:905`, fixes both. **2. `RowPitch` isn't 256-aligned** (`present.rs:754`) `RowPitch: w * 4` with `w = 16 + 12 * cols` (`overlay.rs` `panel`) gives `64 + 48 * cols` bytes, which is almost never a multiple of `D3D12_TEXTURE_DATA_PITCH_ALIGNMENT` (256). A placed footprint needs a 256-aligned pitch; the debug layer (`XCL_D3D12_DEBUG=1`) rejects the copy, and behaviour without it is undefined (NVIDIA tolerates it). Padding each row in `panel()`/`overlay_copy` to `align_up(w * 4, 256)` fixes it. Also on merge order: besides #674, this PR conflicts textually in `present.rs` with #711, #732, #733, #604, #555, #615, #734 and #735 (each of those merges cleanly into `main`). AI-assisted (Claude Code), read-only review.
ryosen0 commented 2026-11-24 07:06:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ryosen0 on 2026-11-24T04:59:25Z.


@upipibi both findings confirmed in the code and fixed in cd41749 — thank you, the reference leak was real and exactly as you described:

  1. Borrowed copy locations. ManuallyDrop::new(Some(bb.clone())) / (tex.clone()) → transmute_copy(&bb) / transmute_copy(tex), the same pattern as readback_copy at :905. One leaked back-buffer reference per overlay frame (and every recreated panel buffer alive) is gone.
  2. 256-aligned pitch. overlay::panel now pads each row to (w*4).div_ceil(256)*256 (transparent padding, outside the copied box), and the footprint uses the same panel_row_pitch(w). Tests: panel_rows_are_at_a_256_byte_pitch (pixel-level, over render_panel with given lines — fails without the padding) and panel_row_pitch_is_256_aligned (every font-producible width 16+12*cols).

Measured on the RTX 3060 Ti: full suite 691 passed, 0 failed, 41 ignored (--test-threads=1); smoke blocks (merge-base cb868b2 + head cd41749) refreshed in the description, both steady 60 presents / 2 s. Not run: a runtime ResizeBuffers repro with the overlay on, and the debug-layer rejection (no Graphics Tools on this machine) — both stated in Not tested.

On merge order: noted, the present.rs textual conflicts with #711/#732/#733/#604/#555/#615/#734/#735 will need a rebase after whichever lands first; happy to rebase on request.

AI use: GPT-6.2 Astra (API model selector) in DSH wrote the fixes and their tests, ran the suite and smokes, and drafted this reply; the human contributor reviewed the diff before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7122520862 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/450#issuecomment-7122520862). Originally posted by [ryosen0](https://github.com/ryosen0) on 2026-11-24T04:59:25Z. --- @upipibi both findings confirmed in the code and fixed in **`cd41749`** — thank you, the reference leak was real and exactly as you described: 1. **Borrowed copy locations.** `ManuallyDrop::new(Some(bb.clone()))` / `(tex.clone())` → `transmute_copy(&bb)` / `transmute_copy(tex)`, the same pattern as `readback_copy` at `:905`. One leaked back-buffer reference per overlay frame (and every recreated panel buffer alive) is gone. 2. **256-aligned pitch.** `overlay::panel` now pads each row to `(w*4).div_ceil(256)*256` (transparent padding, outside the copied box), and the footprint uses the same `panel_row_pitch(w)`. Tests: `panel_rows_are_at_a_256_byte_pitch` (pixel-level, over `render_panel` with given lines — fails without the padding) and `panel_row_pitch_is_256_aligned` (every font-producible width `16+12*cols`). Measured on the RTX 3060 Ti: full suite **691 passed, 0 failed, 41 ignored** (`--test-threads=1`); smoke blocks (merge-base `cb868b2` + head `cd41749`) refreshed in the description, both steady 60 presents / 2 s. Not run: a runtime `ResizeBuffers` repro with the overlay on, and the debug-layer rejection (no Graphics Tools on this machine) — both stated in **Not tested**. On merge order: noted, the `present.rs` textual conflicts with #711/#732/#733/#604/#555/#615/#734/#735 will need a rebase after whichever lands first; happy to rebase on request. **AI use:** GPT-6.2 Astra (API model selector) in DSH wrote the fixes and their tests, ran the suite and smokes, and drafted this reply; the human contributor reviewed the diff before posting.
MesshM commented 2026-11-24 07:06:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T05:00:47Z.


Test run of bac87c3db56e40969409aa873e4c817e70bab2ef on AMD RDNA4. I merged it onto current main 64b3f35 locally (clean merge).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 705 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 664 passed, 0 failed, 21 ignored
  • 0 SKIPPED; the overlay tests pass, zero_frames_is_zero_fps_not_a_division_by_zero included (the overlay itself was not drawn: no title).

Review: Off unless XCL_OVERLAY=1. I did not check @upipibi's reference-leak point, which needs the copy path to run; this run only shows the suite is green on RDNA4.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

<!-- greyfinch-sync:ivall/xcl:comment:7122541717 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/450#issuecomment-7122541717). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T05:00:47Z. --- Test run of `bac87c3db56e40969409aa873e4c817e70bab2ef` on AMD RDNA4. I merged it onto current `main` `64b3f35` locally (clean merge). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **705 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 664 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; the `overlay` tests pass, `zero_frames_is_zero_fps_not_a_division_by_zero` included (the overlay itself was not drawn: no title). **Review:** Off unless `XCL_OVERLAY=1`. I did not check @upipibi's reference-leak point, which needs the copy path to run; this run only shows the suite is green on RDNA4. **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
ryosen0 commented 2026-11-24 07:06:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ryosen0 on 2026-11-24T05:43:02Z.


Rebased onto current main (e50836b) — head is now 093f600. The only conflict was README.md against #762's translated-cache bullet; both bullets kept.

Fresh measurements on this machine (RTX 3060 Ti, Ryzen 7 9800X3D):

  • suite on 093f600: 709 passed, 0 failed, 41 ignored (2 GPU SKIPPED, no wave64);
  • paired 90 s smokes: main e50836b 2417 frames / 14601 MB peak, head 093f600 (XCL_OVERLAY=1) 2398 frames / 14468 MB peak — both steady 60 presents / 2 s, clean exit, no device removals. Blocks in the description updated.

AI use: GPT-6.2 Astra (API model selector) in DSH did the rebase, ran the suite and smokes, and drafted this comment; the human contributor reviewed the numbers before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7123206994 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/450#issuecomment-7123206994). Originally posted by [ryosen0](https://github.com/ryosen0) on 2026-11-24T05:43:02Z. --- Rebased onto current main (`e50836b`) — head is now `093f600`. The only conflict was README.md against #762's translated-cache bullet; both bullets kept. Fresh measurements on this machine (RTX 3060 Ti, Ryzen 7 9800X3D): - suite on `093f600`: **709 passed, 0 failed, 41 ignored** (2 GPU SKIPPED, no wave64); - paired 90 s smokes: main `e50836b` 2417 frames / 14601 MB peak, head `093f600` (`XCL_OVERLAY=1`) 2398 frames / 14468 MB peak — both steady 60 presents / 2 s, clean exit, no device removals. Blocks in the description updated. **AI use:** GPT-6.2 Astra (API model selector) in DSH did the rebase, ran the suite and smokes, and drafted this comment; the human contributor reviewed the numbers before posting.
DavidM1911 commented 2026-11-25 15:07:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T14:15:47Z.


Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7165006604 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/450#issuecomment-7165006604). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T14:15:47Z. --- Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
github-actions[bot] commented 2026-11-29 20:41:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:41:59Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262287520 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/450#issuecomment-7262287520). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:41:59Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 03:09:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:09:10Z.


Triage (#1607) – head 093f600

No open or merged PR adds an in-frame stats overlay (#516, merged, shows fps in the window title only).
The overlay buffer is rewritten after present_now waits on the previous copy's fence, so the upload buffer is not overwritten while the GPU reads it. Rebase note: main's real::video_memory() now returns Option<(u64, u64, u64)>, so overlay::text needs updating; the PR conflicts with main. The test panel_is_opaque_with_green_text_in_the_formats_channel_order mostly asserts its own local constants.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7299382639 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/450#issuecomment-7299382639). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:09:10Z. --- **Triage (#1607)** – head 093f600 No open or merged PR adds an in-frame stats overlay (#516, merged, shows fps in the window title only). The overlay buffer is rewritten after `present_now` waits on the previous copy's fence, so the upload buffer is not overwritten while the GPU reads it. Rebase note: main's `real::video_memory()` now returns `Option<(u64, u64, u64)>`, so `overlay::text` needs updating; the PR conflicts with main. The test `panel_is_opaque_with_green_text_in_the_formats_channel_order` mostly asserts its own local constants. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/450:upstream-pr/450'
git switch 'upstream-pr/450'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/450'
git switch 'upstream-pr/450'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/450'
git switch 'upstream-pr/450'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/450'
git switch 'main'
git merge --squash 'upstream-pr/450'
git switch 'main'
git merge --ff-only 'upstream-pr/450'
git switch 'main'
git merge 'upstream-pr/450'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!445
No description provided.