Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f1f87ffd2
|
||
|
|
b08c97df4b
|
||
|
|
397a353b31
|
No files matched your search
+6
-2
@@ -60,8 +60,12 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
queue, the graphics card - and for its low-latency state. It is a call FrameLedger makes itself, on the thread
|
||||
that presents the game's frames, through NVIDIA's `nvapi64.dll` only where the game had already loaded it;
|
||||
Direct3D 12 only. A copy of that library sitting in the game's own folder is refused. A call that faults or takes
|
||||
two milliseconds is the last one until the game is closed. Nothing shows these numbers yet: the Agent and the App
|
||||
come next, with the legal texts.
|
||||
two milliseconds is the last one until the game is closed. **The Advanced page shows it** under *Latency*: seven
|
||||
lines, one a stage, and a table of the driver's low-latency state; the line under a session says what became of
|
||||
the read - read, the driver reported no frame, not read and why, or stopped and why. They are the driver's
|
||||
numbers, not a measurement by FrameLedger, and no real game had been read when this was written. **Privacy
|
||||
Policy 2.20 and Disclaimer 2.16** say what is stored and what the part inside a game now does; the terms window
|
||||
will show once.
|
||||
|
||||
- **For developers: room in the shared memory for NVIDIA Reflex latency** (owner decisions D136, D138). Ten reserved
|
||||
words of the block that carries Advanced metrics from a game are now named for the driver's latency report -
|
||||
|
||||
+7
-2
@@ -124,8 +124,13 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
- **Ray tracing** is *Yes*, *No* or *N/A* — measured from the game's ray-tracing calls on Direct3D 12, and
|
||||
N/A where FrameLedger could not look. **Path tracing is never stated as a fact**: there is no API signal
|
||||
for it. You can correct any of these by hand, and your correction is labelled as yours.
|
||||
- HDR output, NVIDIA Reflex latency, the video-memory budget Windows gives a game, and shader-compilation
|
||||
stutter are **not measured yet** — they read N/A. ([Accuracy](legal/ACCURACY.md))
|
||||
- HDR output, end-to-end latency (click to screen), the video-memory budget Windows gives a game, and
|
||||
shader-compilation stutter are **not measured yet** — they read N/A. ([Accuracy](legal/ACCURACY.md))
|
||||
- **NVIDIA's own latency report** is read only with *Advanced metrics* on, only on an NVIDIA card, only in a
|
||||
Direct3D 12 game that uses NVIDIA Reflex: how long the driver says each stage of a frame took, about once a
|
||||
second. They are the driver's numbers, not FrameLedger's measurement. FrameLedger asks the driver for them from
|
||||
inside the game; a read that is slow or faults is switched off until the game is closed, and the session says so.
|
||||
([Advanced metrics](guide/12-advanced-metrics.md))
|
||||
|
||||
## The game's memory
|
||||
|
||||
|
||||
@@ -87,8 +87,15 @@ app too (Help ▸ User guide, Help ▸ Limitations, Help ▸ Accessibility), and
|
||||
> mean, median and peak. The game's other processes (launchers, helpers) are not counted.
|
||||
> - **Video memory:** in use on the whole graphics card, recorded from Windows and GPU-driver telemetry
|
||||
> and charted. **Not measured at all:** the video-memory budget Windows gives a game, which frame
|
||||
> spikes were shader compilation, PC latency (Reflex), and HDR. Stutter count and stutter time are
|
||||
> spikes were shader compilation, end-to-end PC latency, and HDR. Stutter count and stutter time are
|
||||
> measured from frame times.
|
||||
> - **NVIDIA's latency report (only with Advanced metrics on; Direct3D 12; a game that uses NVIDIA Reflex):** how
|
||||
> long the driver says each stage of a frame took — simulation, render submit, present, driver, the operating
|
||||
> system's queue, the graphics card — read from the graphics driver about once a second and shown as the driver
|
||||
> reported it: **the driver's numbers, not a measurement by FrameLedger**, an average of the frames of one read,
|
||||
> never checked against another tool, and not the delay from a click to the screen. Read with a test program
|
||||
> against one driver and one card; **no real game had been read when this was written**. A game that does not use
|
||||
> Reflex has none. The session summary's latency fields stay N/A.
|
||||
> - **Pacing, VSync and the graphics card (since beta.14):** the share of the time below 30 FPS, below 60 FPS and below
|
||||
> the monitor's refresh rate, measured from frame times with small margins so that a game held at its limit is not
|
||||
> counted as below it (a rate less than 2 % under the line reads partly as at it), and how much one frame's time
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ Let `D` = session duration (first → last present), `F_app` = frames the *game*
|
||||
| **Frametime σ** | population stddev of `ft_app` (ms) | 1 |
|
||||
| **Stutter count** | `ft_app[i] > 2 × rollingMedian(ft_app, 19)` (centered, window in **frames**) | 1 |
|
||||
| **Stutter time %** | `Σ ft_app[stutter] / Σ ft_app × 100` | 1 |
|
||||
| **PC latency** | mean/p95 of `reflexLatencyUs` when Reflex reports it | **1 only** |
|
||||
| **PC latency** | mean/p95 of `reflexLatencyUs` when Reflex reports it *(nothing fills `reflexLatencyUs`: a report arrives after its frame's record is written. Since train C, 2026-11-13, the driver's stage report is read as seven Advanced series beside the frames — `18_GPU_VENDOR_APIS` §The inventory — and these session fields stay N/A)* | **1 only** |
|
||||
| **PSO stutter %** | share of stutter frames with `psoCreatedThisFrame > 0` | **1 only** |
|
||||
| **Time below 30 / 60 FPS** (beta.14) | share of `Σ ft_app` in frames that count as below X — `ft > 1.10 × 1000/X`, or the nine-frame rolling median `> 1.02 × 1000/X` (§Pacing) | 1 |
|
||||
| **Time below refresh** (beta.14) | the same over **presents**, X = `display_monitor_hz` — the display's rate, so over what the display received | 1 |
|
||||
|
||||
@@ -872,6 +872,12 @@ planning, the design reviewed against the code before it was approved.
|
||||
- **Privacy Policy 2.18** at beta.44 (approved with that release's plan): 2.17 named two further calls and what
|
||||
they give; Streamline's answers about a feature are in neither list, so they are named, with what of the answer
|
||||
is never read — the lists it points to.
|
||||
- **Privacy Policy 2.20 and Disclaimer 2.16** with train C (wording approved with the plan of 2026-11-13; in no
|
||||
release yet): the first thing read inside a game that is **not an argument of a call the game made**. The Privacy
|
||||
Policy names what is stored — how long each stage of a frame took, as the driver reports it, and the driver's
|
||||
low-latency state; never a time of day, never an input's moment. The Disclaimer drops "API arguments and nothing
|
||||
else" for what is true, and §2 gains the paragraph on the one call the component makes itself: where, how often,
|
||||
on which thread, what it never calls, what ends it, and that a call which never returned could not be stopped.
|
||||
- **Privacy Policy 2.17** at beta.43 (approved with that release's plan): 2.16 listed DLSS's and FSR's upscaling
|
||||
parameters by name, and Streamline's per-frame constants and the frame-generation configuration are in neither
|
||||
list, so they are named — and §4 says the two calls are intercepted only once a session with the option on has
|
||||
@@ -1075,13 +1081,27 @@ before FrameLedger is inside it, so no hook could read it — D129), `Spike` (Tr
|
||||
| `sl.init.preferences` | The preferences the game started Streamline with | SessionFact | Streamline | BeforeAttach | Text |
|
||||
| `sl.constants.camera` | Camera position, axes and matrices | SessionFact | Streamline | PlayerState | Text |
|
||||
|
||||
**Inside the game: what the graphics driver reports, asked for by the part inside the game itself** *(train C,
|
||||
owner decisions D132, D136, D138 — `17_HOOK_ENGINE` §Calls the Overlay makes into a driver; in no release yet)*
|
||||
|
||||
Not an argument of a hooked call: the Overlay calls the driver's two read-only latency getters about once a second,
|
||||
only while a session records Advanced metrics, only for a Direct3D 12 game that had already loaded the driver's
|
||||
`nvapi64.dll`. The report becomes seven series — `adv.nvapi.reflex.frame_report.` and `simulation`,
|
||||
`render_submit`, `present`, `driver`, `os_queue`, `gpu_render`, `total` — each point the mean, in microseconds, of
|
||||
the frames one read summed; the sleep status becomes one table of the driver's five switches as seen over the
|
||||
session. What the *game* asked of Reflex (`nvapi.reflex.mode`) is an argument of a function no module exports:
|
||||
reading it takes a patch at an address learned at run time, which is refused.
|
||||
|
||||
| Id | What it is | Scope | Source | Reach | Unit |
|
||||
|---|---|---|---|---|---|
|
||||
| `nvapi.reflex.mode` | Reflex: low-latency mode, boost, the frame-rate limit | SessionFact | Nvapi | RefusedRoute | Text |
|
||||
| `nvapi.reflex.sleep_status` | What the driver's low-latency state is | SessionFact | Nvapi | GameDriver | Table |
|
||||
| `nvapi.reflex.frame_report` | Latency per frame: simulation, render submit, present, driver, OS queue, GPU render | Series, one per device | Nvapi | GameDriver | Microseconds |
|
||||
|
||||
**Inside the game: routes a spike decides**
|
||||
|
||||
| Id | What it is | Scope | Source | Reach | Unit |
|
||||
|---|---|---|---|---|---|
|
||||
| `nvapi.reflex.mode` | Reflex: low-latency mode, boost, the frame-rate limit | SessionFact | Nvapi | Spike | Text |
|
||||
| `nvapi.reflex.sleep_status` | What the driver's low-latency state is | SessionFact | Nvapi | Spike | Text |
|
||||
| `nvapi.reflex.frame_report` | Latency per frame: simulation, render submit, present, driver, OS queue, GPU render | Series, one per device | Nvapi | Spike | Microseconds |
|
||||
| `sl.dlss.optimal_settings` | The render size and sharpness DLSS recommends | SessionFact | Streamline | Spike | Text |
|
||||
| `sl.dlss.vram_estimate` | DLSS's own estimate of its video memory | Series | Streamline | Spike | Mebibytes |
|
||||
| `sl.dlssg.options` | DLSS frame generation: mode, frames to generate | SessionFact | Streamline | Spike | Text |
|
||||
@@ -1091,7 +1111,7 @@ before FrameLedger is inside it, so no hook could read it — D129), `Spike` (Tr
|
||||
| `sl.dlssd.options` | Ray reconstruction's options | SessionFact | Streamline | Spike | Text |
|
||||
| `sl.nis.options` | NVIDIA Image Scaling's options | SessionFact | Streamline | Spike | Text |
|
||||
| `sl.deepdvc.options` | RTX Dynamic Vibrance's options | SessionFact | Streamline | Spike | Text |
|
||||
| `sl.reflex.state` | Reflex through Streamline: availability and its frame reports | SessionFact | Streamline | Spike | Table |
|
||||
| `sl.reflex.state` | Reflex through Streamline: availability and its frame reports | SessionFact | Streamline | RefusedRoute | Table |
|
||||
| `sl.pcl.markers` | PC-latency markers the game sets | Series | Streamline | Spike | Count |
|
||||
|
||||
**Closed by a licence**
|
||||
|
||||
@@ -1873,7 +1873,7 @@ Moved verbatim, in this order.
|
||||
| M12 ❓ | **Advanced metrics — which NVAPI rows answer on real hardware (D101, 2026-11-11).** `18_GPU_VENDOR_APIS` §The inventory lists sixty `nvapi.` rows whose reach is `Agent`. They are declared in the vendored headers; **none has been called on a GPU**, and CI has no driver, so it never takes that branch. Unknown per row: whether the RTX 5080 on the current driver answers or returns `NVAPI_NOT_SUPPORTED` (the memory-temperature target already does not exist on that card). | **The measurement is the bridge's probe on the owner's PC**, then the page itself (the release's owner-only item). Pre-committed: a call that does not answer → that row is N/A with NVAPI's own status as the reason, and nothing is put in its place; a call that hangs or faults twice → the row is off for the session (§Runtime policy); a value that contradicts the vendor's own tool → the row is withheld until it is explained. **Half answered the same day, by the bridge's own test on the dev box** (ctest `fl_nvapi_bridge`, AVAILABLE branch; RTX 5080): every fact answers (`present = 0xFFFFF`), eight of ten live groups answer (`0x33F` — no board and no power-supply temperature sensor on this card: N/A, by the first pre-committed outcome), the display answers its four groups, the global profile lists 24 settings; figures in `18_GPU_VENDOR_APIS` §L3. **Still open**: the same values on the page beside the vendor's own tool, and the session rows (`nvapi.session.*`), which need a game. **And one thing seen once and not explained**: in one test run of about a dozen that day, `FlNvReadLive` came back with no field at all although `FlNvReadFacts`, a moment earlier in the same process, had answered everything; nine further runs did not show it. A handle the driver invalidated is the usual cause of that shape, and nothing here re-enumerates after `FlNvInit`. Pre-committed for the reader that owns the thread: two readings in a row with no field → release and initialise the bridge again, once, and say so in the log; if that does not bring the fields back the layer is off for the session, as any layer that fails twice is. |
|
||||
| M13 ❓ | **Advanced metrics — LibreHardwareMonitor's CPU, memory, motherboard and storage groups, elevated, with PawnIO (D103, 2026-11-11).** Never opened by any build: §M10's elevated run has not been taken either, and this is a larger surface — a sensor chip on the LPC bus, the embedded controller, SPD over SMBus, SMART. Unknown: whether each group opens on the owner's board, what a refresh costs, whether opening the storage group touches removable drives (this PC once had a failing USB drive), and whether any group enables a privilege (`PrivilegeFootprintTests`). | **One elevated run with the probe verb, before the option exists.** Pre-committed: the storage group cannot be opened without touching removable drives → `lhm.storage.*` stays N/A in beta.39 and its reach reads `Deferred`; a node that throws twice → skipped for the session; the Agent above 1% of one core or 150 MB with the option on (NFR-2) → the slow groups are read less often or dropped before the release; a privilege enabled by a group → that group is not opened, and the owner is asked. **Two of the four answered 2026-11-11, before the option exists.** (1) **Storage: not opened, by the first outcome.** LibreHardwareMonitor 0.9.6's `StorageGroup` lists every drive through DiskInfoToolkit's `ReloadStorages` with no filter by bus and follows drives plugged in later — it cannot be opened without touching removable drives. `lhm.storage.*` reads `Deferred`, and `LhmGroups` has no member for it. (2) **Cost, unelevated, measured with `probe-advanced`** on the dev box: one refresh of the graphics-card group alone is 14 ms of processor time (62 ms elapsed) — 1.4% of one core at one a second, above NFR-2 — and one NVAPI read 0.4 ms. By the third outcome the sensor library is read every fifth tick (0.28%). **Still open, and the owner's**: the same probe as administrator with PawnIO — whether the processor, memory and motherboard groups open on this board, what they cost, and `PrivilegeFootprintTests`' new case on a token that holds the privileges (CI's does; the dev box's unelevated run passes by construction). **The first run was taken on 2026-11-12, by the owner, in ordinary use** (0.1.0-beta.40, the Agent as administrator with PawnIO, an i7-14700KF on a board with an IT8689E chip, an RTX 5080), and read here from a copy of the ledger and the Agent's log, not from a probe. **The groups open and read**: nine of ten sessions stored 119 processor series (a clock and a load per thread, temperatures, powers, voltages), 14 memory series and 21 motherboard series (six fans, six temperatures, nine voltages) beside the card's 41 — 195 from the sensor library in all. **No value was compared with another tool**; that is still the owner's. **Two faults, one cause** (`Infrastructure.Telemetry.LhmLibrary`): the Agent held up to three `Computer`s at once, and the library keeps the driver it reads the processor through and its bus mutexes per process — closing one `Computer` let go of them under the others. After seven sessions the Advanced reader's processor device threw `NullReferenceException` twice and was left alone (the page lost the processor until the reader reopened); once a session's start met another instance's close, the reader's `Open` threw `ObjectDisposedException`, and that session stored 17 series instead of 212. **Fixed 2026-11-12**: opens and closes are serialised and a `Computer` is parked, not closed, while another is in use. The cause is read from the log's timing and was not reproduced — it needs this elevation — so **whether the faults are gone is the owner's next sessions to show**: no `advanced: a device is left alone` and no `did not open` in the Agent's log. **First evidence, 2026-11-12, 0.1.0-beta.41, the same PC:** seven sessions between 06:38 and 07:01 with no `advanced:` line at all, each with the option on storing 212 or 213 series; on beta.40 that morning the processor device faulted out after each of six sessions (04:34–05:07) — thirteen of sixteen over the night. The reader failing to open was seen once in sixteen, so this is not yet enough to call that one gone. Still open: any value beside another tool. |
|
||||
| M16 ✅ | **The L2 telemetry layer's cost — the first number, and it is above NFR-2 (found 2026-11-11, measuring something else).** `LhmTelemetrySource` refreshes LibreHardwareMonitor's graphics-card group once a second in every recorded session. `probe-advanced` measured that refresh, through the same library and the same group, at **14 ms of processor time** on the dev box (RTX 5080, 41 mapped sensors, about twenty of them the Direct3D engine nodes the library enumerates per card) — 1.4% of one core, where NFR-2 allows the whole Agent 1% during capture and `14_TESTING` §Hook overhead's Agent figure has never been measured. This is a measurement of the call, not yet of a session: L2's own poller was not instrumented. | **Measure L2 in a session** (the Agent's processor time over a ten-minute capture, telemetry at 1000 ms and at 2000 ms). Pre-committed: at or under 1% → this row closes with the number; above → the owner chooses between a slower default for `telemetry.interval_ms`, reading the sensors the layer keeps from NVAPI on NVIDIA cards (L3 already has most, at 0.4 ms), or amending NFR-2 to what is measured. Not decided here, and nothing about L2 changes in the Advanced-metrics train. **Measured in a real Agent, 2026-11-11 (owner decision D110), and answered (D117).** `tools/agent-cost.ps1` runs the shipped `FrameLedger.Agent.exe --console capture` against a copy of hook-harness in a scratch data folder — a session that is not hooked, so the telemetry poller runs as in every session and nothing drains frames — and reads the Agent process's own processor time at exit; the cost per second is the slope between a 45 s and a 165 s session, two runs of each. Dev box (RTX 5080, not elevated, layers `l1+lhm+nvapi`): **19.3 ms of processor time per second of session = 1.93 % of one core with Advanced metrics off** (2,312 and 2,312 ms over 45 s; 4,594 and 4,656 ms over 165 s), **20.4 ms = 2.04 % with it on** (2,984 and 3,000; 5,547 and 5,344); peak working set 113 MiB and 119 MiB. A first pass with 30 s and 90 s sessions gave 1.56 % and 2.21 % — its two short runs differed by 670 ms, which is why the lengths were raised. So the probe's number holds in a session: the Agent's steady cost is about twice NFR-2's 1 %, nearly all of it the layer every session has always used, and the new option adds about a tenth of a percent. **The owner's answer: NFR-2 is amended to ≤ 2.5 % of one core** — the limit had never been measured, the sensors keep their one reading a second, and nothing in the code changes. Not measured: a hooked session (the drain's cost on top), a session with the Agent elevated and PawnIO's groups open, another PC. |
|
||||
| M14 ❓ | **Reflex latency per frame — is there a route within rules 4 and 5? (Train C, 2026-11-11.)** `17_HOOK_ENGINE` §Memory / latency names hooks on `NvAPI_D3D_SetSleepMode` / `SetLatencyMarker` and a call to `NvAPI_D3D_GetLatency`. NVAPI resolves all three through `nvapi_QueryInterface` by id — they are not exports, so a hook on them is a patch at an address learned at run time, the class refused on 2026-08-09. The route to try first needs no hook: the Overlay's own background thread **calls** `GetLatency` with the device of the swap chain it already hooks, once a second (the call returns the last 64 frames' reports). Unknown: whether calling into the driver from that thread is safe on every device kind, what it costs, what it returns when the game never enabled Reflex, and what it means for the Disclaimer's sentence about that thread. | **A spike on `hook-harness` and a stub first, then one real title.** Pre-committed: no route without a patch at a run-time address or a loader-lock call on the game's thread → Reflex stays N/A and the page says why; overhead above NFR-1 → the same. The owner says go or no on the spike's result. **2026-11-12 — the reading that comes before that spike is `spike-notes` §30** (owner decision D130: a document first, beside 0.1.0-beta.45; nothing was run). It finds: a hook on NVAPI's latency functions is the refused class, and a hook on Streamline's Reflex and PCL functions is train D's wrapper (§M15) — and would miss a game that fetched them before the attach, as `slInit` is missed (D129); the Overlay calling `slReflexGetState` itself breaks the thread contract the vendor's header states; **what remains is the route named in this row**, the Overlay calling two driver getters with the game's device, and a no-injection ETW route that gives the game-side markers only and makes the game post messages to its own window. Corrected there: `nvapi64.dll` exports **two** functions on the dev box (`nvapi_Direct_GetMethod` beside `nvapi_QueryInterface`), not one. The go or no is the owner's, and a go needs the owner's ruling that calling a driver getter with the game's device is inside rule 4. **2026-11-13 — the owner answered (D132, D133).** Route D goes to the spike this row names, on `hook-harness` and a stub `nvapi64.dll`, with the ruling: a driver's read-only getter called with the device of the swap chain the Overlay hooks is inside rule 4 (`CLAUDE.md`, the rule's note of that day). No real game before the owner has seen the result, and nothing shipped changes for the spike (`spike-notes` §31, written after 0.1.0-beta.46). Route C is **refused**; the ETW route **stays closed**, and §G is not reopened. **2026-11-13 — the harness spike is done (`spike-notes` §31), and none of its stop conditions fired.** With a stand-in module: nothing is called or loaded when `nvapi64.dll` is absent, a missing getter is refused whole, an error and a report of nothing read as what they are, and a call the driver holds for seconds stops only the thread that made it — so not the watchdog. With the installed driver (32.0.16.2114, RTX 5080), in the probe's own process and with the probe setting the markers a game would: no fault before `NvAPI_Initialize`, without markers, or across 38 million reads beside a marker-setting thread; a call costs half a microsecond to a microsecond and a half; the report is readable from markers alone, in microseconds; and the Direct3D 12 **device** — the object the Overlay already holds — is what the driver takes. What only a game can say is unanswered: a game's own device, a real report, another driver. **The owner's next word is go or no for one real title**; a go is a plan of its own first. **2026-11-13, the same evening — go (D136)**: a plan for one title, Cyberpunk 2077; no code before the plan is approved, and no release carrying it before a stop while a game runs has been exercised on 0.1.0-beta.46 (owner-only item 44 (d)). **2026-11-13, the plan and four more answers (D138–D141).** The read has **no switch of its own**: it is part of Advanced metrics, so after the release it reaches every Direct3D 12 game that loaded the driver's `nvapi64.dll`, for everyone who switched Advanced metrics on — "one title" is the order of the owner's first runs, not a limit in code (D138). The probe ran a leg with a sleep mode first (D139; `spike-notes` §31, *The leg with a sleep*): **the getters do not wait behind `NvAPI_D3D_Sleep`** — thirty-one million reads beside a thread that slept 97 % of the time, none of a millisecond; a read after a sleeping frame costs about 2.6 µs. An `nvapi64.dll` loaded from the game's own folder is refused with the reason (D140). One call of 2 ms or more switches the read off until the game exits (D141). The plan's design, as reviewed against the source, is in `HANDOFF.md` §The train after 0.1.0-beta.46. |
|
||||
| M14 ❓ | **Reflex latency per frame — is there a route within rules 4 and 5? (Train C, 2026-11-11.)** `17_HOOK_ENGINE` §Memory / latency names hooks on `NvAPI_D3D_SetSleepMode` / `SetLatencyMarker` and a call to `NvAPI_D3D_GetLatency`. NVAPI resolves all three through `nvapi_QueryInterface` by id — they are not exports, so a hook on them is a patch at an address learned at run time, the class refused on 2026-08-09. The route to try first needs no hook: the Overlay's own background thread **calls** `GetLatency` with the device of the swap chain it already hooks, once a second (the call returns the last 64 frames' reports). Unknown: whether calling into the driver from that thread is safe on every device kind, what it costs, what it returns when the game never enabled Reflex, and what it means for the Disclaimer's sentence about that thread. | **A spike on `hook-harness` and a stub first, then one real title.** Pre-committed: no route without a patch at a run-time address or a loader-lock call on the game's thread → Reflex stays N/A and the page says why; overhead above NFR-1 → the same. The owner says go or no on the spike's result. **2026-11-12 — the reading that comes before that spike is `spike-notes` §30** (owner decision D130: a document first, beside 0.1.0-beta.45; nothing was run). It finds: a hook on NVAPI's latency functions is the refused class, and a hook on Streamline's Reflex and PCL functions is train D's wrapper (§M15) — and would miss a game that fetched them before the attach, as `slInit` is missed (D129); the Overlay calling `slReflexGetState` itself breaks the thread contract the vendor's header states; **what remains is the route named in this row**, the Overlay calling two driver getters with the game's device, and a no-injection ETW route that gives the game-side markers only and makes the game post messages to its own window. Corrected there: `nvapi64.dll` exports **two** functions on the dev box (`nvapi_Direct_GetMethod` beside `nvapi_QueryInterface`), not one. The go or no is the owner's, and a go needs the owner's ruling that calling a driver getter with the game's device is inside rule 4. **2026-11-13 — the owner answered (D132, D133).** Route D goes to the spike this row names, on `hook-harness` and a stub `nvapi64.dll`, with the ruling: a driver's read-only getter called with the device of the swap chain the Overlay hooks is inside rule 4 (`CLAUDE.md`, the rule's note of that day). No real game before the owner has seen the result, and nothing shipped changes for the spike (`spike-notes` §31, written after 0.1.0-beta.46). Route C is **refused**; the ETW route **stays closed**, and §G is not reopened. **2026-11-13 — the harness spike is done (`spike-notes` §31), and none of its stop conditions fired.** With a stand-in module: nothing is called or loaded when `nvapi64.dll` is absent, a missing getter is refused whole, an error and a report of nothing read as what they are, and a call the driver holds for seconds stops only the thread that made it — so not the watchdog. With the installed driver (32.0.16.2114, RTX 5080), in the probe's own process and with the probe setting the markers a game would: no fault before `NvAPI_Initialize`, without markers, or across 38 million reads beside a marker-setting thread; a call costs half a microsecond to a microsecond and a half; the report is readable from markers alone, in microseconds; and the Direct3D 12 **device** — the object the Overlay already holds — is what the driver takes. What only a game can say is unanswered: a game's own device, a real report, another driver. **The owner's next word is go or no for one real title**; a go is a plan of its own first. **2026-11-13, the same evening — go (D136)**: a plan for one title, Cyberpunk 2077; no code before the plan is approved, and no release carrying it before a stop while a game runs has been exercised on 0.1.0-beta.46 (owner-only item 44 (d)). **2026-11-13, the plan and four more answers (D138–D141).** The read has **no switch of its own**: it is part of Advanced metrics, so after the release it reaches every Direct3D 12 game that loaded the driver's `nvapi64.dll`, for everyone who switched Advanced metrics on — "one title" is the order of the owner's first runs, not a limit in code (D138). The probe ran a leg with a sleep mode first (D139; `spike-notes` §31, *The leg with a sleep*): **the getters do not wait behind `NvAPI_D3D_Sleep`** — thirty-one million reads beside a thread that slept 97 % of the time, none of a millisecond; a read after a sleeping frame costs about 2.6 µs. An `nvapi64.dll` loaded from the game's own folder is refused with the reason (D140). One call of 2 ms or more switches the read off until the game exits (D141). The plan's design, as reviewed against the source, is in `HANDOFF.md` §The train after 0.1.0-beta.46. **2026-11-13, night — written, in no release**: the Overlay makes the read (`17_HOOK_ENGINE` §Calls the OLine truncated
|
||||
| M15 ❓ | **The Streamline state behind `slGetFeatureFunction` — re-examined, not reopened (Train D, 2026-11-11).** The owner asked for the refusal in `handoff/history/p0-queue-1-6.md` to be looked at again. `18_GPU_VENDOR_APIS` §The trains states the route to try (hook the export, hand back a wrapper for a fixed list of names) and what it raises: the wrapper is a write to what the game receives, which rule 4 forbids as written; a wrapper must outlive the Overlay's unhook; a game that fetched its functions before the hook existed is never seen. | **A written design against each of the five grounds, then a spike.** Pre-committed: any ground unanswered → the route stays refused, and `sl.dlssg.*`, `sl.reflex.*` and the rest of that block read N/A with "refused" as the reason. Proceeding needs the owner's amendment of rule 4, asked with the rule quoted. |
|
||||
| M10 ✅ | ~~PDH `\GPU Engine(*)\Utilization Percentage` summed across engines does not reproduce the Task Manager figure the doc invokes. Decide what we actually report and label it accordingly~~ **Decided 2026-09-09 (PR-E1): L1 does not read the engine counters at all.** `LoadPct` is L2's vendor-reported `GPU Core` load (measured ✓ on NVIDIA, §M5 row R1) and is labelled *GPU load (vendor)* wherever it is shown; on a machine without L2 the field is N/A, never a sum that is not the number the user expects. What L1 does read from PDH is one counter, `\GPU Adapter Memory(luid_…_phys_0)\Dedicated Usage`, bound by LUID — the figure Task Manager labels "Dedicated GPU memory", measured 1301 MB at an idle desktop on the RTX 5080. Reopening this needs a measurement of `max(engine)` against Task Manager's own number, not a decision |
|
||||
|
||||
|
||||
+50
-2
@@ -205,6 +205,11 @@ and the logs, and from Windows' application log. None of the five is under the u
|
||||
### The train after 0.1.0-beta.46: Reflex route D in a game, and D137 (plan approved 2026-11-13)
|
||||
|
||||
*Nothing of this is in a release. The release pull request is not opened before the owner has run item 44 (d).*
|
||||
**Where it stands (2026-11-13, night):** PR-0 #440 merged; PR-1 #441 (D137), PR-2 #442 (the words), PR-3 #443 (the
|
||||
Overlay) and PR-4 (the Agent, the App, the legal texts, owner-only item 45) are written and stacked. What is left
|
||||
is the release, which waits for the owner. **Not verified by any test: the whole path through the real Agent** —
|
||||
the injected tests stop at the shared memory, the sampler's tests start from it; no end-to-end case loads the
|
||||
stand-in module under an Agent session. The Japanese strings are new and unreviewed, as every `ja` string is.
|
||||
The owner approved the plan the evening item 44 was read. Its order: **PR-0** the decisions and the probe's leg
|
||||
with a sleep (done: `spike-notes` §31 — no stop condition) → **PR-1** D137 → **PR-2** the words in region 5, written
|
||||
by nobody → **PR-3** the Overlay, the gates, the fixtures → **PR-4** the Agent, the App, strings, documents, legal
|
||||
@@ -236,7 +241,8 @@ of mine was wrong in six places — and that no other file carries yet:
|
||||
- **What D141 costs, measured once on a busy PC** (`spike-notes` §31, *A run on a busy PC*): the 2 ms latch will
|
||||
sometimes fire on a pause that was Windows' and not the driver's — a few sessions in a hundred at worst, by a
|
||||
reading of one run. The owner chose one call over two knowing it errs towards the game; item 45's outcomes must
|
||||
say how the two are told apart (the microseconds published with *slow*).
|
||||
say how the two are told apart (the microseconds published with *slow*). **Asked again with this run in hand,
|
||||
the owner kept it: one call (2026-11-13). Do not re-ask.**
|
||||
- **The summary**: only frames newer than the last one summed; the two newest of a report skipped (§31: not final);
|
||||
a zero end point is "span not reported" (published as all ones), not a refused frame; a frame is refused for a
|
||||
span that runs backwards, one over a second, or no total; frame ids that go backwards restart the sequence.
|
||||
@@ -326,7 +332,7 @@ of mine was wrong in six places — and that no other file carries yet:
|
||||
- **`LIMITATIONS.md` and the accuracy statement still say the processor's, the memory's and the motherboard's
|
||||
sensors "have never been read on real hardware"** — the owner's to reword. The alpha line still rests (D98).
|
||||
|
||||
**Owner-only:** item 44 (d), (e), (g) and what (c) felt like; the go or no on `spike-notes` §31 (one real title); one session each of Valor Mortis and
|
||||
**Owner-only:** item 44 (d), (e), (g) and what (c) felt like — **(d) is what the next release waits for**; item 45 once that release exists; the go or no on `spike-notes` §31 (one real title); one session each of Valor Mortis and
|
||||
Black Myth: Wukong with hooking off; what item 41 left unexercised; item 40 (d).
|
||||
|
||||
## Owner-only — no PR can close these
|
||||
@@ -820,6 +826,48 @@ Black Myth: Wukong with hooking off; what item 41 left unexercised; item 40 (d).
|
||||
same hooks as on beta.45, rates and factor as before, the two known faults on the way out at their old offsets.
|
||||
**(d), (e) and (g) were not exercised; (c) is the owner's to say.** Not passed: (d) is the half of this release
|
||||
that no real game has run.
|
||||
45. **The release after beta.46 — NVIDIA's latency report, read inside a game** (D132, D136, D138–D141; **the
|
||||
release does not exist yet**: it is cut after item 44 (d) has been run). **Cyberpunk 2077 first** (D136), **and
|
||||
not first on a game under the user-mode exception's trial** (D38): a crash there ends the exception for good.
|
||||
This is the first release in which the part inside a game *makes a call of its own* — into the graphics driver,
|
||||
about once a second, on the game's presenting thread — so read (a) before (b). (a) **The update**: Help ▸ Check
|
||||
for updates, *Restart to update* with no game running; **the terms window shows once, with Privacy Policy 2.20
|
||||
and Disclaimer 2.16** — the Disclaimer's §2 has a new paragraph, *One call it makes itself, into the graphics
|
||||
driver*. Settings ▸ *Advanced metrics* says the same in its description. (b) **Cyberpunk 2077, Advanced metrics
|
||||
on, frame generation OFF, Reflex on in the game's menu**, five minutes of play, then close the game as usual.
|
||||
Its `logs\overlay-<pid>-….log` has `LATENCY` lines: *reading the driver's latency report*, and two more with
|
||||
the end of two paths — `…\System32\nvapi64.dll` and `…\nvapi64_impl.dll`. On the Advanced page, the session
|
||||
has a group **Latency**: the table *What the driver's low-latency state is* (five rows by NVIDIA's names, and
|
||||
`fgMultiplier`) and, in the chart's list, *Latency per frame* with seven lines. The line under the session ends
|
||||
with *NVIDIA's latency report, which FrameLedger asks the graphics driver for inside the game: read.* Say the
|
||||
*total* line's usual value, and **whether the game felt any different with the option on** — a hitch once a
|
||||
second is the thing to look for. (c) **The same with frame generation ON** (DLSS ×2 or more): the driver's
|
||||
pacer is another thread, and this is the arrangement the probe could not make. (d) **Reflex switched off in the
|
||||
game's menu**, if the game lets you: say what the line reads — *read* or *asked, and the driver reported no
|
||||
frame*; both are possible and neither is wrong. (e) **Only after (b) and (c) are clean, a second game** that
|
||||
uses Reflex through Streamline (Phantom Blade Zero, Clair Obscur, Black Myth: Wukong, Hogwarts Legacy). (f) **A
|
||||
game that is not Direct3D 12 or has no NVIDIA library** (Kingdom Come: Deliverance II, Lies of P): the line
|
||||
reads *not read*, with which of the two. (g) **Off means off**: with Advanced metrics off, start a game afresh;
|
||||
its log has no `LATENCY` line. (h) **Nothing else moved**: no fault counted, frame rates and the
|
||||
frame-generation factor as before, the game closes as it did.
|
||||
**What each outcome means, written before the run.** *Read*, with a total of a few to a few tens of
|
||||
milliseconds that moves with the frame rate: route D works in a real game; what comes next — more titles, the
|
||||
session summary — is the owner's to say. *Asked, and the driver reported no frame* in a game whose Reflex is
|
||||
on: the driver has a report for another object than the device FrameLedger holds; nothing is harmed, and the
|
||||
title is not readable this way. *Not read — the game has not loaded nvapi64.dll* in Cyberpunk 2077: what its
|
||||
files said did not happen at run time; another title is tried. *Stopped — a call took N µs*: **one call of a few
|
||||
thousand microseconds, once, is most likely a pause of the game's thread on a busy PC** (`spike-notes` §31, *A
|
||||
run on a busy PC*) — start the game again and see whether it repeats; if it repeats, or N is ten thousand or
|
||||
more, the driver holds the call in that game and **route D stops for it** — say so with the number. *Stopped — a
|
||||
call into the driver faulted*, or a fault counted in the session: **route D stops** (the commitment of §30) —
|
||||
say so at once, with the log. **A game that freezes** with a `LATENCY` line saying a call has not returned, or
|
||||
that freezes at all with the option on and not with it off: close it, say so at once; Advanced metrics off is
|
||||
the way to play it, and route D ends. **A hitch once a second** with the option on that is not there with it
|
||||
off: say so at once — the two-millisecond latch did not catch what a player can feel. **The game closing by
|
||||
itself a second or two after it starts, only with the option on** (Windows' Application log: exception
|
||||
`0xc0000409`): a Control Flow Guard refusal of the call — say so at once with the entry; that game enforces
|
||||
what the probe could only check for this driver. Spans that make no sense — a part larger than the total, a
|
||||
line that is always zero: say which; they are the driver's numbers and are shown as it reported them.
|
||||
|
||||
**Answered 2026-08-05, do not re-ask:** remove `gameguard` and keep `guard` (approved
|
||||
over a red `Rules` gate, with the reasoning recorded in the merge commit); vendor NVAPI
|
||||
|
||||
@@ -63,6 +63,23 @@ are kept because they record what each version changed and why (owner decision D
|
||||
>
|
||||
> Version 2.5 (2026-09-27, 0.1.0-beta.10) adds how a tracked game's window is shown — read from Windows — and the engine build name read from an Unreal Engine game's executable. It is also the first version to say two things the software already did: it reads the **content** of a library game's executable (markers in its first 8 MB and its import table, since the detection of engines and features; and, when a session starts, the graphics-library markers in the whole file), and it reads the processor load and the memory in use (since 0.1.0-beta.3). Nothing here leaves your device, as before.
|
||||
|
||||
### What version 2.20 of the Privacy Policy and 2.16 of the Disclaimer changed (train C; the release after 0.1.0-beta.46)
|
||||
|
||||
**The part inside a game makes a call of its own** (owner decisions D132, D136, D138–D141; the wording's main
|
||||
points approved with the plan of 2026-11-13). Every earlier version could say that the component reads only what a
|
||||
game passes to the graphics calls it intercepts. With Advanced metrics on, in a Direct3D 12 game that had loaded
|
||||
NVIDIA's driver library, it now also asks the driver, about once a second, for the driver's report of the last
|
||||
frames' stages and its low-latency state. So: the **Privacy Policy** (2.20) names what a session stores of it —
|
||||
durations and five switches, never a time of day, never the moment of an input — in §1's item on Advanced metrics
|
||||
and in §4's list of what the component observes. The **Disclaimer** (2.16) changes three places: "What it observes
|
||||
inside the game" names the report; the sentence "API arguments and nothing else" is replaced by what is true; and
|
||||
§2, after the paragraph on the background thread, gains the paragraph on this call — that it is made on the game's
|
||||
presenting thread, through a library the game loaded and FrameLedger never loads, that two files are kept loaded
|
||||
for it, that it calls nothing that sets or delays, what ends it, and **that a call which never returned could not be
|
||||
stopped**. The accuracy statement loses "PC latency (Reflex)" from "not measured at all" — end-to-end latency
|
||||
still is not measured — and gains the item saying these are the driver's numbers, read from no real game when it
|
||||
was written.
|
||||
|
||||
### What version 2.19 of the Privacy Policy changed (0.1.0-beta.45)
|
||||
|
||||
**Six more calls read inside the game, only while Advanced metrics is on** (train B's fourth step, owner decisions
|
||||
|
||||
@@ -177,3 +177,5 @@ The session then says *stopped: slow* with the microseconds, and the next start
|
||||
trade the owner chose with D141 (one call, not two): it errs towards the game. The number published with the state
|
||||
is what tells the two apart afterwards — a driver that holds a call does it again and for longer; a pause is a few
|
||||
milliseconds, once.
|
||||
|
||||
**The owner was asked again with this table in hand and kept D141 as it is: one call** (2026-11-13).
|
||||
@@ -22,7 +22,7 @@ The link under them, *Read what the hook does and does not do*, opens the safety
|
||||
| **Minimum session length (s)** | A shorter session is not kept. 5 to 600 seconds. *Agent.* | 30 |
|
||||
| **Sensor interval (ms)** | How often the PC's sensors are read during a session. 500 to 2000 ms. *Agent.* | 1000 |
|
||||
| **Raw series kept per game** | How many of each game's newest sessions keep their per-frame data; older ones keep their statistics. 0 keeps everything. *Agent.* | 20 |
|
||||
| **Advanced metrics** | Reads more from the graphics driver and the hardware sensors during a session — the graphics card's memory and load in detail, each fan and voltage, what your display can do, the driver's settings for the game — and stores it with the session. Off: nothing more is read or stored. It applies from the next session; a session recorded while it was off is not filled in later. While it is on, the **Advanced** page is in the list on the left ([Advanced metrics](12-advanced-metrics.md)). *Agent.* | Off |
|
||||
| **Advanced metrics** | Reads more from the graphics driver and the hardware sensors during a session — the graphics card's memory and load in detail, each fan and voltage, what your display can do, the driver's settings for the game — and stores it with the session. In a game FrameLedger measures from inside it also reads what the game tells DLSS, Streamline and FSR, and — on an NVIDIA card, in a Direct3D 12 game that uses NVIDIA's library — asks the graphics driver about once a second how long each stage of a frame took ([Advanced metrics](12-advanced-metrics.md)). Off: nothing more is read or stored. It applies from the next session; a session recorded while it was off is not filled in later. While it is on, the **Advanced** page is in the list on the left ([Advanced metrics](12-advanced-metrics.md)). *Agent.* | Off |
|
||||
|
||||
## Data
|
||||
|
||||
|
||||
@@ -83,6 +83,33 @@ the session says, for each call, whether it was *read*, *hooked — the game did
|
||||
the game did not load the library that has the call*; the six calls of 0.1.0-beta.45 are named in one sentence,
|
||||
under which of the three happened to each.
|
||||
|
||||
### What NVIDIA's driver says about each frame's stages
|
||||
|
||||
On an NVIDIA card, in a **Direct3D 12** game that uses **NVIDIA Reflex**, a session with Advanced metrics on also
|
||||
stores the driver's own latency report: how long the driver says each stage of a frame took — *simulation*,
|
||||
*render submit*, *present*, *driver*, *operating system's render queue*, *GPU render*, and the *total* from the start
|
||||
of simulation to the end of the graphics card's work. They are seven lines under **Latency**, one point about every
|
||||
second, each the average of the frames the driver reported since the point before, in microseconds. A table beside
|
||||
them shows the driver's low-latency state as five switches, by NVIDIA's own names, each *On*, *Off* or *On at times,
|
||||
off at others*.
|
||||
|
||||
Three things to know about them:
|
||||
|
||||
- **They are the driver's numbers, not FrameLedger's.** FrameLedger does not measure these stages; it stores what
|
||||
the driver reports and has not checked it against another tool. They are not the delay from a click to the screen.
|
||||
- **FrameLedger asks for them from inside the game**, about once a second — the one thing it does in a game that is
|
||||
not reading what the game itself passes along. It asks only through NVIDIA's library where the game had already
|
||||
loaded it, and never loads that library itself. A copy of the library sitting in the game's own folder (some
|
||||
mods put one there) is not the driver's, and FrameLedger does not use it.
|
||||
- **It switches itself off rather than disturb the game.** If one request takes two thousandths of a second or
|
||||
more, or goes wrong, FrameLedger makes no further request until the game is closed. The line under the session
|
||||
then says *stopped*, and why; the next time the game starts it reads again. On a busy PC this can happen for a
|
||||
pause that was Windows' and not the driver's.
|
||||
|
||||
The line under the session says what happened: *read*; *asked, and the driver reported no frame* (the game does not
|
||||
use Reflex); *not read* with the reason — the game does not present through Direct3D 12, it has not loaded NVIDIA's
|
||||
library, or that library is in the game's own folder; or *stopped*.
|
||||
|
||||
**Many games will show nothing here**, and the line under the session says why: *the game made none of the calls
|
||||
these are read from* — most games set their DLSS options through a call FrameLedger cannot see, and only games that
|
||||
use FSR 3.1 or later through AMD's own library show the FSR rows — or *the session was not measured inside the game*.
|
||||
@@ -111,6 +138,9 @@ comes from, and whether it is read. Where it is not, the reason is written out:
|
||||
- **not present on this PC** — the driver's own figures exist on NVIDIA cards only;
|
||||
- **read inside a game FrameLedger measures, when the game makes the call** — what the game tells DLSS and FSR
|
||||
(above). Some further readings inside the game **come with a later release**;
|
||||
- **read inside a game FrameLedger measures, from the graphics driver** — NVIDIA's latency report (above);
|
||||
- **not read: it would take a patch at an address found while the game runs, or a call the vendor forbids from
|
||||
outside the game's own threads** — what the game asked of Reflex, and Reflex's state through Streamline;
|
||||
- **the game makes this call once, before FrameLedger is inside it** — what the game started Streamline with. It is
|
||||
not read, and no later release will read it;
|
||||
- **never read** — a serial number, a display's identification data, which other programs are encoding, the camera's
|
||||
|
||||
+8
-1
@@ -86,8 +86,15 @@
|
||||
> mean, median and peak. The game's other processes (launchers, helpers) are not counted.
|
||||
> - **Video memory:** in use on the whole graphics card, recorded from Windows and GPU-driver telemetry
|
||||
> and charted. **Not measured at all:** the video-memory budget Windows gives a game, which frame
|
||||
> spikes were shader compilation, PC latency (Reflex), and HDR. Stutter count and stutter time are
|
||||
> spikes were shader compilation, end-to-end PC latency, and HDR. Stutter count and stutter time are
|
||||
> measured from frame times.
|
||||
> - **NVIDIA's latency report (only with Advanced metrics on; Direct3D 12; a game that uses NVIDIA Reflex):** how
|
||||
> long the driver says each stage of a frame took — simulation, render submit, present, driver, the operating
|
||||
> system's queue, the graphics card — read from the graphics driver about once a second and shown as the driver
|
||||
> reported it: **the driver's numbers, not a measurement by FrameLedger**, an average of the frames of one read,
|
||||
> never checked against another tool, and not the delay from a click to the screen. Read with a test program
|
||||
> against one driver and one card; **no real game had been read when this was written**. A game that does not use
|
||||
> Reflex has none. The session summary's latency fields stay N/A.
|
||||
> - **Pacing, VSync and the graphics card (since beta.14):** the share of the time below 30 FPS, below 60 FPS and below
|
||||
> the monitor's refresh rate, measured from frame times with small margins so that a game held at its limit is not
|
||||
> counted as below it (a rate less than 2 % under the line reads partly as at it), and how much one frame's time
|
||||
|
||||
+16
-5
@@ -1,6 +1,6 @@
|
||||
# FrameLedger — Disclaimer
|
||||
|
||||
**Version:** 2.15 · **Effective:** {{RELEASE_DATE}}
|
||||
**Version:** 2.16 · **Effective:** {{RELEASE_DATE}}
|
||||
|
||||
## 0. This is pre-release software
|
||||
|
||||
@@ -43,11 +43,11 @@ Be precise about what that does and does not promise, because the shorter versio
|
||||
|
||||
Install it somewhere only you can write to, and verify the published SHA-256 checksums.
|
||||
|
||||
**What it observes inside the game:** arguments the game passes to graphics APIs we intercept (presentation, upscaling, ray tracing, pipeline creation).
|
||||
**What it observes inside the game:** arguments the game passes to graphics APIs we intercept (presentation, upscaling, ray tracing, pipeline creation) — and, only while Advanced metrics is on, one thing that is not an argument: the graphics driver's own report of how long the stages of the game's last frames took, which the component asks NVIDIA's driver for itself (§2 says exactly how).
|
||||
|
||||
**What it reads about the game from outside it, in every session:** the game process's own memory use — its dedicated and shared video memory and its working sets, the figures Windows' Task Manager shows — from Windows' performance counters and process-memory information. For a game it does not inject into, FrameLedger opens the game's process for this with the least access Windows offers, once a second, and closes it again; it reads nothing inside the process.
|
||||
|
||||
> **What of that list is observed today is stated once, in §4 below** (the block `legal/ACCURACY.md` carries, dated). The list here describes what the software is designed to observe, and the boundary — API arguments and nothing else — holds for all of it.
|
||||
> **What of that list is observed today is stated once, in §4 below** (the block `legal/ACCURACY.md` carries, dated). The list here describes what the software is designed to observe, and the boundary — API arguments, and the one report asked of the graphics driver that the line above names; nothing of the game's own memory — holds for all of it.
|
||||
|
||||
**What it never does:** read or write the game's memory outside those API arguments; read save files, input, chat, or network traffic; modify game behavior; hide itself from any security software; or install a kernel driver of its own.
|
||||
|
||||
@@ -72,7 +72,11 @@ FrameLedger is designed to reduce that risk substantially:
|
||||
the game exits.
|
||||
- FrameLedger contains **no evasion techniques of any kind** — it does not hide, rename, obfuscate, or disguise itself. It is intended to be plainly identifiable to any security software that looks.
|
||||
|
||||
For completeness about what it *does* run inside the game: besides the intercepted calls themselves, the component starts **one background thread**. It wakes once a second, or when the game loads a library, and then: checks FrameLedger's own shared memory for a request to stop and for the heartbeat of the safety scan described above; asks Windows, by name, whether the graphics, upscaling and frame-generation libraries it knows about are loaded, and puts its interception into the ones that are (for ray tracing it creates one command list on the game's own Direct3D 12 device, to find the functions to intercept); writes its counters to FrameLedger's shared memory; and writes FrameLedger's own log file. It does not scan the game's memory, list the modules or processes on the system, or query Windows services — deliberately, because software that does those things from inside a game process looks like the thing this tool is trying not to be mistaken for.
|
||||
For completeness about what it *does* run inside the game: besides the intercepted calls themselves, the component starts **one background thread**. It wakes once a second, or when the game loads a library, and then: checks FrameLedger's own shared memory for a request to stop and for the heartbeat of the safety scan described above; asks Windows, by name, whether the graphics, upscaling and frame-generation libraries it knows about are loaded, and puts its interception into the ones that are (for ray tracing it creates one command list on the game's own Direct3D 12 device, to find the functions to intercept); writes its counters to FrameLedger's shared memory; and writes FrameLedger's own log file.
|
||||
|
||||
**One call it makes itself, into the graphics driver — only while Advanced metrics is on.** In a Direct3D 12 game that had already loaded NVIDIA's driver library (`nvapi64.dll`), the component asks that library — by name, among what the game loaded; it never loads it — for two of the driver's read-only functions, and keeps the library and the driver file those functions are in from being unloaded for as long as the game runs. Then, about once a second, **on the game's own thread that presents its frames**, right after a frame has been handed over, it calls them: one returns the driver's report of how long the stages of the last frames took, the other the driver's low-latency state. It calls no function that sets, marks or delays anything. A library of that name sitting in the game's own folder is not the driver's and is not called. What this costs the game is the length of that call, once a second — a few millionths of a second where it was measured. A call that faults is caught, counted once, and not repeated; a call that takes two thousandths of a second or more is the last one until the game is closed. **A call that never returns would hold the game's presenting thread, and FrameLedger cannot stop it** — it has not happened in any test, and it is said here because it is the one thing in this component whose length FrameLedger's own code does not bound. With Advanced metrics off — the default — none of this happens.
|
||||
|
||||
It does not scan the game's memory, list the modules or processes on the system, or query Windows services — deliberately, because software that does those things from inside a game process looks like the thing this tool is trying not to be mistaken for.
|
||||
- FrameLedger injects into a game only after you enable that game individually. For every other game — and for any game where the safety checks refuse — it records the session's start, end and duration together with whatever hardware sensor readings your machine provides and the game's own memory use as Windows reports it (§1), and reports every other measurement as not available. **There is no measurement mode that works without injecting**; an earlier version of this document described one, and it was never built. FrameLedger never estimates a value it could not measure, and it always shows which of the two modes produced a session. Neither mode requires administrator rights.
|
||||
|
||||
**However, these protections cannot be complete:**
|
||||
@@ -195,8 +199,15 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
|
||||
> mean, median and peak. The game's other processes (launchers, helpers) are not counted.
|
||||
> - **Video memory:** in use on the whole graphics card, recorded from Windows and GPU-driver telemetry
|
||||
> and charted. **Not measured at all:** the video-memory budget Windows gives a game, which frame
|
||||
> spikes were shader compilation, PC latency (Reflex), and HDR. Stutter count and stutter time are
|
||||
> spikes were shader compilation, end-to-end PC latency, and HDR. Stutter count and stutter time are
|
||||
> measured from frame times.
|
||||
> - **NVIDIA's latency report (only with Advanced metrics on; Direct3D 12; a game that uses NVIDIA Reflex):** how
|
||||
> long the driver says each stage of a frame took — simulation, render submit, present, driver, the operating
|
||||
> system's queue, the graphics card — read from the graphics driver about once a second and shown as the driver
|
||||
> reported it: **the driver's numbers, not a measurement by FrameLedger**, an average of the frames of one read,
|
||||
> never checked against another tool, and not the delay from a click to the screen. Read with a test program
|
||||
> against one driver and one card; **no real game had been read when this was written**. A game that does not use
|
||||
> Reflex has none. The session summary's latency fields stay N/A.
|
||||
> - **Pacing, VSync and the graphics card (since beta.14):** the share of the time below 30 FPS, below 60 FPS and below
|
||||
> the monitor's refresh rate, measured from frame times with small margins so that a game held at its limit is not
|
||||
> counted as below it (a rate less than 2 % under the line reads partly as at it), and how much one frame's time
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# FrameLedger — Privacy Policy
|
||||
|
||||
**Version:** 2.19 · **Effective:** {{RELEASE_DATE}}
|
||||
**Version:** 2.20 · **Effective:** {{RELEASE_DATE}}
|
||||
|
||||
**Short version: everything stays on your PC. FrameLedger has no accounts, no telemetry, no analytics, and never uploads your data anywhere.**
|
||||
|
||||
@@ -11,7 +11,7 @@ Stored in `%LOCALAPPDATA%\FrameLedger` on your device:
|
||||
- Your game library entries (names, executable paths, metadata you or the app filled in, and whether each one is recorded).
|
||||
- Images you choose for a game (Edit…), copied into the `covers` folder; choosing the store's image again, or removing the game together with its sessions, deletes the copy. Artwork a store's app keeps on your PC, or a game ships in its own folder, is shown from where it is and not copied.
|
||||
- Performance sessions: frame timing series, computed statistics, hardware sensor series (temperatures, load, power, memory usage, and the graphics card's clock speeds, fan speed, memory temperature and whether its power limit or heat held it back), the game's own memory use (its dedicated and shared video memory, private working set, working set and commit, once a second), session duration, crash flags, the graphics driver's settings the game ran under (NVIDIA only), how the game's window was shown (full-screen, borderless or windowed, for how long, its size and the monitor's), tags and notes you write.
|
||||
- **Only while Settings ▸ Advanced metrics is on** (it is off unless you switch it on), with each session: more hardware sensor series — the graphics card's memory use in detail, its load by part, its clocks, voltages, currents, power, each fan and its video encoder's use; and, when the capture agent runs as administrator with PawnIO installed, the processor's temperatures, load, clocks, power and voltages by core, the memory in use and its modules' temperatures, and the motherboard's temperatures, fans and voltages — and a description of the hardware: the graphics card's firmware version, architecture, bus and memory sizes, the graphics driver's package and the chipset it names, the motherboard's and the memory modules' model names, what each connected display can do (the HDR formats it accepts, its brightness range, variable refresh), whether variable refresh was in use on the display the game ran on and the colour space the game presented in, and the graphics driver's settings — its global ones and the ones it holds for the game (NVIDIA only). For a game FrameLedger injects into, a session then also stores what the game itself passed to its upscaler in the calls FrameLedger intercepts: the output size, the model presets and the exposure values it gave DLSS, whether it said its colour buffers are HDR, auto-exposure and alpha upscaling; and the sharpening, the size of the jitter, the exposure, the depth range, the lowest and highest field of view and the flags it gave FSR, the frame time it reported to FSR, and FSR's own video memory when the game asked for it; what the game told NVIDIA Streamline about each frame — the size of the jitter, the motion-vector scale, the depth range and whether depth is inverted, the lowest and highest field of view, the aspect ratio, whether the projection is orthographic, how its motion vectors are stored and how often it reset the upscaler's history; and how it configured FSR frame generation — on or off, whether it may run asynchronously, its flags, whether only generated frames are presented, and the rectangle it generates in; and what NVIDIA Streamline answered when the game asked it about a feature — which features the game asked about, the version of each and of its NGX model, and what each requires: the graphics APIs it supports, whether V-Sync must be off and hardware-accelerated GPU scheduling on, how many processor threads, viewports and buffers, and the versions of Windows and of the graphics driver that Streamline found beside the ones the feature needs ; and, for each Streamline feature the game asks about or controls: whether Streamline answers that it is supported, whether it is loaded, whether the game switched it on or off while it ran, and how many times its resources were allocated and freed; and whether the game shut Streamline down, and how many times — never the lists Streamline's answer points to (the buffers' names, the names of Vulkan extensions and features), never what identifies the graphics card that the game hands over with its question, never the content of a graphics resource, and never where the game's camera is, which way it looks, or its matrices. No serial number, no display identification data (EDID) and no list of other programs is read or stored. Switching the option off stops the reading, inside a game as well; what earlier sessions stored stays with them until you delete those sessions.
|
||||
- **Only while Settings ▸ Advanced metrics is on** (it is off unless you switch it on), with each session: more hardware sensor series — the graphics card's memory use in detail, its load by part, its clocks, voltages, currents, power, each fan and its video encoder's use; and, when the capture agent runs as administrator with PawnIO installed, the processor's temperatures, load, clocks, power and voltages by core, the memory in use and its modules' temperatures, and the motherboard's temperatures, fans and voltages — and a description of the hardware: the graphics card's firmware version, architecture, bus and memory sizes, the graphics driver's package and the chipset it names, the motherboard's and the memory modules' model names, what each connected display can do (the HDR formats it accepts, its brightness range, variable refresh), whether variable refresh was in use on the display the game ran on and the colour space the game presented in, and the graphics driver's settings — its global ones and the ones it holds for the game (NVIDIA only). For a game FrameLedger injects into, a session then also stores what the game itself passed to its upscaler in the calls FrameLedger intercepts: the output size, the model presets and the exposure values it gave DLSS, whether it said its colour buffers are HDR, auto-exposure and alpha upscaling; and the sharpening, the size of the jitter, the exposure, the depth range, the lowest and highest field of view and the flags it gave FSR, the frame time it reported to FSR, and FSR's own video memory when the game asked for it; what the game told NVIDIA Streamline about each frame — the size of the jitter, the motion-vector scale, the depth range and whether depth is inverted, the lowest and highest field of view, the aspect ratio, whether the projection is orthographic, how its motion vectors are stored and how often it reset the upscaler's history; and how it configured FSR frame generation — on or off, whether it may run asynchronously, its flags, whether only generated frames are presented, and the rectangle it generates in; and what NVIDIA Streamline answered when the game asked it about a feature — which features the game asked about, the version of each and of its NGX model, and what each requires: the graphics APIs it supports, whether V-Sync must be off and hardware-accelerated GPU scheduling on, how many processor threads, viewports and buffers, and the versions of Windows and of the graphics driver that Streamline found beside the ones the feature needs ; and, for each Streamline feature the game asks about or controls: whether Streamline answers that it is supported, whether it is loaded, whether the game switched it on or off while it ran, and how many times its resources were allocated and freed; and whether the game shut Streamline down, and how many times — never the lists Streamline's answer points to (the buffers' names, the names of Vulkan extensions and features), never what identifies the graphics card that the game hands over with its question, never the content of a graphics resource, and never where the game's camera is, which way it looks, or its matrices. For a Direct3D 12 game that had itself loaded NVIDIA's driver library, a session also stores what the graphics driver reports about the game's frames when FrameLedger asks it, about once a second, from inside the game: how long each stage of a frame took — simulation, render submit, present, the driver, the operating system's queue and the graphics card, and the whole from the start of simulation to the end of the graphics card's work — as averages in microseconds, and the driver's low-latency state (five switches it reports, and its frame-generation multiplier) — never a time of day, and never the moment the player pressed anything. No serial number, no display identification data (EDID) and no list of other programs is read or stored. Switching the option off stops the reading, inside a game as well; what earlier sessions stored stays with them until you delete those sessions.
|
||||
- A hardware snapshot per session (CPU/GPU model, driver version, RAM size, OS build, display mode) used for the "what changed between sessions" feature.
|
||||
- App settings, logs (rotated daily — the app keeps 7 days, the capture agent 14 — including the logs written by the component loaded into games), and, after a crash of the app itself, crash dump files.
|
||||
- Which games you enabled code injection for, and when you consented.
|
||||
@@ -43,7 +43,7 @@ An exported session (CSV or JSON) and a bug report can contain your games' names
|
||||
|
||||
## 4. What the app can technically observe
|
||||
|
||||
To do its job, FrameLedger observes: which of *your tracked* executables — the entries in your library whose recording is on — are running, and their process trees; whether a game you enabled hooking for runs in an app container, and which of Windows' code-protection settings it runs under (for example, accepting only Microsoft-signed code), read from Windows before any injection; the parameters your games pass to the graphics APIs it intercepts (presentation, upscaling, ray tracing, pipeline creation) — and, only while Advanced metrics is on, more of the parameters of the upscaling calls, and the parameters of ten further calls it begins to intercept in a game only once a session with that option on has started there (the constants the game gives NVIDIA Streamline for each frame, the game's configuration of FSR frame generation, Streamline's answers to the game's four questions about a feature — which version it is, what it requires, whether it is supported and whether it is loaded — and the game switching a feature on or off, allocating and freeing its resources, and shutting Streamline down), which are then stored with the session (sizes, presets, exposure, sharpening, the jitter's size, the motion-vector scale, the depth range, the range of the field of view, flags, the reported frame time, the upscaler's own memory, how frame generation is configured, the versions and requirements of Streamline's features, whether each is supported and loaded, and how often the game switched it, allocated and freed its resources and shut Streamline down), never the camera's position, direction or matrices, and never what identifies the graphics card; the memory use of a tracked game's process — its dedicated and shared video memory, from Windows' GPU performance counters, and its working sets and commit, from Windows' process-memory information, for which a game it does not inject into is opened with the least access Windows offers and closed again (never its memory's content); loaded module names of a game being captured, the version information of its upscaling, frame-generation and neural-rendering libraries, and whether each was loaded from the game's folder or from the graphics driver's own copy (for detection and for the anti-cheat safety check); the names of the files in each library game's install folder, the version information of its executable and of the upscaling and neural-rendering libraries it ships, the content of its executable file (the markers of the engine and of the graphics libraries it carries, the libraries it imports, and the engine build name an Unreal Engine game carries), the version marks an engine keeps in its own files (Unity's player library and the header of its data file, the header of a Godot data pack, an RPG Maker game's title, core script and Game.ini, the library Game.ini names, and the version file of a Ren'Py game's engine), and the store files that name it (Steam's and GOG's, on your disk) and, for a game the Xbox app or the Microsoft Store installed, the package files in its install folder that describe it (`MicrosoftGame.config` and `appxmanifest.xml`) — to detect its engine, its engine version and its features and to check it for anti-cheat before any injection is possible; the lists of installed games that the Steam, GOG GALAXY, Epic Games and itch apps keep on your disk, and where GOG GALAXY is installed, the folders the Xbox app installs games into on each drive (named by the `.GamingRoot` file at the drive's root) with each game's package files, and Windows' answer to whether that game's package is installed for you — read when you import your library and when you press Play, to find the store that installed a game and hand the game to that store's app — Steam's and GOG GALAXY's also when you open a game's page, to find the artwork their apps keep for it; the cover and banner images that the Steam and GOG GALAXY apps keep on your disk for a game in your library and the logo and splash-screen images a game from the Xbox app ships in its own folder — read to show them on its page, never copied or sent anywhere; the size, position and state of a tracked game's window and the monitor it is on, read from Windows and not from the game, and — for a game FrameLedger injects into — whether the game asked for exclusive full-screen; the NVIDIA driver's settings for your tracked executables (read only: the DLSS and frame-generation overrides the NVIDIA App set); hardware sensor values from your graphics driver's own libraries; and — only while Advanced metrics is on — that driver's description of the graphics card and of each connected display, what it reports about the display a tracked game's window is on, its settings for a tracked game and its global ones (read only), and, when the capture agent runs as administrator with PawnIO installed, the sensors and model names of the processor, the memory and the motherboard (never a drive's), all of which areLine truncated
|
||||
To do its job, FrameLedger observes: which of *your tracked* executables — the entries in your library whose recording is on — are running, and their process trees; whether a game you enabled hooking for runs in an app container, and which of Windows' code-protection settings it runs under (for example, accepting only Microsoft-signed code), read from Windows before any injection; the parameters your games pass to the graphics APIs it intercepts (presentation, upscaling, ray tracing, pipeline creation) — and, only while Advanced metrics is on, more of the parameters of the upscaling calls, and the parameters of ten further calls it begins to intercept in a game only once a session with that option on has started there (the constants the game gives NVIDIA Streamline for each frame, the game's configuration of FSR frame generation, Streamline's answers to the game's four questions about a feature — which version it is, what it requires, whether it is supported and whether it is loaded — and the game switching a feature on or off, allocating and freeing its resources, and shutting Streamline down), which are then stored with the session (sizes, presets, exposure, sharpening, the jitter's size, the motion-vector scale, the depth range, the range of the field of view, flags, the reported frame time, the upscaler's own memory, how frame generation is configured, the versions and requirements of Streamline's features, whether each is supported and loaded, and how often the game switched it, allocated and freed its resources and shut Streamline down), never the camera's position, direction or matrices, and never what identifies the graphics card; and — only while Advanced metrics is on, only in a Direct3D 12 game that had itself loaded NVIDIA's driver library — the graphics driver's own report of the game's last frames and its low-latency state, which the component asks that driver for itself about once a second (it makes that call; the game does not), keeping only how long each stage took; the memory use of a tracked game's process — its dedicated and shared video memory, from Windows' GPU performance counters, and its working sets and commit, from Windows' process-memory information, for which a game it does not inject into is opened with the least access Windows offers and closed again (never its memory's content); loaded module names of a game being captured, the version information of its upscaling, frame-generation and neural-rendering libraries, and whether each was loaded from the game's folder or from the graphics driver's own copy (for detection and for the anti-cheat safety check); the names of the files in each library game's install folder, the version information of its executable and of the upscaling and neural-rendering libraries it ships, the content of its executable file (the markers of the engine and of the graphics libraries it carries, the libraries it imports, and the engine build name an Unreal Engine game carries), the version marks an engine keeps in its own files (Unity's player library and the header of its data file, the header of a Godot data pack, an RPG Maker game's title, core script and Game.ini, the library Game.ini names, and the version file of a Ren'Py game's engine), and the store files that name it (Steam's and GOG's, on your disk) and, for a game the Xbox app or the Microsoft Store installed, the package files in its install folder that describe it (`MicrosoftGame.config` and `appxmanifest.xml`) — to detect its engine, its engine version and its features and to check it for anti-cheat before any injection is possible; the lists of installed games that the Steam, GOG GALAXY, Epic Games and itch apps keep on your disk, and where GOG GALAXY is installed, the folders the Xbox app installs games into on each drive (named by the `.GamingRoot` file at the drive's root) with each game's package files, and Windows' answer to whether that game's package is installed for you — read when you import your library and when you press Play, to find the store that installed a game and hand the game to that store's app — Steam's and GOG GALAXY's also when you open a game's page, to find the artwork their apps keep for it; the cover and banner images that the Steam and GOG GALAXY apps keep on your disk for a game in your library and the logo and splash-screen images a game from the Xbox app ships in its own folder — read to show them on its page, never copied or sent anywhere; the size, position and state of a tracked game's window and the monitor it is on, read from Windows and not from the game, and — for a game FrameLedger injects into — whether the game asked for exclusive full-screen; the NVIDIA driver's settings for your tracked executables (read only: the DLSS and frame-generation overrides the NVIDIA App set); hardware sensor values from your graphics driver's own libraries; and — only while Advanced metrics is on — that driver's description of the graphLine truncated
|
||||
|
||||
It does **not** read game memory outside those API parameters, and does not read game saves, chat, input content, network traffic, or anything unrelated to performance measurement. It records only for programs you added to your library and did not switch recording off for — a program whose recording is off is not watched at all — and injects only into games you individually enabled.
|
||||
|
||||
|
||||
Generated
+63
@@ -263,6 +263,7 @@ public static class Strings
|
||||
nameof(Advanced_Facts_Header),
|
||||
nameof(Advanced_Header),
|
||||
nameof(Advanced_InGameCallsLine),
|
||||
nameof(Advanced_InGameDriverLine),
|
||||
nameof(Advanced_InGameFeatureCallsLine),
|
||||
nameof(Advanced_InGameLine),
|
||||
nameof(Advanced_InGameMoreCallsLine),
|
||||
@@ -286,12 +287,24 @@ public static class Strings
|
||||
nameof(Advanced_State_Viewer),
|
||||
nameof(Advanced_State_Waiting),
|
||||
nameof(Advanced_Status_InGame),
|
||||
nameof(Advanced_Status_InGameDriver),
|
||||
nameof(Advanced_Status_Read),
|
||||
nameof(Advanced_Status_Readable),
|
||||
nameof(Advanced_Status_SourceSilent),
|
||||
nameof(Advanced_Tab_Machine),
|
||||
nameof(Advanced_Tab_Session),
|
||||
nameof(Advanced_Tab_Sources),
|
||||
nameof(AdvDriverRead_Error),
|
||||
nameof(AdvDriverRead_Faulted),
|
||||
nameof(AdvDriverRead_NoDirect3D12),
|
||||
nameof(AdvDriverRead_NoGetter),
|
||||
nameof(AdvDriverRead_NoModule),
|
||||
nameof(AdvDriverRead_NothingReported),
|
||||
nameof(AdvDriverRead_Read),
|
||||
nameof(AdvDriverRead_Refused),
|
||||
nameof(AdvDriverRead_Slow),
|
||||
nameof(AdvDriverRead_Stalled),
|
||||
nameof(AdvDriverRead_Unknown),
|
||||
nameof(AdvGroup_Board),
|
||||
nameof(AdvGroup_Cpu),
|
||||
nameof(AdvGroup_Display),
|
||||
@@ -322,6 +335,7 @@ public static class Strings
|
||||
nameof(AdvReach_NotInHeaders),
|
||||
nameof(AdvReach_PlayerState),
|
||||
nameof(AdvReach_Refused),
|
||||
nameof(AdvReach_RefusedRoute),
|
||||
nameof(AdvReach_Spike),
|
||||
nameof(AdvScope_MachineFact),
|
||||
nameof(AdvScope_Series),
|
||||
@@ -340,10 +354,12 @@ public static class Strings
|
||||
nameof(AdvToken_discrete),
|
||||
nameof(AdvToken_dolby_vision),
|
||||
nameof(AdvToken_draw_debug_view),
|
||||
nameof(AdvToken_driver),
|
||||
nameof(AdvToken_driver_default),
|
||||
nameof(AdvToken_edr),
|
||||
nameof(AdvToken_fpci),
|
||||
nameof(AdvToken_game_ready),
|
||||
nameof(AdvToken_gpu_render),
|
||||
nameof(AdvToken_gsync_module),
|
||||
nameof(AdvToken_hdr10),
|
||||
nameof(AdvToken_hdr10_plus),
|
||||
@@ -360,13 +376,18 @@ public static class Strings
|
||||
nameof(AdvToken_off),
|
||||
nameof(AdvToken_on),
|
||||
nameof(AdvToken_on_and_off),
|
||||
nameof(AdvToken_os_queue),
|
||||
nameof(AdvToken_pci),
|
||||
nameof(AdvToken_pci_express),
|
||||
nameof(AdvToken_present),
|
||||
nameof(AdvToken_render_submit),
|
||||
nameof(AdvToken_rtx_new_feature),
|
||||
nameof(AdvToken_rtx_production),
|
||||
nameof(AdvToken_scrgb_linear),
|
||||
nameof(AdvToken_simulation),
|
||||
nameof(AdvToken_srgb),
|
||||
nameof(AdvToken_studio),
|
||||
nameof(AdvToken_total),
|
||||
nameof(AdvToken_ulmb),
|
||||
nameof(AdvToken_usable_now),
|
||||
nameof(AdvToken_user_set),
|
||||
@@ -2006,6 +2027,8 @@ public static class Strings
|
||||
|
||||
public static string Advanced_InGameCallsLine => ResourceManager.GetString(nameof(Advanced_InGameCallsLine), Culture) ?? nameof(Advanced_InGameCallsLine);
|
||||
|
||||
public static string Advanced_InGameDriverLine => ResourceManager.GetString(nameof(Advanced_InGameDriverLine), Culture) ?? nameof(Advanced_InGameDriverLine);
|
||||
|
||||
public static string Advanced_InGameFeatureCallsLine => ResourceManager.GetString(nameof(Advanced_InGameFeatureCallsLine), Culture) ?? nameof(Advanced_InGameFeatureCallsLine);
|
||||
|
||||
public static string Advanced_InGameLine => ResourceManager.GetString(nameof(Advanced_InGameLine), Culture) ?? nameof(Advanced_InGameLine);
|
||||
@@ -2052,6 +2075,8 @@ public static class Strings
|
||||
|
||||
public static string Advanced_Status_InGame => ResourceManager.GetString(nameof(Advanced_Status_InGame), Culture) ?? nameof(Advanced_Status_InGame);
|
||||
|
||||
public static string Advanced_Status_InGameDriver => ResourceManager.GetString(nameof(Advanced_Status_InGameDriver), Culture) ?? nameof(Advanced_Status_InGameDriver);
|
||||
|
||||
public static string Advanced_Status_Read => ResourceManager.GetString(nameof(Advanced_Status_Read), Culture) ?? nameof(Advanced_Status_Read);
|
||||
|
||||
public static string Advanced_Status_Readable => ResourceManager.GetString(nameof(Advanced_Status_Readable), Culture) ?? nameof(Advanced_Status_Readable);
|
||||
@@ -2064,6 +2089,28 @@ public static class Strings
|
||||
|
||||
public static string Advanced_Tab_Sources => ResourceManager.GetString(nameof(Advanced_Tab_Sources), Culture) ?? nameof(Advanced_Tab_Sources);
|
||||
|
||||
public static string AdvDriverRead_Error => ResourceManager.GetString(nameof(AdvDriverRead_Error), Culture) ?? nameof(AdvDriverRead_Error);
|
||||
|
||||
public static string AdvDriverRead_Faulted => ResourceManager.GetString(nameof(AdvDriverRead_Faulted), Culture) ?? nameof(AdvDriverRead_Faulted);
|
||||
|
||||
public static string AdvDriverRead_NoDirect3D12 => ResourceManager.GetString(nameof(AdvDriverRead_NoDirect3D12), Culture) ?? nameof(AdvDriverRead_NoDirect3D12);
|
||||
|
||||
public static string AdvDriverRead_NoGetter => ResourceManager.GetString(nameof(AdvDriverRead_NoGetter), Culture) ?? nameof(AdvDriverRead_NoGetter);
|
||||
|
||||
public static string AdvDriverRead_NoModule => ResourceManager.GetString(nameof(AdvDriverRead_NoModule), Culture) ?? nameof(AdvDriverRead_NoModule);
|
||||
|
||||
public static string AdvDriverRead_NothingReported => ResourceManager.GetString(nameof(AdvDriverRead_NothingReported), Culture) ?? nameof(AdvDriverRead_NothingReported);
|
||||
|
||||
public static string AdvDriverRead_Read => ResourceManager.GetString(nameof(AdvDriverRead_Read), Culture) ?? nameof(AdvDriverRead_Read);
|
||||
|
||||
public static string AdvDriverRead_Refused => ResourceManager.GetString(nameof(AdvDriverRead_Refused), Culture) ?? nameof(AdvDriverRead_Refused);
|
||||
|
||||
public static string AdvDriverRead_Slow => ResourceManager.GetString(nameof(AdvDriverRead_Slow), Culture) ?? nameof(AdvDriverRead_Slow);
|
||||
|
||||
public static string AdvDriverRead_Stalled => ResourceManager.GetString(nameof(AdvDriverRead_Stalled), Culture) ?? nameof(AdvDriverRead_Stalled);
|
||||
|
||||
public static string AdvDriverRead_Unknown => ResourceManager.GetString(nameof(AdvDriverRead_Unknown), Culture) ?? nameof(AdvDriverRead_Unknown);
|
||||
|
||||
public static string AdvGroup_Board => ResourceManager.GetString(nameof(AdvGroup_Board), Culture) ?? nameof(AdvGroup_Board);
|
||||
|
||||
public static string AdvGroup_Cpu => ResourceManager.GetString(nameof(AdvGroup_Cpu), Culture) ?? nameof(AdvGroup_Cpu);
|
||||
@@ -2124,6 +2171,8 @@ public static class Strings
|
||||
|
||||
public static string AdvReach_Refused => ResourceManager.GetString(nameof(AdvReach_Refused), Culture) ?? nameof(AdvReach_Refused);
|
||||
|
||||
public static string AdvReach_RefusedRoute => ResourceManager.GetString(nameof(AdvReach_RefusedRoute), Culture) ?? nameof(AdvReach_RefusedRoute);
|
||||
|
||||
public static string AdvReach_Spike => ResourceManager.GetString(nameof(AdvReach_Spike), Culture) ?? nameof(AdvReach_Spike);
|
||||
|
||||
public static string AdvScope_MachineFact => ResourceManager.GetString(nameof(AdvScope_MachineFact), Culture) ?? nameof(AdvScope_MachineFact);
|
||||
@@ -2160,6 +2209,8 @@ public static class Strings
|
||||
|
||||
public static string AdvToken_draw_debug_view => ResourceManager.GetString(nameof(AdvToken_draw_debug_view), Culture) ?? nameof(AdvToken_draw_debug_view);
|
||||
|
||||
public static string AdvToken_driver => ResourceManager.GetString(nameof(AdvToken_driver), Culture) ?? nameof(AdvToken_driver);
|
||||
|
||||
public static string AdvToken_driver_default => ResourceManager.GetString(nameof(AdvToken_driver_default), Culture) ?? nameof(AdvToken_driver_default);
|
||||
|
||||
public static string AdvToken_edr => ResourceManager.GetString(nameof(AdvToken_edr), Culture) ?? nameof(AdvToken_edr);
|
||||
@@ -2168,6 +2219,8 @@ public static class Strings
|
||||
|
||||
public static string AdvToken_game_ready => ResourceManager.GetString(nameof(AdvToken_game_ready), Culture) ?? nameof(AdvToken_game_ready);
|
||||
|
||||
public static string AdvToken_gpu_render => ResourceManager.GetString(nameof(AdvToken_gpu_render), Culture) ?? nameof(AdvToken_gpu_render);
|
||||
|
||||
public static string AdvToken_gsync_module => ResourceManager.GetString(nameof(AdvToken_gsync_module), Culture) ?? nameof(AdvToken_gsync_module);
|
||||
|
||||
public static string AdvToken_hdr10 => ResourceManager.GetString(nameof(AdvToken_hdr10), Culture) ?? nameof(AdvToken_hdr10);
|
||||
@@ -2200,20 +2253,30 @@ public static class Strings
|
||||
|
||||
public static string AdvToken_on_and_off => ResourceManager.GetString(nameof(AdvToken_on_and_off), Culture) ?? nameof(AdvToken_on_and_off);
|
||||
|
||||
public static string AdvToken_os_queue => ResourceManager.GetString(nameof(AdvToken_os_queue), Culture) ?? nameof(AdvToken_os_queue);
|
||||
|
||||
public static string AdvToken_pci => ResourceManager.GetString(nameof(AdvToken_pci), Culture) ?? nameof(AdvToken_pci);
|
||||
|
||||
public static string AdvToken_pci_express => ResourceManager.GetString(nameof(AdvToken_pci_express), Culture) ?? nameof(AdvToken_pci_express);
|
||||
|
||||
public static string AdvToken_present => ResourceManager.GetString(nameof(AdvToken_present), Culture) ?? nameof(AdvToken_present);
|
||||
|
||||
public static string AdvToken_render_submit => ResourceManager.GetString(nameof(AdvToken_render_submit), Culture) ?? nameof(AdvToken_render_submit);
|
||||
|
||||
public static string AdvToken_rtx_new_feature => ResourceManager.GetString(nameof(AdvToken_rtx_new_feature), Culture) ?? nameof(AdvToken_rtx_new_feature);
|
||||
|
||||
public static string AdvToken_rtx_production => ResourceManager.GetString(nameof(AdvToken_rtx_production), Culture) ?? nameof(AdvToken_rtx_production);
|
||||
|
||||
public static string AdvToken_scrgb_linear => ResourceManager.GetString(nameof(AdvToken_scrgb_linear), Culture) ?? nameof(AdvToken_scrgb_linear);
|
||||
|
||||
public static string AdvToken_simulation => ResourceManager.GetString(nameof(AdvToken_simulation), Culture) ?? nameof(AdvToken_simulation);
|
||||
|
||||
public static string AdvToken_srgb => ResourceManager.GetString(nameof(AdvToken_srgb), Culture) ?? nameof(AdvToken_srgb);
|
||||
|
||||
public static string AdvToken_studio => ResourceManager.GetString(nameof(AdvToken_studio), Culture) ?? nameof(AdvToken_studio);
|
||||
|
||||
public static string AdvToken_total => ResourceManager.GetString(nameof(AdvToken_total), Culture) ?? nameof(AdvToken_total);
|
||||
|
||||
public static string AdvToken_ulmb => ResourceManager.GetString(nameof(AdvToken_ulmb), Culture) ?? nameof(AdvToken_ulmb);
|
||||
|
||||
public static string AdvToken_usable_now => ResourceManager.GetString(nameof(AdvToken_usable_now), Culture) ?? nameof(AdvToken_usable_now);
|
||||
|
||||
@@ -665,6 +665,10 @@
|
||||
<value>ゲームが毎フレーム Streamline に伝える内容: {0}。FSR フレーム生成の設定方法: {1}。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Advanced_InGameDriverLine" xml:space="preserve">
|
||||
<value>NVIDIA の遅延レポート (FrameLedger がゲーム内でグラフィックス ドライバーに問い合わせます): {0}。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Advanced_InGameFeatureCallsLine" xml:space="preserve">
|
||||
<value>各 Streamline 機能のバージョン: {0}。各機能の要件: {1}。</value>
|
||||
<comment>review</comment>
|
||||
@@ -757,6 +761,10 @@
|
||||
<value>FrameLedger が計測するゲーム内で、ゲームがその呼び出しを行ったときに読み取り</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Advanced_Status_InGameDriver" xml:space="preserve">
|
||||
<value>FrameLedger が計測するゲーム内で、グラフィックス ドライバーから読み取り: FrameLedger が約 1 秒に 1 回問い合わせます</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Advanced_Status_Read" xml:space="preserve">
|
||||
<value>読み取り中</value>
|
||||
<comment>review</comment>
|
||||
@@ -781,6 +789,50 @@
|
||||
<value>ソース</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Error" xml:space="preserve">
|
||||
<value>ドライバーがエラーを返しました</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Faulted" xml:space="preserve">
|
||||
<value>ゲーム終了まで停止 - ドライバーへの呼び出しでフォールトが発生しました</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NoDirect3D12" xml:space="preserve">
|
||||
<value>読み取っていません - このゲームは Direct3D 12 で表示していません</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NoGetter" xml:space="preserve">
|
||||
<value>読み取っていません - ライブラリが 2 つの関数を返しませんでした</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NoModule" xml:space="preserve">
|
||||
<value>読み取っていません - ゲームが NVIDIA の nvapi64.dll を読み込んでおらず、FrameLedger がそれを読み込むことはありません</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NothingReported" xml:space="preserve">
|
||||
<value>問い合わせましたが、ドライバーはフレームを報告しませんでした - このゲームは NVIDIA Reflex を使用していません</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Read" xml:space="preserve">
|
||||
<value>読み取りました</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Refused" xml:space="preserve">
|
||||
<value>読み取っていません - ゲーム内の nvapi64.dll はゲーム自身のフォルダーにあり、ドライバーのものではありません</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Slow" xml:space="preserve">
|
||||
<value>ゲーム終了まで停止 - ドライバーへの呼び出しに {0:N0} µs かかりました。2,000 µs 以上かかった呼び出しが最後になります</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Stalled" xml:space="preserve">
|
||||
<value>停止 - ドライバーへの呼び出しが戻りませんでした</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Unknown" xml:space="preserve">
|
||||
<value>記録なし</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvGroup_Board" xml:space="preserve">
|
||||
<value>マザーボード</value>
|
||||
<comment>review</comment>
|
||||
@@ -901,6 +953,10 @@
|
||||
<value>読み取らない: センサー ライブラリがすべての USB デバイスを探索することになるため</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvReach_RefusedRoute" xml:space="preserve">
|
||||
<value>読み取りません: ゲーム実行中にしか分からないアドレスへのパッチ、またはゲーム自身のスレッド以外からの呼び出しをベンダーが禁じている関数が必要になるためです - どちらも行いません</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvReach_Spike" xml:space="preserve">
|
||||
<value>調査中 (未決定)</value>
|
||||
<comment>review</comment>
|
||||
@@ -969,6 +1025,10 @@
|
||||
<value>Dolby Vision</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_driver" xml:space="preserve">
|
||||
<value>ドライバー</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_driver_default" xml:space="preserve">
|
||||
<value>ドライバーの既定値</value>
|
||||
<comment>review</comment>
|
||||
@@ -989,6 +1049,10 @@
|
||||
<value>Game Ready</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_gpu_render" xml:space="preserve">
|
||||
<value>GPU 描画</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_gsync_module" xml:space="preserve">
|
||||
<value>G-SYNC モジュール</value>
|
||||
<comment>review</comment>
|
||||
@@ -1053,6 +1117,10 @@
|
||||
<value>オンのときとオフのときがあります</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_os_queue" xml:space="preserve">
|
||||
<value>OS の描画キュー</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_pci" xml:space="preserve">
|
||||
<value>PCI</value>
|
||||
<comment>review</comment>
|
||||
@@ -1061,6 +1129,14 @@
|
||||
<value>PCI Express</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_present" xml:space="preserve">
|
||||
<value>プレゼント</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_render_submit" xml:space="preserve">
|
||||
<value>描画コマンドの送信</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_rtx_new_feature" xml:space="preserve">
|
||||
<value>RTX 新機能ブランチ</value>
|
||||
<comment>review</comment>
|
||||
@@ -1073,6 +1149,10 @@
|
||||
<value>scRGB (リニア)</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_simulation" xml:space="preserve">
|
||||
<value>シミュレーション</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_srgb" xml:space="preserve">
|
||||
<value>sRGB</value>
|
||||
<comment>review</comment>
|
||||
@@ -1081,6 +1161,10 @@
|
||||
<value>Studio</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_total" xml:space="preserve">
|
||||
<value>合計 (シミュレーション開始から GPU 描画終了まで)</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_ulmb" xml:space="preserve">
|
||||
<value>ULMB</value>
|
||||
<comment>review</comment>
|
||||
@@ -1486,7 +1570,7 @@
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Settings_Advanced_Body" xml:space="preserve">
|
||||
<value>セッション中にグラフィックス ドライバーとハードウェア センサーからさらに多くを読み取り、セッションと一緒に保存します - グラフィックス カードのメモリと負荷の詳細、各ファンと電圧、ディスプレイの対応機能、ゲームに対するドライバーの設定など。FrameLedger が内部から計測するゲームでは、ゲームが DLSS、Streamline、FSR に渡す内容 (サイズ、プリセット、シャープニング、露出、深度範囲、フレーム生成の設定) も読み取ります - カメラの位置は決して読み取りません。オフ: ゲーム内も含め、追加の読み取りも保存も行いません。次のセッションから適用され、オフの間に記録したセッションが後から補われることはありません。</value>
|
||||
<value>セッション中にグラフィックス ドライバーとハードウェア センサーからさらに多くを読み取り、セッションと一緒に保存します - グラフィックス カードのメモリと負荷の詳細、各ファンと電圧、ディスプレイの対応機能、ゲームに対するドライバーの設定など。FrameLedger が内部から計測するゲームでは、ゲームが DLSS、Streamline、FSR に渡す内容 (サイズ、プリセット、シャープニング、露出、深度範囲、フレーム生成の設定) も読み取ります - カメラの位置は決して読み取りません。NVIDIA のカードで、NVIDIA のライブラリを使用する Direct3D 12 のゲームでは、フレームの各段階にかかった時間を、FrameLedger がゲーム内から約 1 秒に 1 回グラフィックス ドライバーに問い合わせます - これは、ゲームのフレームを表示するスレッド上で FrameLedger 自身が行う呼び出しです。オフ: ゲーム内も含め、追加の読み取りも保存も行いません。次のセッションから適用され、オフの間に記録したセッションが後から補われることはありません。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Settings_Advanced_Label" xml:space="preserve">
|
||||
|
||||
@@ -504,6 +504,9 @@
|
||||
<data name="Advanced_InGameCallsLine" xml:space="preserve">
|
||||
<value>What the game tells Streamline each frame: {0}. How it configures FSR frame generation: {1}.</value>
|
||||
</data>
|
||||
<data name="Advanced_InGameDriverLine" xml:space="preserve">
|
||||
<value>NVIDIA's latency report, which FrameLedger asks the graphics driver for inside the game: {0}.</value>
|
||||
</data>
|
||||
<data name="Advanced_InGameFeatureCallsLine" xml:space="preserve">
|
||||
<value>Which version each Streamline feature is: {0}. What each requires: {1}.</value>
|
||||
</data>
|
||||
@@ -573,6 +576,9 @@
|
||||
<data name="Advanced_Status_InGame" xml:space="preserve">
|
||||
<value>Read inside a game FrameLedger measures, when the game makes the call</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_InGameDriver" xml:space="preserve">
|
||||
<value>Read inside a game FrameLedger measures, from the graphics driver: FrameLedger asks for it about once a second</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_Read" xml:space="preserve">
|
||||
<value>Read</value>
|
||||
</data>
|
||||
@@ -591,6 +597,39 @@
|
||||
<data name="Advanced_Tab_Sources" xml:space="preserve">
|
||||
<value>Sources</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Error" xml:space="preserve">
|
||||
<value>the driver answered with an error</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Faulted" xml:space="preserve">
|
||||
<value>stopped until the game closed - a call into the driver faulted</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NoDirect3D12" xml:space="preserve">
|
||||
<value>not read - the game does not present through Direct3D 12</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NoGetter" xml:space="preserve">
|
||||
<value>not read - the library did not answer for the two functions</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NoModule" xml:space="preserve">
|
||||
<value>not read - the game has not loaded NVIDIA's nvapi64.dll, and FrameLedger never loads it</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NothingReported" xml:space="preserve">
|
||||
<value>asked, and the driver reported no frame - the game does not use NVIDIA Reflex</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Read" xml:space="preserve">
|
||||
<value>read</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Refused" xml:space="preserve">
|
||||
<value>not read - the nvapi64.dll in the game is in the game's own folder, not the driver's</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Slow" xml:space="preserve">
|
||||
<value>stopped until the game closed - a call into the driver took {0:N0} µs, and one of 2,000 µs or more is the last</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Stalled" xml:space="preserve">
|
||||
<value>stopped - a call into the driver did not return</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Unknown" xml:space="preserve">
|
||||
<value>not stated</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Board" xml:space="preserve">
|
||||
<value>Motherboard</value>
|
||||
</data>
|
||||
@@ -681,6 +720,9 @@
|
||||
<data name="AdvReach_Refused" xml:space="preserve">
|
||||
<value>Not read: it would make the sensor library search every USB device</value>
|
||||
</data>
|
||||
<data name="AdvReach_RefusedRoute" xml:space="preserve">
|
||||
<value>Not read: it would take a patch at an address found while the game runs, or a call the vendor forbids from outside the game's own threads - both refused</value>
|
||||
</data>
|
||||
<data name="AdvReach_Spike" xml:space="preserve">
|
||||
<value>Being studied; not decided</value>
|
||||
</data>
|
||||
@@ -732,6 +774,9 @@
|
||||
<data name="AdvToken_dolby_vision" xml:space="preserve">
|
||||
<value>Dolby Vision</value>
|
||||
</data>
|
||||
<data name="AdvToken_driver" xml:space="preserve">
|
||||
<value>driver</value>
|
||||
</data>
|
||||
<data name="AdvToken_driver_default" xml:space="preserve">
|
||||
<value>Driver default</value>
|
||||
</data>
|
||||
@@ -747,6 +792,9 @@
|
||||
<data name="AdvToken_game_ready" xml:space="preserve">
|
||||
<value>Game Ready</value>
|
||||
</data>
|
||||
<data name="AdvToken_gpu_render" xml:space="preserve">
|
||||
<value>GPU render</value>
|
||||
</data>
|
||||
<data name="AdvToken_gsync_module" xml:space="preserve">
|
||||
<value>G-SYNC module</value>
|
||||
</data>
|
||||
@@ -795,12 +843,21 @@
|
||||
<data name="AdvToken_on_and_off" xml:space="preserve">
|
||||
<value>On at times, off at others</value>
|
||||
</data>
|
||||
<data name="AdvToken_os_queue" xml:space="preserve">
|
||||
<value>operating system's render queue</value>
|
||||
</data>
|
||||
<data name="AdvToken_pci" xml:space="preserve">
|
||||
<value>PCI</value>
|
||||
</data>
|
||||
<data name="AdvToken_pci_express" xml:space="preserve">
|
||||
<value>PCI Express</value>
|
||||
</data>
|
||||
<data name="AdvToken_present" xml:space="preserve">
|
||||
<value>present</value>
|
||||
</data>
|
||||
<data name="AdvToken_render_submit" xml:space="preserve">
|
||||
<value>render submit</value>
|
||||
</data>
|
||||
<data name="AdvToken_rtx_new_feature" xml:space="preserve">
|
||||
<value>RTX new-feature branch</value>
|
||||
</data>
|
||||
@@ -810,12 +867,18 @@
|
||||
<data name="AdvToken_scrgb_linear" xml:space="preserve">
|
||||
<value>scRGB (linear)</value>
|
||||
</data>
|
||||
<data name="AdvToken_simulation" xml:space="preserve">
|
||||
<value>simulation</value>
|
||||
</data>
|
||||
<data name="AdvToken_srgb" xml:space="preserve">
|
||||
<value>sRGB</value>
|
||||
</data>
|
||||
<data name="AdvToken_studio" xml:space="preserve">
|
||||
<value>Studio</value>
|
||||
</data>
|
||||
<data name="AdvToken_total" xml:space="preserve">
|
||||
<value>total, simulation start to GPU render end</value>
|
||||
</data>
|
||||
<data name="AdvToken_ulmb" xml:space="preserve">
|
||||
<value>ULMB</value>
|
||||
</data>
|
||||
@@ -1120,7 +1183,7 @@
|
||||
<value>The agent did not answer the rules update.</value>
|
||||
</data>
|
||||
<data name="Settings_Advanced_Body" xml:space="preserve">
|
||||
<value>Read more from the graphics driver and the hardware sensors during a session - the graphics card's memory and load in detail, each fan and voltage, what your display can do, the driver's settings for the game - and, in a game FrameLedger measures from inside, what the game tells DLSS, Streamline and FSR (sizes, presets, sharpening, exposure, the depth range, how frame generation is configured - never where the camera is). All of it is stored with the session. Off: nothing more is read or stored, inside a game either. It applies from the next session, and a session recorded while it was off is not filled in later.</value>
|
||||
<value>Read more from the graphics driver and the hardware sensors during a session - the graphics card's memory and load in detail, each fan and voltage, what your display can do, the driver's settings for the game - and, in a game FrameLedger measures from inside, what the game tells DLSS, Streamline and FSR (sizes, presets, sharpening, exposure, the depth range, how frame generation is configured - never where the camera is). On an NVIDIA card, in a Direct3D 12 game that uses NVIDIA's own library, FrameLedger also asks the graphics driver about once a second, from inside the game, how long each stage of a frame took - a call it makes itself on the thread that shows the game's frames. All of it is stored with the session. Off: nothing more is read or stored, inside a game either. It applies from the next session, and a session recorded while it was off is not filled in later.</value>
|
||||
</data>
|
||||
<data name="Settings_Advanced_Label" xml:space="preserve">
|
||||
<value>Advanced metrics</value>
|
||||
|
||||
@@ -499,6 +499,9 @@
|
||||
<data name="Advanced_InGameCallsLine" xml:space="preserve">
|
||||
<value>Những gì game báo cho Streamline mỗi khung hình: {0}. Cách game cấu hình frame generation của FSR: {1}.</value>
|
||||
</data>
|
||||
<data name="Advanced_InGameDriverLine" xml:space="preserve">
|
||||
<value>Báo cáo độ trễ của NVIDIA, do FrameLedger hỏi driver đồ họa ngay bên trong game: {0}.</value>
|
||||
</data>
|
||||
<data name="Advanced_InGameFeatureCallsLine" xml:space="preserve">
|
||||
<value>Mỗi tính năng Streamline là phiên bản nào: {0}. Mỗi tính năng cần gì: {1}.</value>
|
||||
</data>
|
||||
@@ -568,6 +571,9 @@
|
||||
<data name="Advanced_Status_InGame" xml:space="preserve">
|
||||
<value>Được đọc bên trong game mà FrameLedger đo, khi game thực hiện lời gọi đó</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_InGameDriver" xml:space="preserve">
|
||||
<value>Được đọc bên trong game mà FrameLedger đo, từ driver đồ họa: FrameLedger hỏi khoảng mỗi giây một lần</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_Read" xml:space="preserve">
|
||||
<value>Đang đọc</value>
|
||||
</data>
|
||||
@@ -586,6 +592,39 @@
|
||||
<data name="Advanced_Tab_Sources" xml:space="preserve">
|
||||
<value>Nguồn</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Error" xml:space="preserve">
|
||||
<value>driver trả về lỗi</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Faulted" xml:space="preserve">
|
||||
<value>đã dừng cho tới khi đóng game - một lời gọi vào driver gặp lỗi (fault)</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NoDirect3D12" xml:space="preserve">
|
||||
<value>không đọc - game không hiển thị qua Direct3D 12</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NoGetter" xml:space="preserve">
|
||||
<value>không đọc - thư viện không trả về hai hàm cần gọi</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NoModule" xml:space="preserve">
|
||||
<value>không đọc - game chưa nạp nvapi64.dll của NVIDIA, và FrameLedger không bao giờ nạp nó</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_NothingReported" xml:space="preserve">
|
||||
<value>đã hỏi, driver không báo khung hình nào - game không dùng NVIDIA Reflex</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Read" xml:space="preserve">
|
||||
<value>đã đọc</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Refused" xml:space="preserve">
|
||||
<value>không đọc - nvapi64.dll trong game nằm ở chính thư mục của game, không phải của driver</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Slow" xml:space="preserve">
|
||||
<value>đã dừng cho tới khi đóng game - một lời gọi vào driver mất {0:N0} µs, và lời gọi từ 2.000 µs trở lên là lời gọi cuối</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Stalled" xml:space="preserve">
|
||||
<value>đã dừng - một lời gọi vào driver không trả về</value>
|
||||
</data>
|
||||
<data name="AdvDriverRead_Unknown" xml:space="preserve">
|
||||
<value>không được ghi</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Board" xml:space="preserve">
|
||||
<value>Bo mạch chủ</value>
|
||||
</data>
|
||||
@@ -676,6 +715,9 @@
|
||||
<data name="AdvReach_Refused" xml:space="preserve">
|
||||
<value>Không đọc: việc này khiến thư viện cảm biến dò mọi thiết bị USB</value>
|
||||
</data>
|
||||
<data name="AdvReach_RefusedRoute" xml:space="preserve">
|
||||
<value>Không đọc: việc đó cần vá mã tại một địa chỉ chỉ tìm được khi game đang chạy, hoặc một lời gọi mà nhà cung cấp cấm thực hiện từ ngoài luồng của game - cả hai đều bị từ chối</value>
|
||||
</data>
|
||||
<data name="AdvReach_Spike" xml:space="preserve">
|
||||
<value>Đang nghiên cứu; chưa quyết định</value>
|
||||
</data>
|
||||
@@ -727,6 +769,9 @@
|
||||
<data name="AdvToken_dolby_vision" xml:space="preserve">
|
||||
<value>Dolby Vision</value>
|
||||
</data>
|
||||
<data name="AdvToken_driver" xml:space="preserve">
|
||||
<value>driver</value>
|
||||
</data>
|
||||
<data name="AdvToken_driver_default" xml:space="preserve">
|
||||
<value>Mặc định của driver</value>
|
||||
</data>
|
||||
@@ -742,6 +787,9 @@
|
||||
<data name="AdvToken_game_ready" xml:space="preserve">
|
||||
<value>Game Ready</value>
|
||||
</data>
|
||||
<data name="AdvToken_gpu_render" xml:space="preserve">
|
||||
<value>GPU vẽ</value>
|
||||
</data>
|
||||
<data name="AdvToken_gsync_module" xml:space="preserve">
|
||||
<value>Mô-đun G-SYNC</value>
|
||||
</data>
|
||||
@@ -790,12 +838,21 @@
|
||||
<data name="AdvToken_on_and_off" xml:space="preserve">
|
||||
<value>Lúc bật, lúc tắt</value>
|
||||
</data>
|
||||
<data name="AdvToken_os_queue" xml:space="preserve">
|
||||
<value>hàng đợi vẽ của hệ điều hành</value>
|
||||
</data>
|
||||
<data name="AdvToken_pci" xml:space="preserve">
|
||||
<value>PCI</value>
|
||||
</data>
|
||||
<data name="AdvToken_pci_express" xml:space="preserve">
|
||||
<value>PCI Express</value>
|
||||
</data>
|
||||
<data name="AdvToken_present" xml:space="preserve">
|
||||
<value>present</value>
|
||||
</data>
|
||||
<data name="AdvToken_render_submit" xml:space="preserve">
|
||||
<value>gửi lệnh vẽ</value>
|
||||
</data>
|
||||
<data name="AdvToken_rtx_new_feature" xml:space="preserve">
|
||||
<value>Nhánh RTX tính năng mới</value>
|
||||
</data>
|
||||
@@ -805,12 +862,18 @@
|
||||
<data name="AdvToken_scrgb_linear" xml:space="preserve">
|
||||
<value>scRGB (tuyến tính)</value>
|
||||
</data>
|
||||
<data name="AdvToken_simulation" xml:space="preserve">
|
||||
<value>mô phỏng</value>
|
||||
</data>
|
||||
<data name="AdvToken_srgb" xml:space="preserve">
|
||||
<value>sRGB</value>
|
||||
</data>
|
||||
<data name="AdvToken_studio" xml:space="preserve">
|
||||
<value>Studio</value>
|
||||
</data>
|
||||
<data name="AdvToken_total" xml:space="preserve">
|
||||
<value>tổng, từ đầu mô phỏng tới khi GPU vẽ xong</value>
|
||||
</data>
|
||||
<data name="AdvToken_ulmb" xml:space="preserve">
|
||||
<value>ULMB</value>
|
||||
</data>
|
||||
@@ -1115,7 +1178,7 @@
|
||||
<value>Agent không phản hồi yêu cầu cập nhật quy tắc.</value>
|
||||
</data>
|
||||
<data name="Settings_Advanced_Body" xml:space="preserve">
|
||||
<value>Đọc thêm từ driver đồ hoạ và các cảm biến phần cứng trong lúc ghi phiên - bộ nhớ và tải của card đồ hoạ ở mức chi tiết, từng quạt và điện áp, khả năng của màn hình, thiết lập của driver cho game - và, với game mà FrameLedger đo từ bên trong, những gì game đưa cho DLSS, Streamline và FSR (kích thước, preset, làm nét, phơi sáng, khoảng độ sâu, cách cấu hình frame generation - không bao giờ là vị trí camera). Tất cả được lưu cùng phiên. Tắt: không đọc và không lưu thêm gì, kể cả bên trong game. Áp dụng từ phiên kế tiếp; phiên đã ghi lúc tắt sẽ không được bổ sung về sau.</value>
|
||||
<value>Đọc thêm từ driver đồ hoạ và các cảm biến phần cứng trong lúc ghi phiên - bộ nhớ và tải của card đồ hoạ ở mức chi tiết, từng quạt và điện áp, khả năng của màn hình, thiết lập của driver cho game - và, với game mà FrameLedger đo từ bên trong, những gì game đưa cho DLSS, Streamline và FSR (kích thước, preset, làm nét, phơi sáng, khoảng độ sâu, cách cấu hình frame generation - không bao giờ là vị trí camera). Với card NVIDIA, trong game Direct3D 12 có dùng thư viện của NVIDIA, FrameLedger còn hỏi driver đồ hoạ khoảng mỗi giây một lần, ngay bên trong game, xem từng chặng của một khung hình mất bao lâu - đây là lời gọi do chính FrameLedger thực hiện trên luồng hiển thị khung hình của game. Tất cả được lưu cùng phiên. Tắt: không đọc và không lưu thêm gì, kể cả bên trong game. Áp dụng từ phiên kế tiếp; phiên đã ghi lúc tắt sẽ không được bổ sung về sau.</value>
|
||||
</data>
|
||||
<data name="Settings_Advanced_Label" xml:space="preserve">
|
||||
<value>Thông số nâng cao</value>
|
||||
|
||||
@@ -63,6 +63,16 @@ public static class AdvancedLabels
|
||||
/// <summary>A token the driver's answer was mapped to; the token itself where this build has no word for it.</summary>
|
||||
public static string Token(string token) => Lookup("AdvToken_" + token) ?? token;
|
||||
|
||||
/// <summary>
|
||||
/// What became of the driver's latency report in a session, in words. A read stopped for being slow says how
|
||||
/// slow: <paramref name="slowestUs"/> is the session's slowest call into the driver, in microseconds.
|
||||
/// </summary>
|
||||
public static string DriverRead(AdvancedDriverRead read, int? slowestUs)
|
||||
{
|
||||
string text = Lookup("AdvDriverRead_" + read) ?? read.ToString();
|
||||
return read == AdvancedDriverRead.Slow ? string.Format(CultureInfo.CurrentCulture, text, slowestUs ?? 0) : text;
|
||||
}
|
||||
|
||||
/// <summary>A number in its unit. A flag is yes or no; a count has no unit.</summary>
|
||||
public static string Number(double value, AdvancedUnit unit)
|
||||
{
|
||||
|
||||
@@ -90,7 +90,9 @@ public static class AdvancedPresenter
|
||||
}
|
||||
}
|
||||
|
||||
return owner is null ? (null, series) : (owner, AdvancedLabels.Member(AdvancedLabels.Of(owner), id[(owner.Id.Length + 1)..]));
|
||||
// The member's own name, translated where it is one of ours (the spans of the driver's latency report) and
|
||||
// shown as it is where it is the hardware's.
|
||||
return owner is null ? (null, series) : (owner, AdvancedLabels.Member(AdvancedLabels.Of(owner), AdvancedLabels.Token(id[(owner.Id.Length + 1)..])));
|
||||
}
|
||||
|
||||
/// <summary>Every series as it reads now, in the catalog's order: its value in its unit and the time it was read at.</summary>
|
||||
@@ -223,6 +225,17 @@ public static class AdvancedPresenter
|
||||
line += " " + more;
|
||||
}
|
||||
|
||||
// The driver's latency report (train C): not one of the game's calls, so a sentence of its own - what became
|
||||
// of the read FrameLedger makes itself, with the microseconds when it was stopped for being slow. A row
|
||||
// stored before, and a session that says nothing about it, do not carry it.
|
||||
if (sources.DriverLatency is { } driver && driver != AdvancedDriverRead.Unknown)
|
||||
{
|
||||
line += " " + string.Format(
|
||||
CultureInfo.CurrentCulture,
|
||||
Strings.Advanced_InGameDriverLine,
|
||||
AdvancedLabels.DriverRead(driver, sources.DriverLatencySlowestUs));
|
||||
}
|
||||
|
||||
return line;
|
||||
}
|
||||
|
||||
@@ -269,6 +282,12 @@ public static class AdvancedPresenter
|
||||
return Strings.Advanced_Status_InGame;
|
||||
}
|
||||
|
||||
if (metric.Reach == AdvancedReach.GameDriver)
|
||||
{
|
||||
// Nor this: read inside a game being measured, by a call FrameLedger makes into the driver itself.
|
||||
return Strings.Advanced_Status_InGameDriver;
|
||||
}
|
||||
|
||||
AdvancedSourceStatus? state = now is null ? null : (metric.Source, metric.Reach) switch
|
||||
{
|
||||
(AdvancedSource.Nvapi, _) => now.Nvapi,
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Application.Advanced;
|
||||
|
||||
/// <summary>
|
||||
/// What became, in one session, of the one thing FrameLedger reads inside a game that is not an argument of a call
|
||||
/// it hooks: the graphics driver's latency report, which the part inside the game asks NVIDIA's driver for itself,
|
||||
/// about once a second (Advanced metrics train C; owner decisions D132, D136, D138-D141; the entries of reach
|
||||
/// <see cref="AdvancedReach.GameDriver"/>). Beside <see cref="AdvancedInGameCall"/> because the reasons a value is
|
||||
/// absent are different ones: there is no hook to be in or out, and there is a driver that can refuse.
|
||||
/// </summary>
|
||||
public enum AdvancedDriverRead
|
||||
{
|
||||
/// <summary>Not stated: a row stored before this existed, or a session the part inside the game said nothing about.</summary>
|
||||
Unknown = 0,
|
||||
|
||||
/// <summary>The driver was asked and reported frames.</summary>
|
||||
Read = 1,
|
||||
|
||||
/// <summary>The driver was asked and reported no frame: the game does not use NVIDIA Reflex.</summary>
|
||||
NothingReported = 2,
|
||||
|
||||
/// <summary>The game does not present through Direct3D 12, the one interface this is read on.</summary>
|
||||
NoDirect3D12 = 3,
|
||||
|
||||
/// <summary>The game has not loaded NVIDIA's <c>nvapi64.dll</c>, and FrameLedger never loads it.</summary>
|
||||
NoModule = 4,
|
||||
|
||||
/// <summary>The <c>nvapi64.dll</c> in the game sits in the game's own folder: a replacement, not the driver's (D140).</summary>
|
||||
Refused = 5,
|
||||
|
||||
/// <summary>The module did not answer for the two functions.</summary>
|
||||
NoGetter = 6,
|
||||
|
||||
/// <summary>The driver answered every read with an error.</summary>
|
||||
Error = 7,
|
||||
|
||||
/// <summary>One call took two milliseconds or more: the read was switched off until the game exited (D141).</summary>
|
||||
Slow = 8,
|
||||
|
||||
/// <summary>A call into the driver faulted: the read was switched off until the game exited.</summary>
|
||||
Faulted = 9,
|
||||
|
||||
/// <summary>A call into the driver did not return.</summary>
|
||||
Stalled = 10,
|
||||
}
|
||||
@@ -37,7 +37,7 @@ public sealed record AdvancedMetric(
|
||||
public bool IsFamily { get; init; }
|
||||
|
||||
/// <summary>True when a build with the option on reads it: every other reach is a reason it reads N/A.</summary>
|
||||
public bool IsRead => Reach is AdvancedReach.Agent or AdvancedReach.AgentElevated or AdvancedReach.Game;
|
||||
public bool IsRead => Reach is AdvancedReach.Agent or AdvancedReach.AgentElevated or AdvancedReach.Game or AdvancedReach.GameDriver;
|
||||
|
||||
/// <summary>The name of its series in <c>sensor_blobs</c> — for a family, the stem of its instances' names; null when it is not a series.</summary>
|
||||
public string? SeriesName => Scope == AdvancedScope.Series ? SeriesPrefix + Id : null;
|
||||
|
||||
@@ -182,10 +182,15 @@ public static class AdvancedMetricCatalog
|
||||
Session("sl.init.preferences", Streamline, BeforeAttach, Text, Upscaling, "The preferences the game started Streamline with"),
|
||||
Session("sl.constants.camera", Streamline, PlayerState, Text, Upscaling, "Camera position, axes and matrices"),
|
||||
|
||||
// ---- Inside the game: what the driver reports, asked for by the part inside the game itself (train C) ------
|
||||
// Not an argument of a hooked call: two read-only getters of the driver, about once a second (D132, D136).
|
||||
// What the GAME asked of Reflex - the mode, boost, the limit - is an argument of a function that is not an
|
||||
// export: reading it needs a patch at an address learned at run time, the class refused on 2026-08-09.
|
||||
Session("nvapi.reflex.mode", Nvapi, RefusedRoute, Text, Latency, "Reflex: low-latency mode, boost, the frame-rate limit"),
|
||||
Session("nvapi.reflex.sleep_status", Nvapi, GameDriver, Table, Latency, "What the driver's low-latency state is"),
|
||||
SampledFamily("nvapi.reflex.frame_report", Nvapi, GameDriver, Microseconds, Latency, "Latency per frame: simulation, render submit, present, driver, OS queue, GPU render"),
|
||||
|
||||
// ---- Inside the game: routes a spike decides ------------------------------------------------------------
|
||||
Session("nvapi.reflex.mode", Nvapi, Spike, Text, Latency, "Reflex: low-latency mode, boost, the frame-rate limit"),
|
||||
Session("nvapi.reflex.sleep_status", Nvapi, Spike, Text, Latency, "What the driver's low-latency state is"),
|
||||
SampledFamily("nvapi.reflex.frame_report", Nvapi, Spike, Microseconds, Latency, "Latency per frame: simulation, render submit, present, driver, OS queue, GPU render"),
|
||||
Session("sl.dlss.optimal_settings", Streamline, Spike, Text, Upscaling, "The render size and sharpness DLSS recommends"),
|
||||
Sampled("sl.dlss.vram_estimate", Streamline, Spike, Mebibytes, Upscaling, "DLSS's own estimate of its video memory"),
|
||||
Session("sl.dlssg.options", Streamline, Spike, Text, FrameGeneration, "DLSS frame generation: mode, frames to generate"),
|
||||
@@ -195,7 +200,9 @@ public static class AdvancedMetricCatalog
|
||||
Session("sl.dlssd.options", Streamline, Spike, Text, Upscaling, "Ray reconstruction's options"),
|
||||
Session("sl.nis.options", Streamline, Spike, Text, Upscaling, "NVIDIA Image Scaling's options"),
|
||||
Session("sl.deepdvc.options", Streamline, Spike, Text, Upscaling, "RTX Dynamic Vibrance's options"),
|
||||
Session("sl.reflex.state", Streamline, Spike, Table, Latency, "Reflex through Streamline: availability and its frame reports"),
|
||||
// A refused route (owner decision D133): the Overlay calling slReflexGetState itself breaks the thread
|
||||
// contract the vendor's header states.
|
||||
Session("sl.reflex.state", Streamline, RefusedRoute, Table, Latency, "Reflex through Streamline: availability and its frame reports"),
|
||||
Sampled("sl.pcl.markers", Streamline, Spike, Count, Latency, "PC-latency markers the game sets"),
|
||||
|
||||
// ---- Closed by a licence --------------------------------------------------------------------------------
|
||||
|
||||
@@ -57,4 +57,20 @@ public enum AdvancedReach
|
||||
/// instruction, and no hook is ever installed on a game's thread. Never read (owner decision D129).
|
||||
/// </summary>
|
||||
BeforeAttach = 13,
|
||||
|
||||
/// <summary>
|
||||
/// Read inside a game FrameLedger measures, while the session records Advanced metrics — but not from a call the
|
||||
/// game makes: the part inside the game asks the graphics driver itself, about once a second, for what the driver
|
||||
/// reports (Advanced metrics train C; owner decisions D132, D136, D138). Only where the game presents through
|
||||
/// Direct3D 12 and had already loaded the driver's library; <see cref="AdvancedDriverRead"/> says what became of
|
||||
/// it in a session.
|
||||
/// </summary>
|
||||
GameDriver = 14,
|
||||
|
||||
/// <summary>
|
||||
/// Reading it needs a route the project refused, whatever the source: a patch at an address learned at run time
|
||||
/// (what a game asks of Reflex is an argument of a function no module exports), or a call the vendor's own header
|
||||
/// forbids from a thread that is not the game's (owner decision D133). Never read.
|
||||
/// </summary>
|
||||
RefusedRoute = 15,
|
||||
}
|
||||
@@ -59,6 +59,21 @@ public sealed record AdvancedSources(
|
||||
|
||||
public AdvancedInGameCall? StreamlineShutdown { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// What became of the graphics driver's latency report (the <c>nvapi.reflex.</c> entries of reach
|
||||
/// <see cref="AdvancedReach.GameDriver"/>) in the session this describes (train C). Null where that is not a
|
||||
/// question - the machine's live state, a session not measured inside the game, a game the part inside it
|
||||
/// publishes nothing for - and in every row stored before.
|
||||
/// </summary>
|
||||
public AdvancedDriverRead? DriverLatency { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The slowest call into the driver the session saw, in microseconds; null with <see cref="DriverLatency"/> and
|
||||
/// where no call was made. It is what tells a driver that held a call from a pause of the game's thread when
|
||||
/// <see cref="DriverLatency"/> is <see cref="AdvancedDriverRead.Slow"/>.
|
||||
/// </summary>
|
||||
public int? DriverLatencySlowestUs { get; init; }
|
||||
|
||||
/// <summary>Nothing asked yet.</summary>
|
||||
public static AdvancedSources Unknown { get; } = new(AdvancedSourceStatus.Unknown, NvapiCode: null, AdvancedSourceStatus.Unknown, AdvancedSourceStatus.Unknown);
|
||||
}
|
||||
@@ -38,8 +38,20 @@ public sealed class InGameAdvancedSampler
|
||||
/// <summary>FSR's own video memory as it answered the game, in mebibytes — a point for each second the game asked.</summary>
|
||||
public const string MemorySeries = AdvancedMetric.SeriesPrefix + "ffx.memory_usage";
|
||||
|
||||
/// <summary>
|
||||
/// The stem of the seven series of the driver's latency report (train C): <c>adv.nvapi.reflex.frame_report.</c>
|
||||
/// and one of <see cref="LatencySpans"/>. Each point is the mean, in microseconds, of the frames one read summed.
|
||||
/// </summary>
|
||||
public const string LatencySeriesStem = AdvancedMetric.SeriesPrefix + "nvapi.reflex.frame_report.";
|
||||
|
||||
private const double _mebibyte = 1024.0 * 1024.0;
|
||||
|
||||
// The spans of a frame the driver reports, in the order the capture side publishes their sums.
|
||||
private static readonly string[] _latencySpans = ["simulation", "render_submit", "present", "driver", "os_queue", "gpu_render", "total"];
|
||||
|
||||
// NV_GET_SLEEP_STATUS_PARAMS's five switches, by bit: the vendor's own names, shown as they are.
|
||||
private static readonly string[] _sleepSwitches = ["bLowLatencyMode", "bFsVrr", "bCplVsyncOn", "bUseGameSleep", "bFullscreenIFlip"];
|
||||
|
||||
// What the second row of a field of view over pi says (owner decision D128).
|
||||
private const string _notRadians = "not_radians";
|
||||
|
||||
@@ -79,9 +91,15 @@ public sealed class InGameAdvancedSampler
|
||||
/// switch seen over a session, the flags of the dispatch that have a name, "none", and what a field of view
|
||||
/// that cannot be radians is said to be (D128). A flag bit nobody named is <c>bit_N</c> and is shown as it is.
|
||||
/// </summary>
|
||||
public static IReadOnlyList<string> Tokens { get; } = ["on", "off", "on_and_off", "none", _notRadians, .. _flagTokens];
|
||||
public static IReadOnlyList<string> Tokens { get; } = ["on", "off", "on_and_off", "none", _notRadians, .. _flagTokens, .. _latencySpans];
|
||||
|
||||
/// <summary>The seven spans of a frame, as the last part of a series' name; the App translates each (<c>AdvToken_*</c>).</summary>
|
||||
public static IReadOnlyList<string> LatencySpans => _latencySpans;
|
||||
|
||||
private InGameAdvanced? _last;
|
||||
private FlLatencyState _latencyState;
|
||||
private bool _latencyFrames;
|
||||
private uint _latencySlowestUs;
|
||||
private uint _memoryQueries;
|
||||
private FactKey _key;
|
||||
private uint _builtResets;
|
||||
@@ -98,6 +116,37 @@ public sealed class InGameAdvancedSampler
|
||||
public AdvancedInGameStatus Status(bool hooked) =>
|
||||
!hooked ? AdvancedInGameStatus.NotHooked : SawAnything ? AdvancedInGameStatus.Reading : AdvancedInGameStatus.NothingSeen;
|
||||
|
||||
/// <summary>
|
||||
/// What became of the driver's latency report (train C), for a session measured inside the game: null when it
|
||||
/// was not, and when the capture side said nothing about it - a game it publishes no Advanced metrics for.
|
||||
/// "Reported frames" wins over an error or a stop that came later: the series are there up to it, and the
|
||||
/// stops say themselves.
|
||||
/// </summary>
|
||||
public AdvancedDriverRead? DriverRead(bool hooked)
|
||||
{
|
||||
if (!hooked)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return _latencyState switch
|
||||
{
|
||||
FlLatencyState.NoDevice => AdvancedDriverRead.NoDirect3D12,
|
||||
FlLatencyState.NoModule => AdvancedDriverRead.NoModule,
|
||||
FlLatencyState.Refused => AdvancedDriverRead.Refused,
|
||||
FlLatencyState.NoGetter => AdvancedDriverRead.NoGetter,
|
||||
FlLatencyState.Reading => _latencyFrames ? AdvancedDriverRead.Read : AdvancedDriverRead.NothingReported,
|
||||
FlLatencyState.Error => _latencyFrames ? AdvancedDriverRead.Read : AdvancedDriverRead.Error,
|
||||
FlLatencyState.Slow => AdvancedDriverRead.Slow,
|
||||
FlLatencyState.Faulted => AdvancedDriverRead.Faulted,
|
||||
FlLatencyState.Stalled => AdvancedDriverRead.Stalled,
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>The slowest call into the driver the publications carried, in microseconds; null while none was made.</summary>
|
||||
public int? DriverSlowestUs => _latencySlowestUs == 0 ? null : (int)_latencySlowestUs;
|
||||
|
||||
/// <summary>
|
||||
/// What became of the entries read from one call hooked only for Advanced metrics (0.1.0-beta.43):
|
||||
/// <paramref name="group"/> is the bit a publication carries once the call was read, <paramref name="hookedIn"/>
|
||||
@@ -156,12 +205,17 @@ public sealed class InGameAdvancedSampler
|
||||
|
||||
_last = published;
|
||||
ref readonly FlAdvancedState s = ref published.State;
|
||||
|
||||
// The driver's latency report first, and whatever the mask says: where that read stands is published even
|
||||
// when nothing was read, and it is not one of "the game's calls".
|
||||
List<AdvancedReading>? readings = TakeLatency(published);
|
||||
if (s.ValidMask == FlAdvancedValid.None)
|
||||
{
|
||||
return null;
|
||||
return readings;
|
||||
}
|
||||
|
||||
SawAnything = true;
|
||||
// "The game's calls were read" is about the game's calls: the driver's report is not one of them.
|
||||
SawAnything |= (s.ValidMask & ~FlAdvancedValid.Latency) != FlAdvancedValid.None;
|
||||
_everValid |= s.ValidMask;
|
||||
if (s.ValidMask.HasFlag(FlAdvancedValid.SlFeatures))
|
||||
{
|
||||
@@ -179,7 +233,7 @@ public sealed class InGameAdvancedSampler
|
||||
_builtResets = s.SlResets;
|
||||
}
|
||||
|
||||
var readings = new List<AdvancedReading>(2);
|
||||
readings ??= new List<AdvancedReading>(2);
|
||||
// The pair is drained by each publication: the dispatches of the second before it. A sum that saturated its
|
||||
// word is not a mean of anything.
|
||||
if (s.ValidMask.HasFlag(FlAdvancedValid.FfxUpscale) && s.FfxFrameTimeCount != 0 && s.FfxFrameTimeSumUs != uint.MaxValue)
|
||||
@@ -197,6 +251,39 @@ public sealed class InGameAdvancedSampler
|
||||
return readings.Count == 0 ? null : readings;
|
||||
}
|
||||
|
||||
// The ten latency words of a publication (07_IPC, region 5): the state and the slowest call are kept; the frames
|
||||
// and the sums are of ONE read and become one point a span - the mean over the frames that read summed. A span
|
||||
// some summed frame did not report has no point: without a sleep mode the driver reports no driver span at all.
|
||||
private List<AdvancedReading>? TakeLatency(InGameAdvanced published)
|
||||
{
|
||||
ref readonly FlAdvancedState s = ref published.State;
|
||||
var state = (FlLatencyState)(s.LatState & FlAdvancedState.LatStateMask);
|
||||
if (state != FlLatencyState.None)
|
||||
{
|
||||
_latencyState = state;
|
||||
}
|
||||
|
||||
_latencySlowestUs = Math.Max(_latencySlowestUs, s.LatReads >> 16);
|
||||
uint frames = s.LatFrames & 0xFFFFu;
|
||||
if (!s.ValidMask.HasFlag(FlAdvancedValid.Latency) || frames == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
_latencyFrames = true;
|
||||
uint[] sums = [s.LatSimulationSumUs, s.LatSubmitSumUs, s.LatPresentSumUs, s.LatDriverSumUs, s.LatOsQueueSumUs, s.LatGpuSumUs, s.LatTotalSumUs];
|
||||
var readings = new List<AdvancedReading>(sums.Length);
|
||||
for (int span = 0; span < sums.Length; span++)
|
||||
{
|
||||
if (sums[span] != FlAdvancedState.LatSumNone)
|
||||
{
|
||||
readings.Add(new AdvancedReading(LatencySeriesStem + _latencySpans[span], sums[span] / (double)frames));
|
||||
}
|
||||
}
|
||||
|
||||
return readings;
|
||||
}
|
||||
|
||||
private static List<AdvancedFact> Build(InGameAdvanced published)
|
||||
{
|
||||
var facts = new List<AdvancedFact>(11);
|
||||
@@ -230,9 +317,44 @@ public sealed class InGameAdvancedSampler
|
||||
AddStreamlineFeatureState(published, facts);
|
||||
}
|
||||
|
||||
if (published.State.ValidMask.HasFlag(FlAdvancedValid.Latency))
|
||||
{
|
||||
AddDriverSleepStatus(published, facts);
|
||||
}
|
||||
|
||||
return facts;
|
||||
}
|
||||
|
||||
// The driver's sleep status (train C): its five switches as seen over the session, by the vendor's own names, and
|
||||
// the frame-generation multiplier it last gave. THE DRIVER'S WORDS: on the driver the probe ran against,
|
||||
// bLowLatencyMode read off for a device whose game had just switched low latency on (spike-notes §31) - so this
|
||||
// is never worded as "the game uses Reflex".
|
||||
private static void AddDriverSleepStatus(InGameAdvanced published, List<AdvancedFact> facts)
|
||||
{
|
||||
ref readonly FlAdvancedState s = ref published.State;
|
||||
uint on = (s.LatState >> FlAdvancedState.LatSleepSeenOnShift) & FlAdvancedState.LatSleepBits;
|
||||
uint off = (s.LatState >> FlAdvancedState.LatSleepSeenOffShift) & FlAdvancedState.LatSleepBits;
|
||||
if ((on | off) == 0)
|
||||
{
|
||||
return; // the report was read and the status never was
|
||||
}
|
||||
|
||||
var rows = new List<AdvancedRow>(_sleepSwitches.Length + 1);
|
||||
for (int bit = 0; bit < _sleepSwitches.Length; bit++)
|
||||
{
|
||||
// Bit 0 seen off, bit 1 seen on: the two bits AddSwitch reads.
|
||||
AddSwitch(rows, _sleepSwitches[bit], ((off >> bit) & 1u) | (((on >> bit) & 1u) << 1));
|
||||
}
|
||||
|
||||
uint multiplier = s.LatState >> FlAdvancedState.LatFgMultiplierShift;
|
||||
if (multiplier != 0)
|
||||
{
|
||||
rows.Add(new AdvancedRow("fgMultiplier", multiplier.ToString(CultureInfo.InvariantCulture)));
|
||||
}
|
||||
|
||||
facts.Add(Fact("nvapi.reflex.sleep_status", AdvancedValue.OfRows(rows)));
|
||||
}
|
||||
|
||||
// Whether Streamline says each feature is supported and loaded, and what the game did with it while the session
|
||||
// watched (0.1.0-beta.45): two facts, rows named as the versions' are. A refusal is the answer to "is it
|
||||
// supported", so the result is said by the vendor's own name whatever it is. A count that reached 15 stopped there.
|
||||
@@ -724,7 +846,8 @@ public sealed class InGameAdvancedSampler
|
||||
ulong SlFov,
|
||||
uint SlAspect,
|
||||
ulong SlFlags,
|
||||
ulong SlFeatures)
|
||||
ulong SlFeatures,
|
||||
uint DriverSleep)
|
||||
{
|
||||
public static FactKey Of(InGameAdvanced published)
|
||||
{
|
||||
@@ -765,7 +888,9 @@ public sealed class InGameAdvancedSampler
|
||||
Pair(s.SlFovMinBits, s.SlFovMaxBits),
|
||||
s.SlAspectBits,
|
||||
Pair(s.SlFlagsSeenTrue, s.SlFlagsSeenFalse),
|
||||
FeaturesHash(published));
|
||||
FeaturesHash(published),
|
||||
// The driver's sleep status as seen and its multiplier: what the one latency fact is made of.
|
||||
s.ValidMask.HasFlag(FlAdvancedValid.Latency) ? s.LatState >> FlAdvancedState.LatSleepSeenOnShift : 0u);
|
||||
}
|
||||
|
||||
// The feature slots as one number (FNV-1a over the words of the slots in use): an answer that arrives, or one
|
||||
|
||||
@@ -521,6 +521,8 @@ public sealed class SessionRecorder : ISessionRecorder
|
||||
StreamlineAllocateResources = calls.AllocateResources,
|
||||
StreamlineFreeResources = calls.FreeResources,
|
||||
StreamlineShutdown = calls.Shutdown,
|
||||
DriverLatency = calls.Driver,
|
||||
DriverLatencySlowestUs = calls.DriverSlowestUs,
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -548,7 +550,9 @@ public sealed class SessionRecorder : ISessionRecorder
|
||||
_inGame.FeatureCall(InGameAdvancedSampler.FeatureSwitched, hooks.HasFlag(FlHookFamily.SlSetFeatureLoaded)),
|
||||
_inGame.FeatureCall(InGameAdvancedSampler.FeatureAllocated, hooks.HasFlag(FlHookFamily.SlAllocateResources)),
|
||||
_inGame.FeatureCall(InGameAdvancedSampler.FeatureFreed, hooks.HasFlag(FlHookFamily.SlFreeResources)),
|
||||
_inGame.Call(FlAdvancedValid.SlShutdown, hooks.HasFlag(FlHookFamily.SlShutdown)));
|
||||
_inGame.Call(FlAdvancedValid.SlShutdown, hooks.HasFlag(FlHookFamily.SlShutdown)),
|
||||
_inGame.DriverRead(hooked: true),
|
||||
_inGame.DriverSlowestUs);
|
||||
}
|
||||
|
||||
/// <summary>The ten calls' states, compared as one value when deciding whether the session's context moved.</summary>
|
||||
@@ -563,7 +567,9 @@ public sealed class SessionRecorder : ISessionRecorder
|
||||
AdvancedInGameCall? SetFeatureLoaded,
|
||||
AdvancedInGameCall? AllocateResources,
|
||||
AdvancedInGameCall? FreeResources,
|
||||
AdvancedInGameCall? Shutdown);
|
||||
AdvancedInGameCall? Shutdown,
|
||||
AdvancedDriverRead? Driver,
|
||||
int? DriverSlowestUs);
|
||||
|
||||
/// <summary>
|
||||
/// What the row says of the entries read inside the game: read, measured inside the game with none of their
|
||||
|
||||
@@ -397,4 +397,64 @@ public sealed class AdvancedPresenterTests
|
||||
}
|
||||
|
||||
private static string Label(string id) => AdvancedLabels.Of(AdvancedMetricCatalog.Find(id)!);
|
||||
|
||||
// ---- The driver's latency report (train C): a call FrameLedger makes itself, so words of its own -------------
|
||||
|
||||
[Fact]
|
||||
public void TheDriversLatencyReportHasASentenceOfItsOwnAndARowStoredBeforeHasNone()
|
||||
{
|
||||
AdvancedSources before = AdvancedSources.Unknown with { InGame = AdvancedInGameStatus.Reading };
|
||||
string without = AdvancedPresenter.SourcesLine(before);
|
||||
|
||||
string read = AdvancedPresenter.SourcesLine(before with { DriverLatency = AdvancedDriverRead.Read, DriverLatencySlowestUs = 3 });
|
||||
read.Should().StartWith(without, "what was said before is said as before");
|
||||
read.Should().EndWith(string.Format(CultureInfo.CurrentCulture, Strings.Advanced_InGameDriverLine, Strings.AdvDriverRead_Read));
|
||||
|
||||
// Stopped for being slow says how slow: that number is what tells a driver that held a call from a pause.
|
||||
string slow = AdvancedPresenter.SourcesLine(before with { DriverLatency = AdvancedDriverRead.Slow, DriverLatencySlowestUs = 2400 });
|
||||
slow.Should().Contain(2400.ToString("N0", CultureInfo.CurrentCulture));
|
||||
slow.Should().NotContain("{0");
|
||||
|
||||
// A row that says nothing about it - stored before, or a game the capture side publishes nothing for.
|
||||
AdvancedPresenter.SourcesLine(before with { DriverLatency = AdvancedDriverRead.Unknown }).Should().Be(without);
|
||||
AdvancedPresenter.SourcesLine(before with { DriverLatency = null }).Should().Be(without);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("en")]
|
||||
[InlineData("vi")]
|
||||
[InlineData("ja")]
|
||||
public void EveryOutcomeOfTheDriversReadHasItsWordsInEveryLanguage(string culture)
|
||||
{
|
||||
CultureInfo c = CultureInfo.GetCultureInfo(culture);
|
||||
foreach (AdvancedDriverRead outcome in Enum.GetValues<AdvancedDriverRead>())
|
||||
{
|
||||
string? words = Strings.ResourceManager.GetString("AdvDriverRead_" + outcome, c);
|
||||
words.Should().NotBeNullOrEmpty(outcome.ToString());
|
||||
(words ?? string.Empty).Contains("{0", StringComparison.Ordinal).Should().Be(outcome == AdvancedDriverRead.Slow, "only the slow stop carries its microseconds");
|
||||
}
|
||||
|
||||
Strings.ResourceManager.GetString(nameof(Strings.Advanced_InGameDriverLine), c).Should().Contain("{0}");
|
||||
Strings.ResourceManager.GetString(nameof(Strings.Advanced_Status_InGameDriver), c).Should().NotBeNullOrEmpty();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheSevenSpansOfTheDriversReportAreSeriesOfOneEntryLabelledInWords()
|
||||
{
|
||||
(AdvancedMetric? metric, string label) = AdvancedPresenter.Resolve("adv.nvapi.reflex.frame_report.os_queue", []);
|
||||
|
||||
metric!.Id.Should().Be("nvapi.reflex.frame_report");
|
||||
label.Should().Be(AdvancedLabels.Member(AdvancedLabels.Of(metric), Strings.AdvToken_os_queue));
|
||||
label.Should().NotContain("os_queue", "the member is one of ours and is said in words");
|
||||
|
||||
// Seven lines of one entry: within what a chart can show, so no band.
|
||||
string[] series = [.. InGameAdvancedSampler.LatencySpans.Select(static span => InGameAdvancedSampler.LatencySeriesStem + span)];
|
||||
AdvancedPresenter.Metrics(series, []).Should().ContainSingle().Which.Id.Should().Be("nvapi.reflex.frame_report");
|
||||
series.Length.Should().BeLessThanOrEqualTo(AdvancedPresenter.MaxLines);
|
||||
|
||||
// On the Sources tab the two entries say where they are read, and it is not "when the game makes the call".
|
||||
AdvancedPresenter.Sources(now: null)
|
||||
.Where(static row => string.Equals(row.Label, AdvancedLabels.Of(AdvancedMetricCatalog.Find("nvapi.reflex.frame_report")!), StringComparison.Ordinal))
|
||||
.Should().ContainSingle().Which.Status.Should().Be(Strings.Advanced_Status_InGameDriver);
|
||||
}
|
||||
}
|
||||
@@ -233,6 +233,8 @@ public sealed class AdvancedJsonTests
|
||||
StreamlineAllocateResources = AdvancedInGameCall.Read,
|
||||
StreamlineFreeResources = AdvancedInGameCall.NotHooked,
|
||||
StreamlineShutdown = AdvancedInGameCall.NeverCalled,
|
||||
DriverLatency = AdvancedDriverRead.Slow,
|
||||
DriverLatencySlowestUs = 2400,
|
||||
};
|
||||
|
||||
string json = AdvancedJson.OfSession([], written);
|
||||
@@ -248,6 +250,8 @@ public sealed class AdvancedJsonTests
|
||||
older.StreamlineFeatureRequirements.Should().Be(AdvancedInGameCall.Read);
|
||||
older.StreamlineFeatureSupported.Should().BeNull("a row that never said is not a row that said the hook was not in");
|
||||
older.StreamlineShutdown.Should().BeNull();
|
||||
older.DriverLatency.Should().BeNull("a row stored before train C says nothing about the driver's report");
|
||||
older.DriverLatencySlowestUs.Should().BeNull();
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
||||
@@ -86,12 +86,33 @@ public sealed partial class AdvancedMetricCatalogTests
|
||||
[Fact]
|
||||
public void OnlyWhatTheAgentOrTheOverlayReadsCountsAsRead()
|
||||
{
|
||||
_all.Where(static m => m.IsRead).Should().OnlyContain(static m => m.Reach == AdvancedReach.Agent || m.Reach == AdvancedReach.AgentElevated || m.Reach == AdvancedReach.Game);
|
||||
_all.Where(static m => !m.IsRead).Should().NotContain(static m => m.Reach == AdvancedReach.Agent || m.Reach == AdvancedReach.AgentElevated || m.Reach == AdvancedReach.Game);
|
||||
_all.Where(static m => m.IsRead).Should().OnlyContain(static m => m.Reach == AdvancedReach.Agent || m.Reach == AdvancedReach.AgentElevated || m.Reach == AdvancedReach.Game || m.Reach == AdvancedReach.GameDriver);
|
||||
_all.Where(static m => !m.IsRead).Should().NotContain(static m => m.Reach == AdvancedReach.Agent || m.Reach == AdvancedReach.AgentElevated || m.Reach == AdvancedReach.Game || m.Reach == AdvancedReach.GameDriver);
|
||||
_all.Should().Contain(static m => m.IsRead);
|
||||
_all.Should().Contain(static m => !m.IsRead);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WhatThePartInsideAGameAsksTheDriverForItselfIsTwoEntriesOfNvapiAndNothingMore()
|
||||
{
|
||||
// Train C (owner decisions D132, D136, D138): the one reach that is not an argument of a hooked call. The
|
||||
// Overlay calls NVIDIA's two read-only latency getters; tools/nvapi-readonly-check.ps1 holds that those two
|
||||
// are the only NVAPI functions code loaded into a game may name. Two entries, and they stay two until an
|
||||
// owner's ruling of the same kind names another.
|
||||
string[] driver = [.. _all.Where(static m => m.Reach == AdvancedReach.GameDriver).Select(static m => m.Id)];
|
||||
driver.Should().Equal("nvapi.reflex.sleep_status", "nvapi.reflex.frame_report");
|
||||
_all.Where(static m => m.Reach == AdvancedReach.GameDriver).Should().OnlyContain(static m => m.Source == AdvancedSource.Nvapi && m.IsRead);
|
||||
_all.Where(static m => m.Reach == AdvancedReach.GameDriver).Should().OnlyContain(static m => m.Scope != AdvancedScope.MachineFact, "what a driver says of a game's frames is of a session");
|
||||
AdvancedMetricCatalog.Find("nvapi.reflex.frame_report")!.IsFamily.Should().BeTrue("seven series, one a span");
|
||||
AdvancedMetricCatalog.Find("nvapi.reflex.frame_report")!.Unit.Should().Be(AdvancedUnit.Microseconds);
|
||||
|
||||
// What the GAME asked of Reflex, and Reflex through Streamline, are not read and will not be: each needs a
|
||||
// route that was refused (a patch at a run-time address; a call from a thread the vendor forbids - D133).
|
||||
AdvancedMetricCatalog.Find("nvapi.reflex.mode")!.Reach.Should().Be(AdvancedReach.RefusedRoute);
|
||||
AdvancedMetricCatalog.Find("sl.reflex.state")!.Reach.Should().Be(AdvancedReach.RefusedRoute);
|
||||
_all.Where(static m => m.Reach == AdvancedReach.RefusedRoute).Should().OnlyContain(static m => !m.IsRead);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheElevatedReachIsLibreHardwareMonitorsAlone()
|
||||
{
|
||||
|
||||
@@ -581,4 +581,149 @@ public sealed class InGameAdvancedSamplerTests
|
||||
AdvancedJson.Storable(sampler.Facts).Should().HaveCount(sampler.Facts.Count, "what the game said may be stored");
|
||||
readings.Select(static r => AdvancedMetricCatalog.Find(r.Series[AdvancedMetric.SeriesPrefix.Length..])!.Reach).Should().OnlyContain(static reach => reach == AdvancedReach.Game);
|
||||
}
|
||||
|
||||
// ---- The driver's latency report (train C): not one of the game's calls --------------------------------------
|
||||
|
||||
private static FlAdvancedState Latency(FlLatencyState state, uint frames = 0, uint samples = 1, uint slowestUs = 3) =>
|
||||
InGameStates.Empty() with
|
||||
{
|
||||
Samples = samples,
|
||||
ValidMask = frames == 0 ? FlAdvancedValid.None : FlAdvancedValid.Latency,
|
||||
// The stand-in driver's status: low-latency mode and the game's sleep on, the other three off, x2.
|
||||
LatState = (uint)state | ((1u | 8u) << FlAdvancedState.LatSleepSeenOnShift) | ((2u | 4u | 16u) << FlAdvancedState.LatSleepSeenOffShift) | (2u << FlAdvancedState.LatFgMultiplierShift),
|
||||
LatReads = 1u | (slowestUs << 16),
|
||||
LatFrames = frames,
|
||||
LatSimulationSumUs = frames * 800,
|
||||
LatSubmitSumUs = frames * 1150,
|
||||
LatPresentSumUs = frames * 150,
|
||||
LatDriverSumUs = frames * 400,
|
||||
LatOsQueueSumUs = frames * 1200,
|
||||
LatGpuSumUs = frames * 3700,
|
||||
LatTotalSumUs = frames * 7500,
|
||||
};
|
||||
|
||||
[Fact]
|
||||
public void OneReadOfTheDriversReportIsOnePointASpanTheMeanOfTheFramesItSummed()
|
||||
{
|
||||
var sampler = new InGameAdvancedSampler();
|
||||
|
||||
IReadOnlyList<AdvancedReading> readings = sampler.Take(new InGameAdvanced(Latency(FlLatencyState.Reading, frames: 62)))!;
|
||||
|
||||
readings.Should().Equal(
|
||||
new AdvancedReading("adv.nvapi.reflex.frame_report.simulation", 800.0),
|
||||
new AdvancedReading("adv.nvapi.reflex.frame_report.render_submit", 1150.0),
|
||||
new AdvancedReading("adv.nvapi.reflex.frame_report.present", 150.0),
|
||||
new AdvancedReading("adv.nvapi.reflex.frame_report.driver", 400.0),
|
||||
new AdvancedReading("adv.nvapi.reflex.frame_report.os_queue", 1200.0),
|
||||
new AdvancedReading("adv.nvapi.reflex.frame_report.gpu_render", 3700.0),
|
||||
new AdvancedReading("adv.nvapi.reflex.frame_report.total", 7500.0));
|
||||
readings.Select(static r => r.Series).Should().OnlyContain(static name => name.StartsWith(InGameAdvancedSampler.LatencySeriesStem, StringComparison.Ordinal));
|
||||
InGameAdvancedSampler.LatencySpans.Should().HaveCount(7);
|
||||
sampler.DriverRead(hooked: true).Should().Be(AdvancedDriverRead.Read);
|
||||
sampler.DriverSlowestUs.Should().Be(3);
|
||||
|
||||
// A publication with no read since the one before carries no frames: no point, and not a zero.
|
||||
sampler.Take(new InGameAdvanced(Latency(FlLatencyState.Reading, frames: 62, samples: 2) with { LatFrames = 0 })).Should().BeNull();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ASpanTheDriverDidNotReportHasNoPointAndTheOthersDo()
|
||||
{
|
||||
var sampler = new InGameAdvancedSampler();
|
||||
|
||||
// Without a sleep mode the driver reports no driver span: the capture side publishes all ones for its sum.
|
||||
IReadOnlyList<AdvancedReading> readings = sampler.Take(new InGameAdvanced(
|
||||
Latency(FlLatencyState.Reading, frames: 10) with { LatDriverSumUs = FlAdvancedState.LatSumNone }))!;
|
||||
|
||||
readings.Should().HaveCount(6);
|
||||
readings.Should().NotContain(static r => r.Series.EndsWith(".driver", StringComparison.Ordinal));
|
||||
readings.Should().Contain(new AdvancedReading("adv.nvapi.reflex.frame_report.total", 7500.0));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheDriversReportIsNotOneOfTheGamesCalls()
|
||||
{
|
||||
var sampler = new InGameAdvancedSampler();
|
||||
|
||||
sampler.Take(new InGameAdvanced(Latency(FlLatencyState.Reading, frames: 62)));
|
||||
|
||||
// "The game's calls were read" stays false: FrameLedger made this read, the game made no call.
|
||||
sampler.SawAnything.Should().BeFalse();
|
||||
sampler.Status(hooked: true).Should().Be(AdvancedInGameStatus.NothingSeen);
|
||||
// ...and the one fact is the driver's five switches by the vendor's own names, as seen, and its multiplier.
|
||||
Rows(Fact(sampler, "nvapi.reflex.sleep_status")).Should().Equal(
|
||||
"bLowLatencyMode=on", "bFsVrr=off", "bCplVsyncOn=off", "bUseGameSleep=on", "bFullscreenIFlip=off", "fgMultiplier=2");
|
||||
sampler.Facts.Should().ContainSingle();
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(FlLatencyState.NoDevice, AdvancedDriverRead.NoDirect3D12)]
|
||||
[InlineData(FlLatencyState.NoModule, AdvancedDriverRead.NoModule)]
|
||||
[InlineData(FlLatencyState.Refused, AdvancedDriverRead.Refused)]
|
||||
[InlineData(FlLatencyState.NoGetter, AdvancedDriverRead.NoGetter)]
|
||||
[InlineData(FlLatencyState.Reading, AdvancedDriverRead.NothingReported)]
|
||||
[InlineData(FlLatencyState.Error, AdvancedDriverRead.Error)]
|
||||
[InlineData(FlLatencyState.Slow, AdvancedDriverRead.Slow)]
|
||||
[InlineData(FlLatencyState.Faulted, AdvancedDriverRead.Faulted)]
|
||||
[InlineData(FlLatencyState.Stalled, AdvancedDriverRead.Stalled)]
|
||||
public void WhereTheReadStandsIsTakenEvenFromAPublicationThatReadNothing(FlLatencyState state, AdvancedDriverRead expected)
|
||||
{
|
||||
var sampler = new InGameAdvancedSampler();
|
||||
|
||||
// No bit of the mask: nothing was read. The state is published all the same, and is why.
|
||||
sampler.Take(new InGameAdvanced(Latency(state) with { LatState = (uint)state })).Should().BeNull();
|
||||
|
||||
sampler.DriverRead(hooked: true).Should().Be(expected);
|
||||
sampler.DriverRead(hooked: false).Should().BeNull("a session not measured inside the game has no such question");
|
||||
sampler.Facts.Should().BeEmpty();
|
||||
sampler.SawAnything.Should().BeFalse();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ASessionTheCaptureSideSaidNothingAboutHasNoAnswerAndAStopAfterFramesStillSaysItStopped()
|
||||
{
|
||||
var silent = new InGameAdvancedSampler();
|
||||
silent.Take(new InGameAdvanced(InGameStates.Empty()));
|
||||
silent.DriverRead(hooked: true).Should().BeNull();
|
||||
silent.DriverSlowestUs.Should().BeNull();
|
||||
|
||||
// Frames were reported, then one call took 2,400 microseconds: the series are there, and the state is the stop.
|
||||
var stopped = new InGameAdvancedSampler();
|
||||
stopped.Take(new InGameAdvanced(Latency(FlLatencyState.Reading, frames: 62)));
|
||||
stopped.Take(new InGameAdvanced(Latency(FlLatencyState.Slow, frames: 10, samples: 2, slowestUs: 2400)));
|
||||
stopped.DriverRead(hooked: true).Should().Be(AdvancedDriverRead.Slow);
|
||||
stopped.DriverSlowestUs.Should().Be(2400);
|
||||
|
||||
// An error after frames is still "read": the series are the answer, and reading went on.
|
||||
var erred = new InGameAdvancedSampler();
|
||||
erred.Take(new InGameAdvanced(Latency(FlLatencyState.Reading, frames: 62)));
|
||||
erred.Take(new InGameAdvanced(Latency(FlLatencyState.Error, samples: 2) with { ValidMask = FlAdvancedValid.Latency }));
|
||||
erred.DriverRead(hooked: true).Should().Be(AdvancedDriverRead.Read);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheGamesCallsAndTheDriversReportAreTakenFromOnePublication()
|
||||
{
|
||||
var sampler = new InGameAdvancedSampler();
|
||||
FlAdvancedState both = InGameStates.Ffx(samples: 1) with
|
||||
{
|
||||
ValidMask = InGameStates.Ffx().ValidMask | FlAdvancedValid.Latency,
|
||||
LatState = (uint)FlLatencyState.Reading,
|
||||
LatFrames = 10,
|
||||
LatTotalSumUs = 75_000,
|
||||
LatSimulationSumUs = FlAdvancedState.LatSumNone,
|
||||
LatSubmitSumUs = FlAdvancedState.LatSumNone,
|
||||
LatPresentSumUs = FlAdvancedState.LatSumNone,
|
||||
LatDriverSumUs = FlAdvancedState.LatSumNone,
|
||||
LatOsQueueSumUs = FlAdvancedState.LatSumNone,
|
||||
LatGpuSumUs = FlAdvancedState.LatSumNone,
|
||||
};
|
||||
|
||||
IReadOnlyList<AdvancedReading> readings = sampler.Take(new InGameAdvanced(both))!;
|
||||
|
||||
readings.Should().Contain(new AdvancedReading("adv.nvapi.reflex.frame_report.total", 7500.0));
|
||||
readings.Should().Contain(static r => r.Series == InGameAdvancedSampler.FrameTimeSeries);
|
||||
sampler.SawAnything.Should().BeTrue("the FSR dispatch is one of the game's calls");
|
||||
sampler.Facts.Should().NotContain(static f => f.Id == "nvapi.reflex.sleep_status", "no switch of the sleep status was seen");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user