Repository navigation
Conversation
|
@greptileai review |
|
@kyzer1023 is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
|
@greptileai review |
|
@greptileai review |
|
@greptileai review |
|
@greptileai review |
|
Thanks, nice win. The GPU path has no CI coverage (its parity test is ignored) and was only checked on AMD, and driver colour differences wouldn't trigger the fallback. Can you run the pixel-parity test on NVIDIA or Intel and share the result? Also it creates a new texture every frame, so the 3-target pool isn't doing anything yet. |
Retain scaled-frame leases through native encoder copies and paced repeats, and allocate overflow targets only when every pool slot is in flight. Add adapter-selectable pixel parity, allocation and lifetime tests, and explicit WARP capability and CPU-scaling coverage.
|
@greptileai review |
|
@richiemcilroy thanks, both points addressed in 39a47f5. Pool reuse: the scaler now renders straight into the three pooled targets instead of creating and copying into a fresh texture each frame. Each Pixel parity: this machine only has AMD hardware, so I couldn't run NVIDIA or Intel here and don't want to make up numbers. The parity test can now target a specific adapter ( AMD Radeon 780M (vendor 0x1002), RGBA and BGRA identical:
I also tried WARP as a vendor-neutral reference, but it doesn't expose |
Use D3D11 VideoProcessorBlt to scale resized WGC frames into pooled GPU targets. The software encoder reads back only the output-sized texture, and initialization or blit failures retain the existing CPU scaling fallback.
Synthetic texture benchmark medians (3 runs × 12 frames), Ryzen 7 8745HS / Radeon 780M, Windows:
Synthetic output matched the CPU scaler within 1 channel value maximum error in both cases.
Validation:
cargo fmt --all --check,cargo check -p cap-recording, andcargo clippy -p cap-recording -- -D warningspassed. The D3D11 benchmark/pixel test passed.cargo test -p cap-recordinghad three existing AMF instant-mode scenario failures; the 50+ segment case also fails identically on upstreammainat60ef63232.

Confidence Score: 5/5
The PR appears safe to merge; no new blocking issues were found.Summary
This PR moves resized Windows capture frames onto D3D11 and keeps CPU scaling as a fallback.
No new actionable issues were found. This review checked source code; it did not run Windows tests or benchmarks.
Reviews (7) · Last reviewed commit: "fix: lease pooled D3D11 screen scaling t..." · Reviewed by Greptile