Commit 68e7fe5
committed
fix(wgc): make the GPU encode path opt-in until it earns the default
It has one confirmed success and one confirmed regression. On the machine in
#252 it took display and window capture from a 13-second hang to a 105 ms stop.
On the machine in #336 -- the same person who reported #327 -- it ended
recording outright, where the CPU path had been producing video.
Its fallbacks cover every check made inside initialize(). Nothing covers a
failure that only shows up once frames are flowing, which is exactly what #336
is: the pipeline comes up, the sink writer is configured for NV12, and then a
per-frame call fails with nowhere left to fall back to.
Defaulting it on makes every user carry that risk so that the few who reproduce
#252 might not have to, and #252 is not confirmed fixed by anyone. So: off, and
OPENSCREEN_WGC_ENABLE_DXGI_INPUT=1 turns it on, which is what the people in
#252 and #327 should be given to test with.
Nothing is reverted. The path, its six review fixes, the writerMutex_ lock-order
split, the stop breadcrumbs and the adapter reporting all stay -- they are
either independent of this default or exist to diagnose the bug it was written
for. The one line is the whole change, which is the point: the code was fine,
the confidence behind switching it on for everyone was not.
Earning the default back means one of two things: a failure mid-encode degrades
to the CPU path instead of ending the recording, or someone on the affected
hardware confirms it fixes #252.1 parent be6e883 commit 68e7fe5
3 files changed
Lines changed: 23 additions & 16 deletions
File tree
- electron/native
- wgc-capture/src
- technical-documentation/architecture
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
718 | 719 | | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
726 | 733 | | |
| 734 | + | |
727 | 735 | | |
728 | | - | |
729 | | - | |
| 736 | + | |
730 | 737 | | |
731 | 738 | | |
732 | 739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments