[repo] Docs: Lumen L0 results (licences, FP16 capture, NVENC API 12.0, timings); S-23 to S-25
This commit is contained in:
+47
-1
@@ -90,6 +90,8 @@ Windows 11, where the border can be turned off. Reasons: the reference PC runs W
|
||||
WGC would draw a yellow border over the game; duplication captures exclusive-fullscreen games; and it hands us FP16
|
||||
directly. Sources: S-22 (section 9).
|
||||
|
||||
- **DPI awareness**: lumen-host is per-monitor DPI aware (v2). Measured in L0: without it `DuplicateOutput1`
|
||||
fails with `DXGI_ERROR_UNSUPPORTED` and output sizes are DPI-virtualised.
|
||||
- **Formats asked for**: `R16G16B16A16_FLOAT`, `R10G10B10A2_UNORM`, `B8G8R8A8_UNORM` (the last one always, as
|
||||
Microsoft asks). The format that arrives decides the colour path (1.3).
|
||||
- **Frames only on change**: duplication delivers a frame only when something changed. The pacer repeats the last
|
||||
@@ -153,7 +155,8 @@ explicit at every step and tested with patterns (7.5).
|
||||
- **Bitrate**: from the client's request (`configuredBitrateKbps`), capped by what the encoder supports; adaptive
|
||||
bitrate belongs to Lumen's own transport (roadmap Day 4).
|
||||
- **Interface to NVENC**: NVIDIA's public API header and the driver's `nvEncodeAPI64.dll`, loaded at run time, so
|
||||
nothing of NVIDIA ships in Arena Domi. The header's licence is checked and logged in L0 (risk R12). We do not read
|
||||
nothing of NVIDIA ships in Arena Domi. The header is MIT-licensed by its own notice; L0 settled which one (section
|
||||
10: API 12.0, because current drivers refuse the older API's presets). We do not read
|
||||
the source of GPL or LGPL projects that wrap NVENC (FFmpeg, OBS Studio and the like); see 6.1.
|
||||
|
||||
### 1.5 Audio
|
||||
@@ -520,3 +523,46 @@ Desktop Duplication, HDR and advanced colour, `GraphicsCaptureSession` (`IsBorde
|
||||
for UIAccess, `CreateSyntheticPointerDevice` / `InjectSyntheticPointerInput`, and WASAPI loopback recording with
|
||||
process loopback activation. Everything else here comes from this repository's own documents and the 2026-12-04
|
||||
live evidence (the phone's input packets).
|
||||
|
||||
---
|
||||
|
||||
## 10. L0 results (2026-12-04)
|
||||
|
||||
**Done:** the licence reading and the GPU spike. The spike is a throwaway Rust program with a small C shim over the
|
||||
NVENC header, kept outside git. It showed no window, injected nothing and opened no socket. The desktop bitstreams
|
||||
never left memory (nothing of the screen was written to disk); only two synthetic-pattern encodes were written, and
|
||||
they stay outside git.
|
||||
|
||||
**Licences** (logged as S-23 to S-25 in [CLEAN_ROOM.md](CLEAN_ROOM.md)):
|
||||
|
||||
| Piece | Licence | Note |
|
||||
| :-- | :-- | :-- |
|
||||
| `nvEncodeAPI.h`, API **12.0**, from NVIDIA's own public repository (VideoProcessingFramework, Apache-2.0 repository, archived) | MIT (the header's own notice) | used. No account and no licence acceptance needed |
|
||||
| `nvEncodeAPI.h`, API 8.1, NVIDIA's video-sdk-samples | MIT | **not usable**: the driver refuses its presets (below) |
|
||||
| NVENC API 12.1 or newer headers | NVIDIA's SDK download (account and terms) | not needed for anything planned; if a later feature needs it, that download is Mark's decision |
|
||||
| libopus | BSD-3-Clause style (Xiph COPYING) | for L2 |
|
||||
| `opus` crate / `audiopus_sys` | Apache-2.0 or MIT / ISC | candidates for L2, chosen then |
|
||||
| ViGEmClient | MIT (repository archived) | the client library for ViGEmBus |
|
||||
| ViGEmBus | BSD-3-Clause (repository archived) | Mark installs it himself; never shipped |
|
||||
| `vigem-client` crate | MIT | candidate binding for L3 |
|
||||
| `windows` crate | MIT or Apache-2.0 | used by the spike |
|
||||
|
||||
**Measured on the reference PC** (RTX 3090, driver NVENC API maximum 13.1; primary 2560x1440 HDR; one run,
|
||||
idle desktop):
|
||||
|
||||
| What | Result |
|
||||
| :-- | :-- |
|
||||
| Display state | both outputs report colour space `RGB_FULL_G2084_NONE_P2020` (HDR on); primary 10 bits per colour; peak 1499 nits, full frame 799; SDR white level 240 nits |
|
||||
| Desktop Duplication | the HDR desktop arrives as `R16G16B16A16_FLOAT` (FP16 scRGB), as planned. **Needs per-monitor DPI awareness**: without it `DuplicateOutput1` returned `DXGI_ERROR_UNSUPPORTED` and the 4K output showed as 2560x1440 |
|
||||
| NVENC with the API 8.1 header | `nvEncGetEncodePresetConfig` refuses the legacy low-latency preset (`NV_ENC_ERR_UNSUPPORTED_PARAM`) and initialisation without a preset fails (`NV_ENC_ERR_INVALID_PARAM`) |
|
||||
| NVENC with the API 12.0 header | preset P1, tuning "ultra low latency", CBR 20 Mbit/s, VBV one frame, infinite GOP: works, 8-bit and 10-bit HEVC; the first access unit is VPS, SPS, PPS, IDR |
|
||||
| Copy of the captured frame (GPU, waited) | 1.6 ms (one sample: the desktop was idle, so only one new frame arrived) |
|
||||
| Colour pass FP16 → NV12 / P010, 2560x1440 (one compute dispatch, waited) | median 0.57 / 0.50 ms, p95 1.01 / 0.93 ms |
|
||||
| NVENC HEVC 2560x1440, synchronous | 8-bit median 2.56 ms, p95 2.70 ms; 10-bit median 2.56 ms, p95 2.80 ms |
|
||||
| NVENC HEVC 1920x1080 (pattern) | median 1.4 to 1.5 ms, p95 1.7 to 2.5 ms |
|
||||
| Capture to bitstream, sum of medians, 1440p | about **4.7 ms** on the host |
|
||||
|
||||
What L0 did not settle (and where it is settled): capture timing under motion and at a game's frame rate (L2,
|
||||
with the harness); whether the colour pass matches what a decoder shows (L4, the pattern files are the start);
|
||||
the asynchronous NVENC mode, which NVIDIA recommends on Windows (L2).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user