e582faed841b4f2d3f225f2c337a94af9d38665b
5
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
e582faed84 |
dxgi: track damage per output and translate it into atlas space
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
build / module (push) Failing after 16s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / obs (gcc) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / host-linux (push) Failing after 19s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 20s
build / docs (push) Failing after 3s
build / idd (push) Canceled after 0s
build / host-windows-native (push) Canceled after 0s
Damage is now gathered from every output that presented this cycle rather than reporting the whole frame. An output that did not present contributes nothing, so a static monitor costs no transfer at all — which matters when the atlas is tens of megabytes and only one display is moving. The translation clips each rectangle to the display it came from, so one output's damage can never reach into another's part of the atlas, and scaling is applied after placement since the downscale applies to the frame as a whole. If the combined damage cannot be described the count is left at zero, meaning full damage: redrawing too much only costs time, whereas redrawing too little leaves stale pixels on screen. lgDisplaysRectToAtlas is in common and unit tested, including a sweep of awkward inputs asserting no translated rectangle ever escapes its display. The DXGI plumbing around it still needs hardware. |
||
|
|
06df69b9e2 |
dxgi: capture all of the adapter's outputs into one frame
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / module (push) Failing after 17s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 21s
build / host-windows-cross (push) Failing after 22s
build / host-linux (push) Failing after 24s
build / obs (clang) (push) Failing after 21s
build / docs (push) Failing after 3s
build / obs (gcc) (push) Failing after 19s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
Duplicates every attached output on the chosen adapter and composes them into an atlas texture with CopySubresourceRegion, handing that to the post processors in place of the acquired texture. Nothing downstream is aware of the difference. Secondary outputs are polled with a zero timeout rather than waited on, since outputs present independently and waiting in turn would drag the frame rate down to that of the slowest monitor. A display with nothing new keeps the pixels it already has in the atlas. Acquired frames are released at the start of the next capture, not after the copy, because the copies are only recorded into the device context and releasing a frame invalidates its surface. Falls back to capturing a single output, which is what this backend has always done, whenever the situation cannot be handled safely: mixed capture formats, since a subresource copy cannot convert between them, a rotated output, since the packer expects final orientation, or a specific output having been requested. A wrong atlas is worse than one display. Damage is reported as full frame while composing. The dirty rectangles come from the primary alone and in its own coordinates, so they say nothing about the other displays, and a wrong damage rectangle leaves stale pixels on screen. Cross compiles clean. Untested on hardware: the acquire, release and timing behaviour needs a real multi-monitor Windows machine. |
||
|
|
76207dce41 |
common: consider every subset sum as a candidate shelf width
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
build / host-linux (push) Failing after 20s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 19s
build / module (push) Failing after 16s
build / docs (push) Failing after 3s
build / obs (gcc) (push) Failing after 21s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
Only trying running totals in packing order missed layouts where the displays sharing a shelf are not the first few. A 4K above two 1440p side by side is the common case: the 4K sorts first by height but belongs on a shelf of its own, so the useful width is the sum of the other two. For that arrangement the atlas drops from 3840x5040 to 5120x3600, about 5% fewer pixels per frame. With at most 8 displays this is 255 subsets, so the extra search costs nothing. |
||
|
|
456462f8fb |
dxgi: document what multi-monitor capture requires on Windows
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 22s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 19s
build / docs (push) Failing after 3s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / module (push) Failing after 16s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 21s
build / host-linux (push) Failing after 19s
build / obs (gcc) (push) Failing after 20s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
The frame format, packer and client compositor are backend agnostic and already work; this backend still reports a single display. Records the shape of the change and the hazards found reading it: mixed formats, per-output HDR and rotation, frame timing, release discipline and COM lifetime. |
||
|
|
b327abf6c6 |
doc: document multi-monitor support
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / host-linux (push) Failing after 19s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 19s
build / docs (push) Failing after 3s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 18s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 18s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 18s
build / module (push) Failing after 15s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 18s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 18s
build / obs (gcc) (push) Failing after 19s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
Covers how the packed frame works, the shared memory sizing that the feature depends on, display selection, running one client per guest display, and the current limitations. |