Compare commits
16
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
773bee1089
|
||
|
|
8c0fcb65ab | ||
|
|
2188373239 | ||
|
|
21355428d0
|
||
|
|
6379f24d91
|
||
|
|
5e96681969
|
||
|
|
94120d3308 | ||
|
|
24a87159f4 | ||
|
|
ea3a8d3ee0 | ||
|
|
c14340e4f9 | ||
|
|
6b07eb2dc8 | ||
|
|
e35b971f27 | ||
|
|
d7f056947a | ||
|
|
5807220c51 | ||
|
|
3751348d5a | ||
|
|
a6717fe3ca |
No files matched your search
@@ -41,11 +41,14 @@ concurrency:
|
||||
jobs:
|
||||
wiki:
|
||||
# A rehearsal of release.yml (workflow_dispatch) never publishes the wiki: only a run started by a pushed v* tag
|
||||
# that succeeded.
|
||||
# that succeeded - in THIS repository. A fork cannot start this repository's Release run (it runs on a tag push or by
|
||||
# hand), so the head checked out below is always the owner's; the repository check says so in the condition rather
|
||||
# than leaving it to release.yml's triggers (SonarCloud githubactions:S7631, beta.26).
|
||||
if: >-
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event.workflow_run.conclusion == 'success' &&
|
||||
github.event.workflow_run.event == 'push' &&
|
||||
github.event.workflow_run.head_repository.full_name == github.repository &&
|
||||
startsWith(github.event.workflow_run.head_branch, 'v'))
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
+5
-59
@@ -35,71 +35,17 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- **Every frame-generation state a session held, in its summary** (owner request 2026-10-19, decision D62). Under the
|
||||
figures, *Frame generation in this session* lists each state — `×2.0`, `×3.0`, `×4.0`, `×6.0`… — with its own
|
||||
Native → Displayed and its share of the time to two decimals, then the time with no frame generation and the time no
|
||||
state explains (*Not classified*: switching, loading, a multiplier that changed faster than five seconds), above a bar
|
||||
of those shares. A line above them says how frame generation was set: in the NVIDIA App (*Dynamic, up to ×6, target:
|
||||
max refresh rate*, *Fixed ×4*, from the driver profile stored with the session) or in the game. Each state is read
|
||||
over the same five-second windows as the steady state and lasts at least 10 seconds; nothing is averaged across
|
||||
states (rule 6). Stored with the session (schema 0020, `sessions.fg_mix`): a session recorded before has none, and
|
||||
its summary says so in one line. The CSV export gains a `# fg_mix:` line; the JSON carries the column. The FG×
|
||||
column's two formats are translated strings now, and the driver-profile line's automatic dynamic target reads as the
|
||||
NVIDIA App says it: *max refresh rate*.
|
||||
|
||||
### Changed
|
||||
|
||||
- **SonarCloud analyses only FrameLedger's own code** (developers only; owner request 2026-10-19, decision D67). A
|
||||
`.sonarcloud.properties` at the root keeps the vendored SDK headers, generated files, test fixtures, licence texts and
|
||||
the SQLite migrations out of the analysis and reports the native code against C++20; `docs/13_CI_CD.md` §SonarCloud
|
||||
records the triage of the 341 issues the last analysis left — the rules this project breaks by design and why, the
|
||||
false positives, and the ones the next change fixes — with the steps to mark them in SonarCloud.
|
||||
- **The long documents are split** (developers only; owner request 2026-10-19, decision D66). `CHANGELOG.md`
|
||||
keeps `[Unreleased]` and a table of the releases; each release's section now lives in its own file,
|
||||
`docs/changelog/<version>.md`, and the ledger kept before the first tag in five parts — moved verbatim: the notes
|
||||
`tools/release-notes.ps1` takes for each of the 23 releases are byte for byte what they were, and it reads the
|
||||
version's own file. `docs/HANDOFF.md` (2,844 lines, now 299) keeps what to do next, the open owner-only items and an
|
||||
index of every owner decision; the history of each phase and train, the passed owner-only items and the traps
|
||||
moved to `docs/handoff/`, and a table there resolves every section the code and the documents cite. A new gate,
|
||||
`tools/docs-split-check.ps1`, keeps each index and its files naming each other.
|
||||
- **The open questions and the measurement notes are split too** (developers only, D66). `docs/20_OPEN_QUESTIONS.md`
|
||||
(4,467 lines, now 2,008) keeps its rules, §S24 and every entry not resolved; the 30 entries §S24 marks resolved
|
||||
moved, with their reasoning and in their order, to `docs/open-questions/closed-s.md` and `closed-h.md`, and a table
|
||||
at the end of each series lists them. `docs/spike-notes.md` (2,816 lines) is now the index of its 24 sections, each
|
||||
in its own file under `docs/spike-notes/`; a new measurement gets the next number, its own file and a row. Both
|
||||
rebuild their originals byte for byte, and the same gate holds their indexes to their files.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Opening a folder in Explorer** — the logs, the data folder, the licences, a bug report's zip and the folder named
|
||||
after a failed start — starts `explorer.exe` from the Windows folder by its full path, never a program of that name
|
||||
found on the search path, and always hands it the path in quotes (three of the five places passed it bare).
|
||||
- **What SonarCloud found that was real** (developers only): the one third-party GitHub Action is pinned to its
|
||||
commit; two string reads in native code are bounded by their buffer (the guard's rules-file path handed to the Agent,
|
||||
and the driver's branch name the NVAPI bridge copies); the pipe server's accept loop states that it ends only when
|
||||
cancelled; a launch's own session names its absent stop token (`CancellationToken.None`, with the reason) where it
|
||||
wrote `default` — the same value, now said on purpose; an unused overload of
|
||||
the process launcher that hid the other is gone; the identifier `module` (a C++20 keyword in some positions) is
|
||||
renamed in the hook layer — a rename only, no code changes; and a hook-overhead probe no longer uses a compound
|
||||
assignment on a `volatile`, which C++20 deprecates. The analyzers Dependabot updates in #314 flag the first-start
|
||||
window's own answer task and one test fake's synchronous wait; both are suppressed with their reasons, so that update
|
||||
can merge.
|
||||
- **The game-side log keeps every line a stop writes.** When hooking stopped on a game's own drawing thread — the
|
||||
capture agent's safety stop takes effect within one frame there — the Overlay's last write of its log could happen
|
||||
while that thread was still listing the hooks it removed, and the last of them never reached the file
|
||||
(`overlay-*.log`, the file a bug report carries). The last write now waits, at most two seconds, for the stop to
|
||||
finish and ends with a `STOP_FLUSHED` line; a line still being written is never printed half-done. Nothing changes
|
||||
on the per-frame path. This was the native test that went red under load since beta.9 (`fl_guard`'s log case),
|
||||
now run 20 times with every processor busy.
|
||||
|
||||
## Releases
|
||||
|
||||
Newest first. Each file holds that release's section exactly as it stood here.
|
||||
|
||||
| Version | Date | Notes |
|
||||
|---|---|---|
|
||||
| `0.1.0-beta.28` | 2026-10-20 | [`docs/changelog/0.1.0-beta.28.md`](docs/changelog/0.1.0-beta.28.md) |
|
||||
| `0.1.0-beta.27` | 2026-10-20 | [`docs/changelog/0.1.0-beta.27.md`](docs/changelog/0.1.0-beta.27.md) |
|
||||
| `0.1.0-beta.26` | 2026-10-19 | [`docs/changelog/0.1.0-beta.26.md`](docs/changelog/0.1.0-beta.26.md) |
|
||||
| `0.1.0-beta.25` | 2026-10-19 | [`docs/changelog/0.1.0-beta.25.md`](docs/changelog/0.1.0-beta.25.md) |
|
||||
| `0.1.0-beta.24` | 2026-10-19 | [`docs/changelog/0.1.0-beta.24.md`](docs/changelog/0.1.0-beta.24.md) |
|
||||
| `0.1.0-beta.23` | 2026-10-14 | [`docs/changelog/0.1.0-beta.23.md`](docs/changelog/0.1.0-beta.23.md) |
|
||||
| `0.1.0-beta.22` | 2026-10-13 | [`docs/changelog/0.1.0-beta.22.md`](docs/changelog/0.1.0-beta.22.md) |
|
||||
| `0.1.0-beta.21` | 2026-10-13 | [`docs/changelog/0.1.0-beta.21.md`](docs/changelog/0.1.0-beta.21.md) |
|
||||
|
||||
@@ -76,8 +76,8 @@
|
||||
|
||||
<ItemGroup Label="Analyzers (build-time only)">
|
||||
<PackageVersion Include="Roslynator.Analyzers" Version="5.0.1" />
|
||||
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.299" />
|
||||
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="18.7.23" />
|
||||
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.307" />
|
||||
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="18.12.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Label="Testing">
|
||||
|
||||
@@ -49,6 +49,8 @@
|
||||
-->
|
||||
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
|
||||
<Compile Include="$(MSBuildThisFileDirectory)tests\Shared\HarnessOverlayLogSweep.cs" Link="Shared\HarnessOverlayLogSweep.cs" />
|
||||
<!-- When a started harness is really up (beta.27): the injection tests wait for its own "presenting" line. -->
|
||||
<Compile Include="$(MSBuildThisFileDirectory)tests\Shared\HarnessReady.cs" Link="Shared\HarnessReady.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<!--
|
||||
|
||||
+36
-8
@@ -5,7 +5,7 @@ hooking on for — and reading the graphics calls the game makes. That is why it
|
||||
resolution, the upscaler, frame generation and ray tracing apart. It is also where its limits come from. This
|
||||
page lists them in plain words; each item links to the document that has the details.
|
||||
|
||||
*Beta software: this page describes version 0.1.0-beta.23.*
|
||||
*Beta software: this page describes version 0.1.0-beta.28.*
|
||||
|
||||
## Games it will not measure
|
||||
|
||||
@@ -67,10 +67,15 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
([Metrics](docs/03_METRICS.md))
|
||||
- **The mix of frame-generation states** in a session's summary (since 0.1.0-beta.24) is read over five-second
|
||||
windows: frame generation that changes faster than that — the NVIDIA App's *Dynamic* mode can — reads partly as
|
||||
*Not classified*, and a state shorter than 10 seconds is not listed. The multiplier chosen in a game's own menu is
|
||||
not read; the measured factor is its evidence. How the NVIDIA App's *Dynamic* ceiling and *Max refresh rate* target
|
||||
are stored by the driver is read from NVIDIA's own setting names and not yet checked against the App on a real
|
||||
game. Sessions recorded before 0.1.0-beta.24 have no mix. ([Metrics](docs/03_METRICS.md))
|
||||
*Not classified*: a window in which the multiplier stepped reads between two whole multipliers and, since
|
||||
0.1.0-beta.27, is never a state of its own. A state shorter than 10 seconds is not listed. A stretch the game
|
||||
presents with almost no frame
|
||||
count of its own — shaders compiling at start, a loading screen, a menu drawn outside frame generation — reads as
|
||||
*Not classified* too. The
|
||||
multiplier chosen in a game's own menu is not read; the measured factor is its evidence. How the NVIDIA App's
|
||||
*Dynamic* ceiling and *Max refresh rate* target are stored by the driver is read from NVIDIA's own setting names,
|
||||
and has been checked against the App on one game. Sessions recorded before 0.1.0-beta.24 have no mix.
|
||||
([Metrics](docs/03_METRICS.md))
|
||||
- **Time below 30, 60 FPS and below the refresh rate** (since 0.1.0-beta.14) leaves out the small wobble of a game
|
||||
held at its limit: a frame counts as below 60 when it took 10 % longer than 1/60 s, or when the frames around it ran
|
||||
2 % slower. So a game running steadily just under the line — 59 FPS against 60 — reads partly as at it. Time below
|
||||
@@ -87,8 +92,23 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
FidelityFX libraries. **Intel XeSS is not read** (its licence forbids it), FSR 2 and upscalers built into the
|
||||
game are not identified, and Vulkan and OpenGL games read N/A. Where no hook saw DLSS but the NVIDIA driver
|
||||
reports it, the page says it is the driver's report.
|
||||
- **The quality preset** (Quality, Balanced, …) has not been reported on any game yet, and the render
|
||||
resolution is N/A where the game's own calls do not carry it (DLSS without Streamline, for one).
|
||||
- **The quality mode** (Quality, Balanced, DLAA, …) is shown only when it is known: the NVIDIA App's override
|
||||
where the NVIDIA driver reports it applied (marked *· NVIDIA App*, since 0.1.0-beta.24), or the mode the game
|
||||
passed to a call FrameLedger reads. For FSR through AMD's FidelityFX libraries (since 0.1.0-beta.25) that is the
|
||||
mode whose render size the game asked AMD's library for and then rendered at — checked on a test program, not yet
|
||||
on a real game; a game at a dynamic resolution, one that sizes its frames without asking, and a game FrameLedger
|
||||
joined after it asked show none. For DLSS it is the options a Streamline game passes, which no game has done yet.
|
||||
The mode chosen in a game's own menu is not readable for DLSS without Streamline, and is not inferred from the
|
||||
render scale. How the driver numbers DLAA in
|
||||
its report is NVIDIA's documented value, not yet seen on a real game. The render resolution is N/A where the
|
||||
game's own calls do not carry it (DLSS without Streamline, for one). Sessions recorded before 0.1.0-beta.27 kept
|
||||
the NVIDIA driver's answer from after the game had closed, which never says DLSS ran: on a game no hook names, they
|
||||
show neither the driver's report nor the NVIDIA App's mode. ([Metrics](docs/03_METRICS.md))
|
||||
- **Which DLSS ran** (since 0.1.0-beta.24) is named only from what the session showed: the model preset the NVIDIA
|
||||
driver reports (L or M: DLSS 4.5; J or K: DLSS 4), a measured multi-frame factor (×5 or ×6: DLSS 4.5; ×3 or ×4:
|
||||
DLSS 4), or a library whose major version names one (2.x, 3.x). A 310 library with no such evidence shows its
|
||||
version only. DLSS 5 is shown only as *runtime loaded*, by a library name not yet seen on a real game. Where each
|
||||
library was loaded from is read from its folder, for sessions recorded since 0.1.0-beta.24.
|
||||
- **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.
|
||||
@@ -118,7 +138,9 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
"Fullscreen". FrameLedger reports what the game asked for.
|
||||
- The mode is sampled ten times a second in a measured session and once a second in an unmeasured one; very
|
||||
short switches can be missed. A session recovered after a crash, and every session recorded before
|
||||
beta.10, read N/A. ([Display mode](docs/03_METRICS.md#display-mode--both-tiers-beta10))
|
||||
beta.10, read N/A. Some sessions recorded before 0.1.0-beta.27 of a game in exclusive full-screen show no window or
|
||||
monitor size: the game's last moments, after its window had closed, replaced them.
|
||||
([Display mode](docs/03_METRICS.md#display-mode--both-tiers-beta10))
|
||||
|
||||
## Engine version
|
||||
|
||||
@@ -183,6 +205,12 @@ you accept the prompt. Turn it on only if you trust everything that runs under y
|
||||
- **FrameLedger never starts a game as administrator.** *Start directly* does not start a game that asks for it — start
|
||||
that one from its store or its own shortcut — nor a game whose recording is off: FrameLedger starts only what it
|
||||
records. While FrameLedger itself runs as administrator, Play starts every game directly, with your standard rights.
|
||||
- **Some games will not start directly** (seen on two Steam games, 2026-10-19 and 20). Lies of P, started by *Start
|
||||
directly*, hands itself to Steam within seconds — since 0.1.0-beta.27 the game Steam then starts is recorded —, and
|
||||
Clair Obscur: Expedition 33 closes within seconds, with or without FrameLedger's hook. Each such start ends a
|
||||
measured session early, which the crash safety counts: two turn hooking off for the game. Start such a game through
|
||||
its store (Settings ▸ Games ▸ *Play button*); the notice after Play says when a Steam game may hand itself to Steam.
|
||||
([details](docs/spike-notes/23-owner-runs-2026-10-20.md))
|
||||
|
||||
## Game artwork
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ pages.
|
||||
|
||||
<!-- accuracy-block:begin -->
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-10-19.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.23`** (2026-10-14), an unsigned installer built from that tag with its
|
||||
> **pre-release is `0.1.0-beta.28`** (2026-10-20), an unsigned installer built from that tag with its
|
||||
> checksums published beside it. The source holds the desktop app
|
||||
> (library, store import, charts, settings) and the background Agent, which records a session when a
|
||||
> game in the library runs (unless you switched its recording off), injects only into games you enabled
|
||||
@@ -36,9 +36,15 @@ pages.
|
||||
> was measured. Intel XeSS is **not** read (its SDK licence
|
||||
> forbids it), and neither is an upscaler compiled into the game: those read `N/A`, or "Unknown
|
||||
> upscaler" when another vendor's hook ran in the game. Vulkan and OpenGL titles read `N/A`.
|
||||
> - **Quality preset:** not reported on any title measured. The one route this software may use — the
|
||||
> DLSS options a Streamline title passes with its per-frame call — has not been seen on a real
|
||||
> title, and AMD's per-frame call carries no preset.
|
||||
> - **Quality mode:** shown only when it is known. When the NVIDIA App overrides DLSS Super Resolution for
|
||||
> the game and the NVIDIA driver reports that the override applied in the session, the override's mode is
|
||||
> shown and marked as the NVIDIA App's. Otherwise the mode the game itself passed: the DLSS options a
|
||||
> Streamline title passes with its per-frame call (not yet seen on a real title), or, for FSR through
|
||||
> AMD's FidelityFX libraries, the mode whose render size the game asked for and then rendered at. In
|
||||
> every other case — FSR at a dynamic resolution among them — no mode is shown.
|
||||
> - **DLSS version:** the version of each DLSS library the game loaded and whether it came from the game or from
|
||||
> the NVIDIA driver; "DLSS 4" or "DLSS 4.5" only when the session shows it (the model preset the driver reports,
|
||||
> or a measured multi-frame factor); DLSS 5 only as "runtime loaded".
|
||||
> - **Render → output resolution:** measured where the vendor's own per-frame call carries the render
|
||||
> size (AMD FidelityFX dispatches, and Streamline titles whose resource tags state it); `N/A` where it
|
||||
> does not: DLSS titles that bypass Streamline, Streamline titles whose tags carry no size, and Vulkan
|
||||
@@ -168,7 +174,7 @@ Elevation is **optional — for everything.** Hooked capture is the normal path
|
||||
|
||||
## Install
|
||||
|
||||
> **The latest pre-release is `v0.1.0-beta.23` (2026-10-14); before it `v0.1.0-beta.22` (2026-10-13), `v0.1.0-beta.21` (2026-10-13), `v0.1.0-beta.20` (2026-10-12), `v0.1.0-beta.19` (2026-10-12), `v0.1.0-beta.18` (2026-10-07), `v0.1.0-beta.17` (2026-10-07), `v0.1.0-beta.16` (2026-10-06), `v0.1.0-beta.15` (2026-10-06), `v0.1.0-beta.14` (2026-10-06), `v0.1.0-beta.13` (2026-10-04), `v0.1.0-beta.12` (2026-10-04), `v0.1.0-beta.11` (2026-10-03), `v0.1.0-beta.10` (2026-09-28), `v0.1.0-beta.9` (2026-09-26), `v0.1.0-beta.8` (2026-09-25), `v0.1.0-beta.7` (2026-09-23), `v0.1.0-beta.6` (2026-09-23), `v0.1.0-beta.5` (2026-09-22), `v0.1.0-beta.4` (2026-09-21), `v0.1.0-beta.3` (2026-09-21), `v0.1.0-beta.2` (2026-09-17) and `v0.1.0-beta.1` (2026-09-16).** They are pre-releases: read the notes of the one you install — `CHANGELOG.md` links each release's own file under `docs/changelog/` — for what it measures, what it does not yet, and how to update, before installing. A source build is `docs/12_BUILD.md`.
|
||||
> **The latest pre-release is `v0.1.0-beta.28` (2026-10-20); before it `v0.1.0-beta.27` (2026-10-20), `v0.1.0-beta.26` (2026-10-19), `v0.1.0-beta.25` (2026-10-19), `v0.1.0-beta.24` (2026-10-19), `v0.1.0-beta.23` (2026-10-14), `v0.1.0-beta.22` (2026-10-13), `v0.1.0-beta.21` (2026-10-13), `v0.1.0-beta.20` (2026-10-12), `v0.1.0-beta.19` (2026-10-12), `v0.1.0-beta.18` (2026-10-07), `v0.1.0-beta.17` (2026-10-07), `v0.1.0-beta.16` (2026-10-06), `v0.1.0-beta.15` (2026-10-06), `v0.1.0-beta.14` (2026-10-06), `v0.1.0-beta.13` (2026-10-04), `v0.1.0-beta.12` (2026-10-04), `v0.1.0-beta.11` (2026-10-03), `v0.1.0-beta.10` (2026-09-28), `v0.1.0-beta.9` (2026-09-26), `v0.1.0-beta.8` (2026-09-25), `v0.1.0-beta.7` (2026-09-23), `v0.1.0-beta.6` (2026-09-23), `v0.1.0-beta.5` (2026-09-22), `v0.1.0-beta.4` (2026-09-21), `v0.1.0-beta.3` (2026-09-21), `v0.1.0-beta.2` (2026-09-17) and `v0.1.0-beta.1` (2026-09-16).** They are pre-releases: read the notes of the one you install — `CHANGELOG.md` links each release's own file under `docs/changelog/` — for what it measures, what it does not yet, and how to update, before installing. A source build is `docs/12_BUILD.md`.
|
||||
|
||||
1. Download the latest `FrameLedger.App-win-Setup.exe` from [Releases](https://github.com/poli0981/frameledger/releases). It installs into `%LOCALAPPDATA%\FrameLedger.App`; your data stays in `%LOCALAPPDATA%\FrameLedger`, and uninstalling asks before touching it.
|
||||
2. SmartScreen may warn — releases are not code-signed (free, open-source project). Verify the SHA-256 checksum published with each release, then **More info → Run anyway**.
|
||||
|
||||
+90
-5
@@ -488,10 +488,34 @@ F_app = Σ fgEvaluations (APPLICATION frames, counted at the
|
||||
> session has one. Rows: the states by rising factor, then *no frame generation*, then *not classified*. **Never an
|
||||
> average across states** (CLAUDE.md rule 6), and ×5 and ×6 are 20 % apart and never pool.
|
||||
>
|
||||
> **Amended 2026-10-19 (beta.26): a window needs application frames, and a ratio frame generation can produce.**
|
||||
> "≥ 8 samples and tokens" was built as eight presents and ONE token, and the owner's Silent Hill 2 session listed a
|
||||
> ×1336.0 state — the session's first ten seconds, the game compiling its shaders, presented with one token per window
|
||||
> (`spike-notes` §22); the DLSS line cited it. A window is now read only with ≥ 8 presents AND ≥ 8 application frames (`FgSlices.Slice.IsReadable`, both
|
||||
> active and *no frame generation*), and is active only up to **×8** (`FgWindow.GenerationCeiling`: no shipping
|
||||
> technology generates more than five frames per application frame, DLSS 4.5's ×6); every other window is *not
|
||||
> classified*. The steady state reads the same windows, so it can no longer pick such a stretch either. A session-wide
|
||||
> or live ratio that held above ×8 is refused as **`beyond_generation`** (after uniformity: a session that changed
|
||||
> state stays `non_uniform` and keeps its steady state and its mix). **A stored mix is read by today's rule**
|
||||
> (`FgMixRecord.Parse`): a row above ×8, or whose windows averaged fewer than eight application frames, joins the
|
||||
> not-classified time — so the session stored with the ×1336.0 row reads ×2.0, ×3.0, ×6.1, no frame generation and
|
||||
> 30 s not classified, and its shares still add up.
|
||||
>
|
||||
> **Amended 2026-10-20 (beta.27): a state is near a whole multiplier.** Every frame generation that ships multiplies by
|
||||
> a whole number — ×2 for FSR, XeSS and DLSS 3, up to ×4 for DLSS 4, up to ×6 for DLSS 4.5 — and its windows read near
|
||||
> one: 1.98, 3.01, 6.06. The owner's Silent Hill 2 session of 2026-10-20 under the NVIDIA App's *Dynamic* mode listed
|
||||
> a **×2.52** state for 12.8 s: windows in which the multiplier stepped between ×2 and ×3 read ×2.21–×2.70 — at 135 s,
|
||||
> 251 application frames followed by one generated frame and 270 by two — and three of them pooled into a state nobody
|
||||
> held (`spike-notes` §23). A window is now active only within **10 %** of a whole multiplier of two or more
|
||||
> (`FgWindow.IsNearWholeMultiplier`: ×1.8–×2.2, ×2.7–×3.3, … ×5.4–×6.6); a window between two is *not classified*, and
|
||||
> the steady state reads the same windows. A stored mix is read by the same rule (`FgMixRecord.Parse`): that session
|
||||
> reads ×2.0 27.30 %, ×3.0 62.41 %, no frame generation 2.93 % and 7.36 % not classified. Of the 70 sessions in the
|
||||
> owner's ledger copy it was the only stored row between two multipliers.
|
||||
>
|
||||
> **When there is a mix.** Only where the session's frame generation was named (`Named` / `ActiveUnidentified`) and the
|
||||
> session-wide count either stood or was refused as `NonUniform` / `AmbiguousBand` — a change of state is exactly what a
|
||||
> mix describes. Every other refusal (not counted, unattributed, interleaved streams, either saturation, no
|
||||
> evaluations, too short, no batches) gets none — slicing does not make a refused record set trustworthy, the steady
|
||||
> evaluations, too short, no batches, and since beta.26 a ratio beyond any frame generation) gets none — slicing does not make a refused record set trustworthy, the steady
|
||||
> state's rule — and so does a session in which no state formed.
|
||||
>
|
||||
> **Stored, never replayed.** `sessions.fg_mix` (schema 0020) holds the rows as JSON (`FgMixRecord`), written by the
|
||||
@@ -593,8 +617,30 @@ carries the three shapes.
|
||||
> or memory, CLAUDE.md rule 4) and the driver's own per-process override report in full (`ngx_driver_words`: preset,
|
||||
> mode, ratio beside the masks). Both are shown as what the driver was set to do and what it says it did — "NVIDIA
|
||||
> profile …: DLSS override (preset K, Quality)" — and neither changes a measured value, a rung of the upscaler ladder or
|
||||
> the frame-generation factor: those stay what the hooks saw. A profile override the hooks contradict is two true
|
||||
> statements about different things, and the page shows both.
|
||||
> the frame-generation factor: those stay what the hooks saw. ~~A profile override the hooks contradict is two true
|
||||
> statements about different things, and the page shows both.~~ *(Struck 2026-10-19 for the quality mode only — the
|
||||
> amendment below; render size, ratio and the frame-generation factor are unchanged.)*
|
||||
>
|
||||
> **Amended 2026-10-19 (owner decision D63): the override is the standard for the quality MODE — when the driver
|
||||
> confirms it applied.** The owner, shown the note above: an NVIDIA App override is what the game ran at, so it is the
|
||||
> mode a session states. `Application.Recording.QualityResolver`, read at display time from what every session already
|
||||
> stores (`ngx_driver_words` since P2, `driver_profile` since beta.8 — so a session recorded before reads alike): when
|
||||
> DLSS super resolution ran (a hook named it, or the driver reports the feature created and evaluated) and the driver's
|
||||
> per-process report says the override applied (`ENABLED` with `PERF_MODE`, `SR_DLAA_MODE` or `SCALING_RATIO`), the mode
|
||||
> is the profile's `NGX_DLSS_SR_MODE` (documented: 0 Performance, 1 Balanced, 2 Quality, 4 DLAA, 5 Ultra Performance,
|
||||
> 6 a custom ratio with `NGX_DLSS_SR_OVERRIDE_SCALING_RATIO`), checked against the report's `performanceMode`; DLAA from
|
||||
> its bit. **The report is in NGX's own numbering, not the profile's** — measured on the owner's ledger: Silent Hill 2
|
||||
> (2026-10-13) under the App's *Ultra Performance* (profile 5) was reported as **3**, NGX's Ultra Performance, where the
|
||||
> profile's 3 is "the game's own" (Expedition 33's Quality was 2 in both). When the two disagree, or the report alone
|
||||
> carries a value that does not settle, the session reads as overridden with no mode — never the game's own value,
|
||||
> which the override replaced. Otherwise the mode the game passed to a hooked call (the Streamline byte); otherwise
|
||||
> none. Every surface says it the same way (`Formats.UpscalerOf`): *DLSS (driver-reported) Quality · NVIDIA App*,
|
||||
> *DLSS · NVIDIA App override*, *DLSS Quality*. The live card names what the report settles by itself
|
||||
> (`upscalerQualityOverride`, `07_IPC`). Nothing infers a mode from the render scale (`HANDOFF` §7a). Silent Hill 2's
|
||||
> own session reads no mode: its word lacks `CREATED | EVALUATE`, so no super resolution ran that the driver saw.
|
||||
> *(Corrected 2026-10-20: it lacked them because the word stored had been read after the game closed — §The
|
||||
> driver-reported rung. A session recorded from beta.27 keeps them; one recorded before, on a title no hook names, never
|
||||
> reads the override's mode.)*
|
||||
|
||||
From the upscaler hooks we get, per frame:
|
||||
|
||||
@@ -615,6 +661,29 @@ From the upscaler hooks we get, per frame:
|
||||
> `eOff` and anything past `eCount` never reach a row). The ffx-api dispatch carries no quality and XeSS has no hook,
|
||||
> so there is nothing of theirs to name. A value the table does not know is shown as stored. It names the MEASURED
|
||||
> byte only — a label derived from the render/output ratio is `HANDOFF` §7a's owner decision, still not taken.
|
||||
> *(Corrected 2026-10-19, beta.25: the ffx-api dispatch still carries no quality, and FSR's mode now comes from the
|
||||
> vendor's own query — the next note. XeSS still has no hook.)*
|
||||
|
||||
> **A second producer since beta.25 (2026-10-19, owner decision D65): FSR's mode, from the vendor's own query.**
|
||||
> `FfxApiUpscaleQualityMode` is an input to `ffxQuery`, which a title calls before it sizes its targets — "what
|
||||
> render size (`…GETRENDERRESOLUTIONFROMQUALITYMODE`) or ratio (`…GETUPSCALERATIOFROMQUALITYMODE`) does this mode
|
||||
> give at this display size?" — never to the per-frame dispatch, which carries the size alone. The Overlay hooks
|
||||
> `ffxQuery` on the four modules it hooks `ffxDispatch` on (`17_HOOK_ENGINE` §Hook inventory), keeps each answer the
|
||||
> vendor returned (one slot per mode), and an UPSCALE dispatch whose `renderSize` (and `upscaleSize`, where the title
|
||||
> states it) fits exactly ONE kept answer — a size answer exactly, a ratio answer within one pixel of
|
||||
> `display / ratio`, the vendor truncating and an engine perhaps rounding — publishes `0x10 + mode`: 16 Native AA ·
|
||||
> 17 Quality · 18 Balanced · 19 Performance · 20 Ultra Performance (offset so FSR's Native AA, 0, can never be read
|
||||
> as Streamline's `eOff`). No fit, two fits, or no query seen → `0xFF`. **A session, its segments and the live card
|
||||
> read one rule (`Domain.Metrics.QualityByte`)**: the most common told byte, and for FSR none when any FSR record
|
||||
> was rendered at a size no FSR-named record has. A dynamic resolution still matches an answer at the top of its
|
||||
> range, so the plain modal would name a mode the session mostly did not render at; `legal/ACCURACY.md` promises
|
||||
> none ("FSR at a dynamic resolution among them — no mode is shown"). A "not told" record at a named size — a
|
||||
> present that drained a frame-generation PREPARE alone, a frame before the title asked — is not that evidence. A
|
||||
> title that sizes its targets without asking, or asked before the Overlay was loaded, reads none: the honest
|
||||
> answer, not a gap. `Domain.Metrics.UpscalerNames` decodes the byte for the `fsr`, `fsr3` and `fsr4` tokens.
|
||||
> Measured on the hook harness with the vendor stub answering as the SDK documents (`fl_guard` "FSR's quality
|
||||
> mode", by size through the SDK 2.x loader and by ratio through the 1.1.x monolith); a real title is owner-only
|
||||
> item 21 (Lies of P at Quality, then Performance).
|
||||
- Resolution changes mid-session (user changed settings, or dynamic resolution scaling) produce **segments**: the session stores a segment list `(startFrame, renderW/H, outputW/H, upscaler, quality)`. Aggregates report the dominant segment plus a "settings changed during session" flag — averaging across a settings change is the classic way benchmark numbers become meaningless.
|
||||
|
||||
> **Two segmentation axes exist, they compose in ONE order, and neither document said so until
|
||||
@@ -657,7 +726,9 @@ Tier 2 has none of this: `upscaler = unknown`, ratio `N/A`.
|
||||
>
|
||||
> **What it may claim: the vendor and the feature, attributed to the driver.** What it may NOT claim,
|
||||
> each one measured: a quality (`performanceMode` / `renderPreset` are populated only under an
|
||||
> NVIDIA-app override and are then the OVERRIDE's values), a ratio or render size (`scalingRatio` is
|
||||
> NVIDIA-app override and are then the OVERRIDE's values — *which is why, since 2026-10-19 (D63), the
|
||||
> override's mode IS the session's mode where the report says it applied: §Upscaling's amendment above*),
|
||||
> a ratio or render size (`scalingRatio` is
|
||||
> 0 even under the override), a frame-generation multiplier (`FG_MODE` / `FG_MULTI_FRAME` stay clear
|
||||
> and `frameGenerationCount` is 0 at ×4 — it is the override target). **Corrected the same day, on the
|
||||
> loop's own readings:** the FG word DOES follow DLSS-G once the feature exists — `CREATED | EVALUATE`
|
||||
@@ -682,6 +753,16 @@ Tier 2 has none of this: `upscaler = unknown`, ratio `N/A`.
|
||||
> same word through `SessionProgress.upscalerDriverReported` (`07_IPC`). Segments carry no driver word: the driver's
|
||||
> bookkeeping is per process, not per settings change. **Nothing native changed and no NGX hook was added**: the
|
||||
> licence bar in `20_OPEN_QUESTIONS` stands.
|
||||
>
|
||||
> **Corrected 2026-10-20 (beta.27): every stored word had lost the rung.** The loop asked the driver once more after its
|
||||
> last drain — on a session that ended because the game closed, after the game had gone — and that answer, the last,
|
||||
> was the state (`NgxDriverState`: "the last ANSWERED reading is the state"). The driver still answers for the pid,
|
||||
> with `CREATED | EVALUATE` cleared: Expedition 33 read `0x8067F` while it ran (2026-09-06) and its stored sessions
|
||||
> `0x8007F`, the same word without the two bits. Of the 14 sessions in the owner's ledger copy in which the driver
|
||||
> answered, none kept them — so no stored session reads *DLSS (driver-reported)*, and none on an NGX-direct title under
|
||||
> an NVIDIA App override reads its mode (D63). Since beta.27 the driver is not asked once the game has gone, and the
|
||||
> two bits stand once a reading carried them: a game releasing its features on its way out no longer unsays them, and
|
||||
> every other bit is still the last reading's. Sessions recorded before keep what they stored (`spike-notes` §23).
|
||||
|
||||
**The render scale over time (beta.14, D49).** The session summary draws `100 × √(render pixels / output pixels)` — the
|
||||
per-axis scale, `100 / upscale_ratio` — as steps over the session: from the `render_res` blob where the resolution
|
||||
@@ -811,7 +892,11 @@ and how much of the time". Schema 0016 (`06_DATA_MODEL`), shared-memory region 4
|
||||
excludes a pause to within one tick at each edge, as the frame series' gap does. A mode's **share** is its milliseconds
|
||||
over the observed time (every mode but *No window*). `display_changes` counts samples whose mode differs from the one
|
||||
before, no-window samples skipped. The sizes — `display_window_*` (client area), `display_buffer_*` (back buffer),
|
||||
`display_monitor_*` and `display_monitor_hz` — are the ones seen in the mode that lasted longest; `display_source` is the
|
||||
`display_monitor_*` and `display_monitor_hz` — are the ones seen in the mode that lasted longest *(corrected 2026-10-20,
|
||||
beta.27: the last ones a sample of that mode SAW — a game leaving exclusive fullscreen closes its window while its swap
|
||||
chain's last word is under 2 s old, and those last samples, exclusive with no window, had replaced every size: two Lies
|
||||
of P and three Dark Souls III sessions stored none. A mode no sample of which saw its window keeps the back buffer
|
||||
alone)*; `display_source` is the
|
||||
strongest witness any sample had (`swapchain` > `opengl` > `window`). `sessions.swap_effect`, a column since 0001 with no
|
||||
writer, is written from region 4.
|
||||
|
||||
|
||||
+6
-1
@@ -160,7 +160,12 @@ which makes the notification more important than it was, not less.
|
||||
> now remembers the newest such process per executable and starts its session when the running one ends, if that one
|
||||
> ended on its own (not cancelled with the host), the process is the same (pid and start time) and it is then the
|
||||
> executable's ONLY process — a helper of a game still running has the game beside it and stays turned away, as before
|
||||
> (`CaptureOrchestratorTests`: the restart recorded, the helper not, a process that left meanwhile not). **Behaviour change:** a game whose folder moved (not its drive letter) records nothing until
|
||||
> (`CaptureOrchestratorTests`: the restart recorded, the helper not, a process that left meanwhile not). *(beta.27,
|
||||
> 2026-10-20:)* a launch never said it had ended on its own, so after **Play** ▸ *Start directly* nothing turned away
|
||||
> while it ran was ever recorded — Lies of P hands itself to Steam within seconds, and twice on 2026-10-19 the game
|
||||
> Steam started went unrecorded (`spike-notes` §23). A launch now says so, with the processes it and its election
|
||||
> recorded: the one it started appears to the watcher after the launch began and is turned away like any other, and a
|
||||
> launch the user stopped does not start again on it. **Behaviour change:** a game whose folder moved (not its drive letter) records nothing until
|
||||
> *Change executable* points its entry at the new file. `ProcessTree` reads ppid chains with the one rule that defeats pid
|
||||
> reuse: a child that started before its parent is not its child. `DescendantElection` picks the newest-started
|
||||
> descendant whose image is tracked — a launcher's consent does not extend to what it spawns, so the elected image
|
||||
|
||||
+37
-5
@@ -18,7 +18,7 @@ Derived in the Agent from the record stream; the mapping is in `03_METRICS`. Sum
|
||||
| Graphics API + swapchain format, buffer count, swap effect, flags | `CreateSwapChain*` / present hooks |
|
||||
| Present mode (flip / blt / independent flip) | swapchain desc + `presentFlags` + `syncInterval` |
|
||||
| HDR output | `SetColorSpace1` |
|
||||
| Upscaler identity + quality preset | NGX / Streamline / FFX / XeSS create+evaluate calls — **or, when no hook saw one, the NVIDIA driver's per-process NGX word, out of process and attributed (`03_METRICS` §Upscaling, the driver-reported rung, 2026-09-06): identity only, never the preset** |
|
||||
| Upscaler identity + quality preset | NGX / Streamline / FFX / XeSS create+evaluate calls — **or, when no hook saw one, the NVIDIA driver's per-process NGX word, out of process and attributed (`03_METRICS` §Upscaling, the driver-reported rung, 2026-09-06): identity only, never the game's preset** — since beta.24 (D63) an NVIDIA App override's mode, where that report says the override applied, is the session's quality mode, marked as the App's (`QualityResolver`) — and since beta.25 (D65) FSR's mode where the title asked FidelityFX's `ffxQuery` for the size it then dispatched, none at a dynamic resolution (`03_METRICS` §Upscaling) |
|
||||
| Render resolution vs output resolution (incl. mid-session changes) | upscaler parameter reads + `ResizeBuffers` |
|
||||
| Frame Generation mode + factor | NGX/SL/FFX FG feature evaluation, then cadence — **Tier 1 only**. ~~then (Tier 2 only) PresentMon `FrameType`~~ retired (§S31 row P2), and Tier 2 no longer produces frames to run cadence over either |
|
||||
| Ray Tracing active | AS builds + `DispatchRays` (both, to catch inline RayQuery) |
|
||||
@@ -440,10 +440,42 @@ detection (`DetectionWrite`, `games.exe_machine` / `exe_file_version` / `exe_pro
|
||||
"FSR 2.2" number: the DLL's version is the SDK's, and no table of that mapping has been measured.
|
||||
|
||||
**Shipped is not loaded.** `library_versions` is what the game folder holds. What the process loaded is
|
||||
`sessions.runtime_modules` (Tier 1), and the two differ exactly when something else supplied the DLL — the NVIDIA
|
||||
App's DLSS override loads the driver's `nvngx_dlss.dll` from the driver store under the same name. The session
|
||||
summary prints the loaded list and names such a difference ("the game ships 3.7.10.0: another copy was loaded");
|
||||
it does not claim who loaded it.
|
||||
`sessions.runtime_modules` (Tier 1), and the two differ exactly when something else supplied the DLL. ~~— the NVIDIA
|
||||
App's DLSS override loads the driver's `nvngx_dlss.dll` from the driver store under the same name.~~ *(Struck
|
||||
2026-10-19: unmeasured, and the one measurement says otherwise — the owner's Silent Hill 2 session ran ×6 frame
|
||||
generation through the NVIDIA App's override and no module with a census name was loaded. Since beta.24 every module
|
||||
under `%ProgramData%\NVIDIA\NGX` is recorded whatever its name, with its folder class — §DLSS generation below —, and
|
||||
owner-only item 20(c) records what the override loads.)* *(Measured 2026-10-19, `spike-notes` §22: under the
|
||||
override, Silent Hill 2 loaded `160_E658700.bin` 310.9.16.0 and `1B0_E658703.dll` 2.14.16.0 from the NGX folder —
|
||||
names no census lists; which feature each serves is not established.)* The session summary prints the loaded list and names such a
|
||||
difference ("the game ships 3.7.10.0: another copy was loaded"); since beta.24 the DLSS line says where each DLSS
|
||||
library was loaded from (the game, the graphics driver, Windows) — by folder, never who put it there.
|
||||
|
||||
## DLSS generation — evidence-bound (beta.24, owner decision D64)
|
||||
|
||||
**What a session can say about which DLSS ran, and nothing more.** `Domain.Detection.DlssGeneration` names a
|
||||
generation only from something the session observed, strongest first; `App.Services.DlssText` prints it with what it
|
||||
rests on, every DLSS library's version and folder class (`sessions.runtime_module_sources`, schema 0021 — the class,
|
||||
never the path), and the super-resolution preset the driver reports applied:
|
||||
|
||||
| Evidence (strongest first) | Label | Where it comes from |
|
||||
|---|---|---|
|
||||
| Super-resolution render preset **L or M** that the NVIDIA driver reports applied, in a session where super resolution ran | DLSS 4.5 (2nd-gen transformer) | `ngx_driver_words` — the SR word's `PRESET` bit and `renderPreset`; presets L/M arrived with DLL 310.5.0 (NVIDIA's DLSS 4.5 release, driver 591.74) |
|
||||
| A DLSS Frame Generation state measured at **×5 or more** | DLSS 4.5 (Dynamic / 6× multi-frame generation) | `fg_mix` / `fg_factor` with `fg_mode = dlssg` |
|
||||
| Preset **J or K** reported applied | DLSS 4 (transformer) | as above |
|
||||
| A DLSS Frame Generation state at **×3 or ×4** | DLSS 4 (multi-frame generation) | as above |
|
||||
| `nvngx_dlss.dll` **2.x** | DLSS 2 | `runtime_modules` |
|
||||
| `nvngx_dlss.dll` **3.x**, or `nvngx_dlssg.dll` **1.x–3.x** | DLSS 3 | `runtime_modules` |
|
||||
| A **310.x** library alone, a CNN preset (A–F), ×2 | *no label* — the versions are shown | DLSS 4 and 4.5 ship the same major number; the preset is what names the model |
|
||||
| `nvngx_dlssnr.dll` loaded | "DLSS 5 runtime loaded" — never a generation of these features | the module name is community-sourced until owner-only item 20(d) sees it load |
|
||||
|
||||
Never a default preset inferred from a version: what a DLL "would" run by default is the game's and the driver's to
|
||||
decide. A preset the driver applied to a super resolution it never saw created and evaluated names the model of
|
||||
nothing and is not used (the owner's Silent Hill 2 session: preset L applied, no SR feature created — its label is
|
||||
the ×6.0 state's). **Sources:** NVAPI's `NV_NGX_DLSS_OVERRIDE_GET_STATE_PARAMS_V1` (the vendored
|
||||
`src/native/third_party/nvapi/nvapi.h`); presets L/M with DLL 310.5.0 — PCGH's DLSS 4.5 test and NVIDIA's driver
|
||||
591.74 release notes; DLSS 4.5's Dynamic MFG and 6× — NVIDIA's announcement (driver 595, RTX 50); DLSS 5 — NVIDIA's
|
||||
GTC 2026 announcement and its 2026-09-03 launch; `nvngx_dlssnr.dll` — community reports only.
|
||||
|
||||
## Anti-cheat pre-scan (static)
|
||||
|
||||
|
||||
+20
-4
@@ -235,7 +235,8 @@ CREATE TABLE sessions (
|
||||
|
||||
-- upscaling / FG (measured at tier 1)
|
||||
upscaler TEXT, -- none|dlss|fsr2|fsr3|fsr4|xess|nis|unknown, and fsr since 2026-09-04 (FL_UPSCALER_FSR_UNVERSIONED; added 2026-10-04)
|
||||
upscaler_quality TEXT,
|
||||
upscaler_quality TEXT, -- the hooked byte, invariant: dlss 1-6 (sl::DLSSMode); fsr/fsr3 16-20 =
|
||||
-- 0x10 + FfxApiUpscaleQualityMode since beta.25 (D65); NULL when none told
|
||||
upscaler_sharpness INTEGER, -- percent; NULL when the API reports none
|
||||
render_w INTEGER, render_h INTEGER, -- dominant segment
|
||||
output_w INTEGER, output_h INTEGER,
|
||||
@@ -251,7 +252,8 @@ CREATE TABLE sessions (
|
||||
fg_source TEXT, -- api|cadence|manual (`etw` removed 2026-08-28: no producer, no tier)
|
||||
fg_factor REAL,
|
||||
-- schema 0003 (2026-09-14): why fg_factor is NULL while fg_mode names a technology — FgRefusalKind as
|
||||
-- Vocabulary.FgRefusal spells it (not_counted, no_evaluations, non_uniform, dxgi_saturated, …). NULL when a
|
||||
-- Vocabulary.FgRefusal spells it (not_counted, no_evaluations, non_uniform, dxgi_saturated, …; beyond_generation
|
||||
-- since beta.26: a ratio above FgWindow.GenerationCeiling that held throughout). NULL when a
|
||||
-- factor stands or the writer predates the column. A REASON for the UI, never an input to fg_mode or a number.
|
||||
fg_refusal TEXT,
|
||||
-- FlWriterState.runtimeCensus, raw (FlRuntimeCensus bits). Which vendor runtime modules
|
||||
@@ -315,6 +317,9 @@ CREATE TABLE sessions (
|
||||
power_limit_pct REAL, thermal_limit_pct REAL, -- shares of the ticks that carried reasons: NVIDIA (L3) only
|
||||
app_frames_per_joule REAL, -- application FPS / average GPU board power; never displayed frames (rule 6)
|
||||
|
||||
-- schema 0021 (2026-10-19, beta.24, D64): each loaded runtime module's folder class — 05_DETECTION §DLSS generation
|
||||
runtime_module_sources TEXT, -- {"nvngx_dlss.dll":"graphics_driver", …}: game | graphics_driver | windows; never a path
|
||||
|
||||
-- schema 0020 (2026-10-19, beta.24, D62): every frame-generation state the session held — 03_METRICS §The mix
|
||||
fg_mix TEXT, -- {"Rows":[{"Kind":"generated","Factor":4.0,"NativeFps":…,"DisplayedFps":…,
|
||||
-- "Seconds":…,"Share":…,"Windows":…}, …]}: states by rising factor, then
|
||||
@@ -332,7 +337,7 @@ CREATE TABLE sessions (
|
||||
display_nowindow_ms INTEGER, -- no window could be read
|
||||
display_changes INTEGER, -- mode changes between samples
|
||||
display_source TEXT, -- swapchain | opengl | window: the strongest witness any sample had
|
||||
display_window_w INTEGER, display_window_h INTEGER, -- client area, in the mode that lasted longest
|
||||
display_window_w INTEGER, display_window_h INTEGER, -- client area, in the mode that lasted longest (the last seen, beta.27)
|
||||
display_buffer_w INTEGER, display_buffer_h INTEGER, -- the swap chain's back buffer, same mode
|
||||
display_monitor_w INTEGER, display_monitor_h INTEGER, display_monitor_hz INTEGER
|
||||
);
|
||||
@@ -684,9 +689,20 @@ Sequential embedded SQL (`Migrations/0001_init.sql`, `0002_*.sql`, …), applied
|
||||
> frame generation was named and whose count stood or was refused only as `non_uniform` / `ambiguous_band`; NULL
|
||||
> otherwise. A session before it has none and is **never rebuilt** from its `frame_blobs` (one Generated bit per frame,
|
||||
> the DXGI-counted presents lost). The `.partial` needs no change: a recovered session is aggregated from its records
|
||||
> like any other. `LatestVersion` is 20; `LedgerDatabaseTests.ScriptTwentyAddsTheFgMixColumnAndAnEarlierSessionHasNone`,
|
||||
> like any other. **Read by today's rule since beta.26:** `FgMixRecord.Parse` folds a stored state no window of the build
|
||||
> would form (above ×8, or under eight application frames a window) into the not-classified time — beta.24 and beta.25
|
||||
> stored one (`spike-notes` §22). `LatestVersion` is 20; `LedgerDatabaseTests.ScriptTwentyAddsTheFgMixColumnAndAnEarlierSessionHasNone`,
|
||||
> `SqliteSessionRepositoryTests.ASessionRoundTripsColumnForColumn`. **A beta.23 cannot open a ledger beta.24 migrated.**
|
||||
|
||||
> **`0021_runtime_module_sources.sql` (beta.24, 2026-10-19, owner decision D64) — where each loaded module lived.** One
|
||||
> TEXT column, ADD COLUMN only: `runtime_module_sources`, `{file: class}` beside `runtime_modules` — `game`,
|
||||
> `graphics_driver` (Windows' driver store or `%ProgramData%\NVIDIA`) or `windows`, from the path the module snapshot
|
||||
> read (`Application.Capture.RuntimeModuleSources`). The class is stored; **the path never is** (Privacy Policy 2.12).
|
||||
> Since the same release the snapshot also records every module under `%ProgramData%\NVIDIA\NGX` whatever its name.
|
||||
> Written by the recorder's aggregation (`SessionAggregator.ApplyWitnesses`); NULL before, and on a session recovered
|
||||
> from its crash file (which carries no module list). `LatestVersion` is 21;
|
||||
> `LedgerDatabaseTests.ScriptTwentyOneAddsTheModuleSourcesColumnAndAnEarlierSessionHasNone`, the repository round trip.
|
||||
|
||||
> **Every open used to migrate, and one that should not have did — 2026-09-16.** The Agent's `--console sessions`,
|
||||
> a verb that prints, was run against the owner's ledger while the file on disk was at schema 2 and applied 0003 and
|
||||
> 0004 to it. `LedgerDatabase.OpenReadOnlyAsync` exists since that day: an existing file, `PRAGMA query_only`, no
|
||||
|
||||
+1
-1
@@ -404,7 +404,7 @@ Unchanged in spirit from v1, bumped to `v2` for the new message set.
|
||||
| `SweepRetention` | UI→A | **no payload** — a trigger, like `UpdateRules`: the Agent applies `06_DATA_MODEL` §Retention to every game with the `retention.raw_sessions_per_game` it reads itself → `SweepRetentionAck { keep, games, sessions }` (`keep` 0 = unlimited, and then nothing was swept). *(Built 2026-09-15, P4 PR-7, for Tools ▸ Database maintenance: `Application.Recording.RetentionSweep` over `ISessionRepository.SweepRetentionAllAsync`, composed into `AgentCommandHandler` under `--serve`. The client names no number because the rows are the Agent's (§Writer ownership). Additive: an older Agent answers `Error UnknownType`, which the dialog reads as "restart the Agent". Carries no safety fact.)* |
|
||||
| `SessionStarted` | A→UI | `{ sessionGuid, gameId, gameName, pid, tier, startedAt, hold? }` — **published once per session**: at the attach (tier 1, `startedAt` the attach), or — **since 2026-09-23** — at the first tick of a session held unhooked (tier 2, `startedAt` the session's start, `pid` 0 when the loop never opened the process, as a hooking-off hold never does). ~~a session that never attaches has no `SessionStarted`, only its `SessionCompleted` (tier 2)~~ — that was the beta.5 wire, and every hooking-off, refused or unreadable game read "Nothing is being captured." for as long as it ran. **`hold` (optional, tier 2 only)** is why nothing is measured: `{ reason, guardReason?, family?, signal?, hookingTurnedOff }` — the loop's `SessionEndReason` and, when the guard said anything but allow, its reason, family and signal: the same words the row's `capture_notes` will carry, so the live card and the summary read one sentence (`Formats.Tier2HoldReason` / `Tier2Reason`). The refusal's own event (`CaptureRefused` and the rest, below) goes out with this start rather than when the game exits, and is not repeated at the end |
|
||||
| `SessionHeld` | A→UI | **Added 2026-09-23.** 1 Hz while a client listens, for a session held unhooked only: `{ sessionGuid, elapsedS, gpuTempC?, cpuTempC?, gpuLoadPct?, cpuLoadPct?, gameVramDedicatedMb?, gameRamPrivateMb? }` — how long it has run and the machine's sensors (and since beta.12 the game process's own memory, read from outside it — optional, an older client ignores them). **Never `SessionProgress`**: its `presents5s`, `presentedQualifier` and `fgMode` are required, and zeros there would put measured-looking numbers on the wire for a session that measures nothing (rule 6 has nothing to show and shows nothing) |
|
||||
| `SessionProgress` | A→UI | 1 Hz: `{ sessionGuid, elapsedS, presents5s, presentedFps5s?, presentedQualifier, nativeFps5s?, displayedFps5s?, fgFactor?, fgMode, upscaler?, upscalerQuality?, upscalerDriverReported?, renderW/H?, outputW/H?, rtActive?, gpuTempC?, cpuTempC?, cpuLoadPct?, vramProcMb?, latencyUs?, fgRefusal?, fgRuntimeCensus?, gameVramDedicatedMb?, gameRamPrivateMb? }` (the last two added 2026-10-03, beta.12, optional: the game process's dedicated GPU memory and private working set, MiB, from the newest telemetry tick; `vramProcMb` stays reserved for the in-process figure and has no producer) — a 5 s rolling window over the ring through the SAME Domain calculators the row uses (`SessionProgressCalculator`, D13). **`upscalerDriverReported` added 2026-09-21, optional:** `dlss` when the NVIDIA driver reports an NGX super-resolution feature created and evaluated in the target (`03_METRICS` §The driver-reported rung), so the live card says `DLSS (driver-reported)` where no hook can name the upscaler; identity only. **`cpuLoadPct` added 2026-09-21, optional** (CPU time busy over the last telemetry tick, 0–100; `cpuTempC` has a producer from the same date, present only when the Agent is elevated with PawnIO). **Two fields added 2026-09-14, both optional (an older client ignores them, §C):** `fgRefusal` is the row's `fg_refusal` (schema 0003) — present when `fgMode` names a technology and `fgFactor` is absent, so the live card can say "DLSS-G active — factor not counted" rather than N/A; `fgRuntimeCensus` is the raw census so the `fg_runtime_loaded` chip can name the module. **Rule 6 at the wire (2026-09-13):** `nativeFps5s` / `displayedFps5s` / `fgFactor` are present only when frame generation was measured in the window; otherwise `presentedFps5s` stands alone with `presentedQualifier` (`census_not_run` · `no_fg_runtime` · `fg_runtime_loaded` · `none_withheld`, the row's `presented_qualifier` from the same function). Every unmeasured field is absent, never 0. Suppressed when no client is connected |
|
||||
| `SessionProgress` | A→UI | 1 Hz: `{ sessionGuid, elapsedS, presents5s, presentedFps5s?, presentedQualifier, nativeFps5s?, displayedFps5s?, fgFactor?, fgMode, upscaler?, upscalerQuality?, upscalerDriverReported?, renderW/H?, outputW/H?, rtActive?, gpuTempC?, cpuTempC?, cpuLoadPct?, vramProcMb?, latencyUs?, fgRefusal?, fgRuntimeCensus?, gameVramDedicatedMb?, gameRamPrivateMb? }` (the last two added 2026-10-03, beta.12, optional: the game process's dedicated GPU memory and private working set, MiB, from the newest telemetry tick; `vramProcMb` stays reserved for the in-process figure and has no producer) — a 5 s rolling window over the ring through the SAME Domain calculators the row uses (`SessionProgressCalculator`, D13). **`upscalerQualityOverride` added 2026-10-19 (beta.24, D63), optional:** the mode an NVIDIA App override set when the driver reports it applied in the target and DLSS super resolution ran there — `performance`, `balanced`, `quality`, `ultra_performance`, `ultra_quality`, `dlaa`, or `override` when the driver's report alone does not settle the mode (the profile is the stored session's); absent otherwise. **`upscalerDriverReported` added 2026-09-21, optional:** `dlss` when the NVIDIA driver reports an NGX super-resolution feature created and evaluated in the target (`03_METRICS` §The driver-reported rung), so the live card says `DLSS (driver-reported)` where no hook can name the upscaler; identity only. **`cpuLoadPct` added 2026-09-21, optional** (CPU time busy over the last telemetry tick, 0–100; `cpuTempC` has a producer from the same date, present only when the Agent is elevated with PawnIO). **Two fields added 2026-09-14, both optional (an older client ignores them, §C):** `fgRefusal` is the row's `fg_refusal` (schema 0003) — present when `fgMode` names a technology and `fgFactor` is absent, so the live card can say "DLSS-G active — factor not counted" rather than N/A; `fgRuntimeCensus` is the raw census so the `fg_runtime_loaded` chip can name the module. **Rule 6 at the wire (2026-09-13):** `nativeFps5s` / `displayedFps5s` / `fgFactor` are present only when frame generation was measured in the window; otherwise `presentedFps5s` stands alone with `presentedQualifier` (`census_not_run` · `no_fg_runtime` · `fg_runtime_loaded` · `none_withheld`, the row's `presented_qualifier` from the same function). Every unmeasured field is absent, never 0. Suppressed when no client is connected |
|
||||
| `SessionCompleted` | A→UI | `{ sessionGuid, sessionId?, exitStatus, tier, finalize, reason, gameId?, gameName? }` — UI loads the full row from SQLite; `sessionId` is null and `finalize` is `discarded` when the row was not stored (under the minimum length), or `game_removed` when its entry was removed with its sessions while it ran (2026-09-23), or **`faulted` when the session's task threw before it could finalize** (2026-09-23: it follows the `CaptureError SessionFaulted`, with `exitStatus` `interrupted` and `reason` `SessionFaulted`, so the live card and the tray let go of a session that no longer runs; the `.partial` stays for recovery); `exitStatus` is the row's vocabulary (`normal` · `crashed` · `unhooked_safety` · `degraded`); `reason` is the loop's `SessionEndReason`. **`gameId` / `gameName` added 2026-09-23, optional:** the entry the session was stored under — the finalizer's owner when it re-keyed a session whose entry was removed, else the one it started under — so the notice names the session that completed, not whatever the live card last showed |
|
||||
| `CaptureRefused` | A→UI | `{ gameId, gameName, reason, family?, signal?, hookingTurnedOff, guardReason? }` — **`guardReason` (beta.13, optional)** is the guard's own reason ~~when it named a family~~ **whenever it refused (beta.18; beside a family only until then)**: `BlockedService` / `BlockedDriver` is a finding on the PC, not in the game, and the notice says so (§S23-3), and a refusal no family names is said in the guard's words (`Formats.GuardSentence`) — it printed the end's name, "reason RefusedByGuard"; `reason` stays the session's end reason — **guard fired**; `hookingTurnedOff` (2026-09-22) is true when the finding turned the game's hooking off (`19_SAFETY` §What a finding does to the game); UI shows the plain-language explanation — ~~and the Tier-2 offer~~; there is no alternative measurement to offer, only the option to record the session unmeasured (`08_UI` §Safety events). *(Built: for `RefusedByGuard`, `RefusedPreviouslyBlocked`, `RefusedKillSwitch`, `PreScanCouldNotVerify` and, since 2026-09-21 (beta.4), `TargetUnreadable` — a protected process the Agent could not open (added 2026-10-04) — `PreScanCouldNotVerify` with no family, because "could not verify" is neither a hit nor a pass; `family`/`signal` are the verdict's. A game merely not enabled or not consented raises nothing: that is an ordinary Tier-2 row, not a refusal to explain.)* |
|
||||
| `CaptureDegraded` | A→UI | `{ sessionGuid, from: 1, to: 2, reason }` — Tier 1 → Tier 2 mid-flight, or overlay self-disabled. **Under a two-rung ladder this means measurement STOPPED**, not that it continued at lower fidelity, and the notice must say so. *(Since beta.18 it says the end in words, `Formats.EndReasonText`; it printed `reason` raw — "The hook stopped (WriterSelfDisabled); the session continues without measuring" — and a stop ends the session, it does not continue it.)* *(Built: `SupervisionLost`, `WriterSelfDisabled`, `WriterStoppedBlocklisted`, `WriterNeverInstalledHooks`, `SupervisionFaulted`, `KillSwitchEngaged` — `RecordedSessionEvents.Classify` is the table.)* |
|
||||
|
||||
+48
-1
@@ -240,7 +240,7 @@ All screens are `Page`s registered with the navigation page provider and navigat
|
||||
|
||||
### Dashboard
|
||||
- Agent status `ui:CardControl` (state, capability badges as `InfoBadge`: telemetry source, Vulkan layer, ~~ETW fallback~~, PawnIO/CPU-temp, elevation — Repair button on error).
|
||||
- **Live capture card** (visible during capture): game name, **tier badge**, elapsed, live `FpsReadout` (5 s rolling), **measured** `renderW×H → outputW×H` with upscaler + quality, RT-active dot, CPU/GPU temp, ~~per-process VRAM~~ the game's own VRAM and RAM (beta.12: read from outside the game, so a held session has them too), sparkline (last 120 s) fed by `SessionProgress`. Tier 1 shows measured settings — this is the payoff of hooking and should read as facts, not guesses.
|
||||
- **Live capture cards** (one per running session since beta.28, two to a row): game name, **tier badge**, elapsed, live `FpsReadout` (5 s rolling), **measured** `renderW×H → outputW×H` with upscaler + quality, RT-active dot, CPU/GPU temp, ~~per-process VRAM~~ the game's own VRAM and RAM (beta.12: read from outside the game, so a held session has them too), sparkline (last 120 s) fed by `SessionProgress`. Tier 1 shows measured settings — this is the payoff of hooking and should read as facts, not guesses.
|
||||
- Recent sessions list (last 10 across games) → click opens session summary.
|
||||
- Totals strip: games tracked, total playtime, sessions this week (`ui:Card` row).
|
||||
|
||||
@@ -270,6 +270,18 @@ All screens are `Page`s registered with the navigation page provider and navigat
|
||||
> open is on it at once; the completion notice names the session that completed (`SessionCompleted.gameName`)
|
||||
> and a `faulted` completion is no notice (the strip's `CaptureError` already said it). Until this date the
|
||||
> Agent announced only hooked sessions: every other game read "Nothing is being captured." while it ran.
|
||||
>
|
||||
> **beta.28: one card per running session** (the owner, 2026-10-20: "Thêm cơ chế hiển thị UI/UX Dashboard khi chạy >=2
|
||||
> game trong cùng 1 thời điểm"). The Agent records one session per executable, so two games run as two sessions, and
|
||||
> until beta.28 the second showed only as *Running sessions: 2* — the one card went to a hooked session and stayed with
|
||||
> it. `DashboardViewModel.LiveCards` keeps a `LiveCaptureViewModel` per session, each fed only its own session's events
|
||||
> (a card is made by its session's first event or seed and is one session's for life); hooked sessions come first, each
|
||||
> kind in the order it started, and a card that changes place is moved, never rebuilt. The header counts the games from
|
||||
> two on (*2 games recording*, `Dashboard_Live_Count_Format`) and the cards stand two to a row (`LiveColumns`); with none
|
||||
> running, one card says *Nothing is being captured.* Each card is the card it was — name, tier badge, elapsed, the
|
||||
> readout or why nothing is measured, the measured settings, the temperatures (the machine's, so alike on every card) and
|
||||
> the game's own memory. Tests: `DashboardViewModelTests` (two games, a third, each ending), `LiveCaptureViewModelTests`,
|
||||
> and the page in `PagesLoadTests`' surfaces with a hooked and a held session, in both themes and through a switch.
|
||||
|
||||
### Games (grid → detail)
|
||||
- `GridView`-style panel of cover cards (`ui:CardAction`): name, platform badge, engine badge, total playtime, last played, mini trend sparkline (avg Native FPS last 10 sessions). Sort/filter/`ui:AutoSuggestBox` search.
|
||||
@@ -557,10 +569,45 @@ All screens are `Page`s registered with the navigation page provider and navigat
|
||||
> mode): recorded from the first frame, never as administrator, refused for a recording-off entry. A viewer's (D52) Play is
|
||||
> off and its composition holds no `ShellStarter`. Tests: `StoreLaunchesTests`, `StoreRecordsTests`, `GamePlayerTests`,
|
||||
> `ViewerModeTests`.
|
||||
>
|
||||
> **beta.27: a Steam game may hand itself to Steam.** Started by the agent — *Start directly*, or every press while the
|
||||
> App runs as administrator — a game Steam's records name may leave within seconds and have Steam start it again (Lies
|
||||
> of P, 2026-10-19; `spike-notes` §23), and since beta.27 the game Steam starts is recorded. The notice says so for such
|
||||
> a game (`Play_Started_Steam_Format`, `Play_Elevated_Steam_Format`; `PlayResult.SteamGame` from the same store records
|
||||
> the store mode reads), and the *Start directly* tooltip and Settings ▸ Games ▸ Play button say it for every Steam
|
||||
> game, the latter adding that a few will not start outside Steam at all. The owner offered two ways (2026-10-20: a note
|
||||
> in the UI, or a fixed rule that Steam's games always go through Steam) and left the choice open; the note was taken
|
||||
> because the rule would cost too much: three of the five Steam games started directly on 2026-10-20 ran and were
|
||||
> measured from their first frame, and a Vulkan game is measured only when FrameLedger starts it (Everhex Demo).
|
||||
|
||||
### Session summary (secondary `FluentWindow`, also the post-session toast target)
|
||||
Stat cards (Avg uses `FpsReadout`, Median, 1% Low, 0.1% Low, Min/Max, σ, stutter %, duration, **Display** — beta.10: the mode shown longest with its share and the window's size, both tiers; **VRAM (this game)** and **RAM (this game)** — beta.12: the median with the peak beneath, both tiers), **Statistics per series** (beta.12: every stored series' mean / median / minimum / peak), TriState chips, API/PresentMode/upscaler line, **the display line** (beta.10: every mode's share, the changes, the window on its monitor at its refresh rate, the back buffer and swap effect, and what the facts rested on — "the swap chain said whether it was exclusive" or "from the window alone: exclusive fullscreen cannot be told from borderless"; absent for a session recorded before), crash `InfoBar` (Severity=Error) when `crashed`, frametime chart, sensor strip, tags/notes editor, Export buttons.
|
||||
|
||||
> **beta.24 (D64): the DLSS line.** Under the header's library line, the summary says which DLSS ran (`DlssText.Line`): a
|
||||
> generation only where the session shows one, with what it rests on — *DLSS 4.5 (preset L)*, *DLSS 4.5 (a ×6.0
|
||||
> frame-generation state)*, *DLSS 3 (library 3.7.10)* — else *DLSS*; then each DLSS library with its version and where
|
||||
> it was loaded from (*Super Resolution 310.5.0, from the graphics driver, preset L (2nd-gen transformer model)*), then
|
||||
> *DLSS 5 runtime loaded* when it was. The game page's *Last session measured* repeats the label; the CSV export gains
|
||||
> `# dlss:`. `DlssTextTests`.
|
||||
|
||||
> **beta.27: one window per session, and no DLSS line that says only *DLSS*.** Opening a session whose summary window is
|
||||
> open — from a Sessions tab, a notification, the game page — brings that window forward, restored if minimised, rather
|
||||
> than opening a second (`SessionSummaryOpener`; the owner had two windows of one Silent Hill 2 session, 2026-10-20). The
|
||||
> DLSS line is not shown where it would say only *DLSS*: the header names the upscaler, and the NVIDIA App's override
|
||||
> loads its libraries under names no census lists, which the *Loaded:* line prints (The Witcher 3, 2026-10-20).
|
||||
> `PagesLoadTests.OpeningAnOpenSessionAgainBringsItsOneWindowForward`, `DlssTextTests`.
|
||||
|
||||
> **beta.24 (D63): the quality mode, on every surface alike.** The summary's header line, a Sessions-tab row, the game
|
||||
> page's *Last session measured* and the live card name the upscaler through one entry point (`Formats.UpscalerOf`):
|
||||
> the NVIDIA App's override where the driver reports it applied — *DLSS (driver-reported) Quality · NVIDIA App*, or
|
||||
> *DLSS · NVIDIA App override* when its mode is not settled —, else the mode the game passed (*DLSS Quality*), else the
|
||||
> name alone. Mode names come from the resources (`Nv_Mode_*`). Chart segments stay the hooks' (a segment carries no
|
||||
> driver report). The driver line reads the report's mode in NGX's numbering (it read it through the profile's table
|
||||
> until beta.24). CSV export: `# quality_mode:` (`quality (nvidia_app)`, `stored 9 (game)`, `N/A`).
|
||||
>
|
||||
> **beta.25 (D65): FSR's mode reads the same way** — *FSR 3 Quality*, *FSR Native AA* (`Fsr_Mode_NativeAa`), and
|
||||
> `native_aa (game)` in the export — wherever the session's byte names one (`03_METRICS` §Upscaling).
|
||||
|
||||
> **beta.24 (D62): the frame-generation mix.** Under the stat cards, **Frame generation in this session** — shown when
|
||||
> the session stored a mix of two rows or more (`sessions.fg_mix`, `03_METRICS` §The mix): a line saying how frame
|
||||
> generation was set (the NVIDIA App's Frame Generation Mode from the stored driver profile — *Set in the NVIDIA App:
|
||||
|
||||
+18
-1
@@ -208,7 +208,9 @@ FrameLedger uses the **`poli0981/.github` ops repo** where its templates fit, an
|
||||
writes a footer naming the tag. The same assembly is `build.ps1`'s `wiki-check` gate (`12_BUILD` §Local quality gate,
|
||||
13d), so a dead link is red on the pull request, never on the published wiki.
|
||||
- **When:** `workflow_run` on `Release`, completed — the job runs only when that run succeeded and was started by a
|
||||
pushed `v*` tag, so a `workflow_dispatch` rehearsal of `release.yml` never publishes. It checks out the run's
|
||||
pushed `v*` tag in this repository (`head_repository` is checked since beta.26: a fork cannot start the Release run,
|
||||
and the condition now says so — SonarCloud `githubactions:S7631`), so a `workflow_dispatch` rehearsal of
|
||||
`release.yml` never publishes. It checks out the run's
|
||||
`head_sha` (a `workflow_run` job runs `main`'s copy of this file) and links at `head_branch`, the tag. By hand:
|
||||
`gh workflow run wiki.yml -f ref=main -f publish=false` builds, checks and uploads the pages as an artifact; with
|
||||
`publish=true` it publishes them.
|
||||
@@ -276,6 +278,21 @@ the comment below; the rest are fixed in the same train (beta.24 PR-2).
|
||||
checked is shorter than `MAX_PATH`, so it is terminated.
|
||||
- `fl-baseline-probe/main.cpp:55` — a literal (a developer probe, not shipped).
|
||||
|
||||
**The six left open after the trains (2026-10-19, beta.26)** — the analysis of `main` at `e35b971` (0.1.0-beta.25),
|
||||
after the owner's marking: 366 issues resolved (284 fixed — the exclusions and beta.24 PR-2 —, 49 accepted, 33 false
|
||||
positives) and six open, all in the new-code period, which is why its quality gate read C for reliability and security.
|
||||
Five were written after the analysis of `372389c` the table above was built from.
|
||||
|
||||
| Rule | Issues | Verdict | Comment for the UI |
|
||||
|---|---|---|---|
|
||||
| `csharpsquid:S3869` `DangerousGetHandle` | 1 | **Accept** — the row above | as above |
|
||||
| `csharpsquid:S1244` floating-point equality | 4 | **False positive** | Exact on purpose. `ColorMath.Hsv` compares `max` with `r` and `g` — `Math.Max` returned one of them, the same double; `MarkdownView`'s `next == _wheelTarget` is true only when `next` was assigned `_wheelTarget` (the snap that ends the easing); `SensorsChart.Line`'s `scale == 1.0` compares a parameter with its own default literal to skip a copy. |
|
||||
| `githubactions:S7631` untrusted code from a fork | 1 | **False positive**, and hardened in beta.26 | `wiki.yml` checks out `workflow_run.head_sha` only after a successful Release run started by a pushed `v*` tag, which a fork cannot start; since beta.26 it also requires `workflow_run.head_repository` to be this repository. |
|
||||
|
||||
**Marked by the owner the same day** (2026-10-19, 14:27–14:29 UTC), each as the table says: the four `S1244` and
|
||||
`S7631` as false positives, `S3869` accepted. `main`'s next analysis (`6b07eb2`) has no open issue and its quality gate
|
||||
passes.
|
||||
|
||||
**The owner's steps** after the next analysis of `main`: for each rule above, open
|
||||
`https://sonarcloud.io/project/issues?id=poli0981_frameledger&resolved=false&rules=<rule>`, select all, *Bulk change*,
|
||||
choose *Accept* or *False positive* and paste the comment. Optionally, *Administration ▸ General Settings ▸ Analysis
|
||||
|
||||
@@ -125,6 +125,21 @@ own work item on the STA thread and puts back — and with the keys a parameter,
|
||||
`AnotherHookHarnessRunningBesideTheSuiteDoesNotMakeTheTargetAmbiguous` runs a second harness beside the capture (red
|
||||
against the shared name: `TargetAmbiguous`). A suite that attaches by pid (`ShmDrainIntegrationTests`, the native
|
||||
`fl_guard_test`) is not exposed and keeps the staged name.
|
||||
- **Test readiness: an injection test waits for the harness to say it presents** (beta.27). The suites that start
|
||||
hook-harness and then inject into it or look for it — `ShmDrainIntegrationTests`, `CaptureHostEndToEndTests`,
|
||||
`AgentEndToEndTests`, `PartialRecoveryEndToEndTests` — slept 800 ms after starting it, a guess at when it presents.
|
||||
They now wait, bounded at 30 s, for the line the harness prints and flushes right before its present loop
|
||||
(`tests/Shared/HarnessReady.cs`, compiled in by `FrameLedger.DrainFixtures.targets`), and the pause case — which read
|
||||
the writer's status as INIT once under a full gate on 2026-10-19 — waits for the writer's READY
|
||||
(`WaitUntilInitFinishedAsync`) before it pauses.
|
||||
- **The guard reads the test host too** (beta.27). The guard's scan set is the target and its ancestors up to a platform
|
||||
launcher, so for an injection test it includes the test host that started the harness, `dotnet test` and the shell
|
||||
above them. Under a full gate the test host is still starting its other test classes, and a module it releases
|
||||
between the guard's list and the module's name refuses as `ModuleScanFailed` — measured 2026-10-20, once in the gate
|
||||
and once in twelve runs of `FrameLedger.Infrastructure.Tests` with coverage, never in a run of the class alone;
|
||||
`ProcessUnreadable` (2026-10-19, twice) is the same race met at the list. `ShmDrainIntegrationTests.InjectAsync` asks
|
||||
again, four times at most, on those two reasons only. The end-to-end suites inject through the Agent or the capture
|
||||
host, which records such a session as Tier 2; they have the same exposure and have not shown it.
|
||||
- Guard integration: harness loads a **dummy DLL named like an anti-cheat module** → injection refused pre-launch; loaded late → safety unhook. (A renamed harmless DLL, not real anti-cheat software.)
|
||||
|
||||
## Hook overhead measurement (NFR-1, per release)
|
||||
|
||||
@@ -123,7 +123,8 @@ Every hook must be listed here with a purpose. Anything not on this list is not
|
||||
> calls — and the FidelityFX row below is the ninth ✅.~~** *(Corrected 2026-10-04: as of 2026-09-06 it installs up
|
||||
> to SIXTEEN — the nine `FL_HOOK_INVENTORY` rows (four Streamline including `slSetTagForFrame`, four `ffxDispatch`,
|
||||
> `ffxFsr3ContextDispatchUpscale`), the three DXGI slots, the two `ID3D12GraphicsCommandList4` methods,
|
||||
> `wglSwapBuffers` and `LoadLibraryExW`; four hooks landed without this banner moving.)* The counts differed until 2026-09-03, because a
|
||||
> `wglSwapBuffers` and `LoadLibraryExW`; four hooks landed without this banner moving.)* *(And since beta.25,
|
||||
> 2026-10-19: up to TWENTY — four `ffxQuery` rows join them, on the same four AMD modules, D65.)* The counts differed until 2026-09-03, because a
|
||||
> row is a *capability* and a detour is a *patch*, and the FG-count row rode on the
|
||||
> evaluate detour; it has its own now, `sl.interposer.dll!slGetNewFrameToken`. The AMD row
|
||||
> is the opposite shape — **one row-family, four modules, four patches from one
|
||||
@@ -196,7 +197,8 @@ Every hook must be listed here with a purpose. Anything not on this list is not
|
||||
| ✅ Streamline: `slEvaluateFeature` · ⏳ `slInit`, `slSetFeatureLoaded`, `slSetConstants`, `slGetFeatureRequirements` | Feature set actually active when the game goes through SL rather than NGX directly (`kFeatureDLSS`, `DLSS_G`, `DLSS_RR`, `Reflex`, `NIS`). **Built 2026-08-09**, identity only: one MinHook detour on `sl.interposer.dll!slEvaluateFeature`, resolved **module-scoped** and installed lazily by the watchdog. Sets `FL_MEASURED_UPSCALER` + `FL_HOOK_UPSCALER_IDENTITY`; decodes `kFeatureDLSS`/`kFeatureNIS` and reports `FL_UPSCALER_UNKNOWN` for anything else. **Never `FL_UPSCALER_NONE`** — a Streamline-only writer cannot see FFX, XeSS or NGX-direct, and `NONE` is the only one of the three states that may be aggregated as a negative |
|
||||
| ✅ Streamline: `slSetTag` — **and, since 2026-09-05, every tag's TYPE** (`slTagCensus`; a HUD-less / UI tag marks the present `FL_FG_DLSS_G`, rule 4: the same argument) | The **global** resource tags, where a title states the size of the buffer it is upscaling *from*: `kBufferTypeScalingInputColor`'s extent → `renderW/H` — **or, since 2026-09-05, the size the tagged `sl::Resource` declares when the extent is zero** (`TagSize` in `fl_sl_inputs.h`, shared by all three tag routes; GUID-checked; a Resource declaring no size is still the honest unknown). **Built 2026-08-15** (`FL_HOOK_UPSCALER_PARAMS`), and it is an ALTERNATIVE to the local tags in `slEvaluateFeature`'s `inputs`, not a layer over them — `sl_core_api.h:258` says global and local tags "do NOT interact", so a title using one yields nothing from the other and both are read. Published only on a frame where an evaluation was also seen, because a tag is viewport state that outlives any one frame. This row was MISSING from this table while the hook shipped, which is the gap the banner above now names |
|
||||
| ✅ Streamline: `slSetTagForFrame` — **and every tag's TYPE, as above** | The same global tags through **Streamline 2.8's frame-based entry point**, which deprecates `slSetTag`: `(const FrameToken&, const ViewportHandle&, const ResourceTag*, uint32_t, CommandBuffer*)` — the token first, then exactly `slSetTag`'s list, handed to the same tag walk. **Built 2026-09-04** (`FL_HOOK_UPSCALER_PARAMS`, its own trampoline; the family is now **published when whole** — once every tag export the loaded interposer has is patched — because publishing on the first row entitled records the second was not yet producing, 38 of 41 on the fixture: the ffx leaves' #110 defect again, fixed the same way). Measured need: Dying Light: The Beast (SL 2.8.0) published `Dlss` identity on every batch and the params bit on none across three captures, because a 2.8 title that tags per frame never calls the deprecated export. The token is not read; the frame count stays with `slGetNewFrameToken`. The installer picks this detour by SYMBOL (`kSymbolSlSetTagForFrame`, bound to the row by `static_assert`), not by family, since the two rows share a family bit and differ in signature |
|
||||
| ✅ **FidelityFX ffx-api: `ffxDispatch` on the FOUR modules a game calls** — `amd_fidelityfx_dx12.dll` (SDK 1.1.x monolith), `amd_fidelityfx_upscaler_dx12.dll`, `amd_fidelityfx_framegeneration_dx12.dll`, **and `amd_fidelityfx_loader_dx12.dll`** (added the evening of 2026-09-04: three loader-shipping titles at FSR produced zero dispatches at any leaf export, so the loader is where their calls arrive) · ⏳ FSR 3.0 host route `ffx_fsr3_x64.dll!ffxFsr3ContextDispatchUpscale` / `ffxFsr3DispatchFrameGeneration` · ~~`ffxFsr2ContextCreate`~~ · ~~`ffxCreateContext`~~ | **Built 2026-09-04** (`HANDOFF` item 7c). One observer behind three trampolines reads the DESCRIPTOR the title passed — head type first, body only after the type matched a constant from the vendored MIT headers (`third_party/fidelityfx/`, tag v2.3.0): **UPSCALE** → identity (`FSR3` from the monolith, `FSR_UNVERSIONED` from the 2.x upscaler DLL, which hosts FSR 3.1 and FSR 4 behind one type) + `renderSize` → `renderW/H` (quality and sharpness `0xFF`: the dispatch carries neither) + one COUNT; **PREPARE / PREPARE_V2** → `frameID` counted on a *new* index only — this vendor's `slGetNewFrameToken`, the `fgEvaluations` producer once a title has ever prepared, with the UPSCALE count as the fallback for a title that never does; **FRAMEGENERATION** → `fgMode = FSR_FG` on that present. Rule 4: the argument of the API we hooked, never `context`, `pNext`, a command list or a resource. **Why all four:** a UE5 title ships the two leaves with no loader and calls their exports; a loader-shipping title calls the loader's export and the signed loader reaches its providers through an object, not the leaves' exports (measured: Dying Light: The Beast, KCD2, Wukong). The morning's "never the loader" rested on the export tables alone and was reversed by the run. What guards against a loader that DID re-enter a leaf's export is the K = 1 control with all four hooked and the consumer's `frames/upscale-drained`, both of which read 2× in that case. `ffxCreateContext` is deliberately NOT a row — nothing it carries fills a field the dispatch does not, and its honest family would collide with `slEvaluateFeature`'s under the installer's equality binding. The family is compound (`IDENTITY \| PARAMS \| FG_EVALUATIONS`), pinned by `static_assert`s that also bind the leaf table to the rows both ways and refuse the loader as a row. Streamline keeps precedence for the count once it has ever issued a token, so every §S31-validated title is byte-identical. Second count: the consumer prints `frames/upscale-drained`, the AMD `tokens/batch`. **FSR 3.0 — BUILT 2026-09-05 as a fifth AMD target:** `ffx_fsr3_x64.dll!ffxFsr3ContextDispatchUpscale` (Cyberpunk's copy; named export, its own descriptor, vendored from tag **`fsr3-v3.0.4`** — the tag whose twelve `ffxFsr3*` declarations match the shipped module, not the `v1.1.4` first named). Rule 4: the detour reads `renderSize` of the descriptor the title passed and nothing else — never the context, a resource or the command list; the offset is pinned to a literal (1256) so a re-vendoring that moved it fails to compile. Same family and publish point as the four rows (`PublishFfxFamilyIfWhole` waits for a loaded host too), keyed by module in the installer; identity `FSR3` as a fact. `ffxFsr3DispatchFrameGeneration` is deliberately not a row (§H11 carries the reversal condition); the `ffx_fsr3upscaler_x64.dll` leaf is the pre-committed alternative if the facade reads silent (row B2) — never both, or `frames/upscale-drained` reads 2.00 |
|
||||
| ✅ **FidelityFX ffx-api: `ffxDispatch` on the FOUR modules a game calls** — `amd_fidelityfx_dx12.dll` (SDK 1.1.x monolith), `amd_fidelityfx_upscaler_dx12.dll`, `amd_fidelityfx_framegeneration_dx12.dll`, **and `amd_fidelityfx_loader_dx12.dll`** (added the evening of 2026-09-04: three loader-shipping titles at FSR produced zero dispatches at any leaf export, so the loader is where their calls arrive) · ⏳ FSR 3.0 host route `ffx_fsr3_x64.dll!ffxFsr3ContextDispatchUpscale` / `ffxFsr3DispatchFrameGeneration` · ~~`ffxFsr2ContextCreate`~~ · ~~`ffxCreateContext`~~ | **Built 2026-09-04** (`HANDOFF` item 7c). One observer behind three trampolines reads the DESCRIPTOR the title passed — head type first, body only after the type matched a constant from the vendored MIT headers (`third_party/fidelityfx/`, tag v2.3.0): **UPSCALE** → identity (`FSR3` from the monolith, `FSR_UNVERSIONED` from the 2.x upscaler DLL, which hosts FSR 3.1 and FSR 4 behind one type) + `renderSize` → `renderW/H` (quality and sharpness `0xFF`: the dispatch carries neither — *since beta.25 the quality byte is the mode the `ffxQuery` row below names for the dispatched size, `0xFF` when none does*) + one COUNT; **PREPARE / PREPARE_V2** → `frameID` counted on a *new* index only — this vendor's `slGetNewFrameToken`, the `fgEvaluations` producer once a title has ever prepared, with the UPSCALE count as the fallback for a title that never does; **FRAMEGENERATION** → `fgMode = FSR_FG` on that present. Rule 4: the argument of the API we hooked, never `context`, `pNext`, a command list or a resource. **Why all four:** a UE5 title ships the two leaves with no loader and calls their exports; a loader-shipping title calls the loader's export and the signed loader reaches its providers through an object, not the leaves' exports (measured: Dying Light: The Beast, KCD2, Wukong). The morning's "never the loader" rested on the export tables alone and was reversed by the run. What guards against a loader that DID re-enter a leaf's export is the K = 1 control with all four hooked and the consumer's `frames/upscale-drained`, both of which read 2× in that case. `ffxCreateContext` is deliberately NOT a row — nothing it carries fills a field the dispatch does not, and its honest family would collide with `slEvaluateFeature`'s under the installer's equality binding. The family is compound (`IDENTITY \| PARAMS \| FG_EVALUATIONS`), pinned by `static_assert`s that also bind the leaf table to the rows both ways and refuse the loader as a row. Streamline keeps precedence for the count once it has ever issued a token, so every §S31-validated title is byte-identical. Second count: the consumer prints `frames/upscale-drained`, the AMD `tokens/batch`. **FSR 3.0 — BUILT 2026-09-05 as a fifth AMD target:** `ffx_fsr3_x64.dll!ffxFsr3ContextDispatchUpscale` (Cyberpunk's copy; named export, its own descriptor, vendored from tag **`fsr3-v3.0.4`** — the tag whose twelve `ffxFsr3*` declarations match the shipped module, not the `v1.1.4` first named). Rule 4: the detour reads `renderSize` of the descriptor the title passed and nothing else — never the context, a resource or the command list; the offset is pinned to a literal (1256) so a re-vendoring that moved it fails to compile. Same family and publish point as the four rows (`PublishFfxFamilyIfWhole` waits for a loaded host too), keyed by module in the installer; identity `FSR3` as a fact. `ffxFsr3DispatchFrameGeneration` is deliberately not a row (§H11 carries the reversal condition); the `ffx_fsr3upscaler_x64.dll` leaf is the pre-committed alternative if the facade reads silent (row B2) — never both, or `frames/upscale-drained` reads 2.00 |
|
||||
| ✅ **FidelityFX ffx-api: `ffxQuery` on the same four modules** (beta.25, owner decision D65) — `amd_fidelityfx_dx12.dll`, `amd_fidelityfx_upscaler_dx12.dll`, `amd_fidelityfx_framegeneration_dx12.dll`, `amd_fidelityfx_loader_dx12.dll` | **Built 2026-10-19.** The mode an FSR title runs at reaches the vendor only as an argument of `ffxQuery` — "what render size (`…GETRENDERRESOLUTIONFROMQUALITYMODE`, `0x00010003`) or ratio (`…GETUPSCALERATIOFROMQUALITYMODE`, `0x00010002`) does this mode give at this display size?" — asked before the title sizes its targets; the per-frame dispatch carries the size alone. The detour calls the original FIRST, exactly once, and only when it returned `FFX_API_RETURN_OK` reads the descriptor's type, display size and mode and the values the vendor wrote through the title's own out pointers, into a five-slot table (one per `FfxApiUpscaleQualityMode`); the `ffxDispatch` UPSCALE arm names the ONE mode whose kept answer fits the dispatched `renderSize` (and `upscaleSize`, where stated) as `0x10 + mode` in `upscalerQuality`, else `0xFF` (`03_METRICS` §Upscaling). **Rule 4:** the arguments of the API we hooked — the descriptor the title passed and the out values of that same call — never `context`, a resource or anything the title did not hand the hooked export; nothing of the title's is written, and every read is under the hook's SEH guard. Both query layouts and type ids are pinned to literals by `static_assert`s, identical at SDK v1.1.4 and v2.3.0. **Its own family**, `FL_HOOK_UPSCALER_QUALITY` (bit 11 of `hooksInstalledMask`, mirrored in `FlHookFamily` and `HookFamilies`): `InstallByFamily` binds a row by equality, and the query entitles no measured field by itself — the byte rides under `FL_MEASURED_UPSCALER_PARAMS` from the dispatch arm — so the bit says only that the query was hooked, which tells "never asked" from "could not have seen it ask". Published like the dispatch family, once every loaded leaf is patched (`PublishFfxQueryFamilyIfWhole`); the FSR 3.0 host has no `ffxQuery` and no row (`static_assert`). A loader that passes a query on to a leaf's export refreshes one kept answer twice; nothing is counted, so nothing is counted twice. **Measured overhead** (a copy of the two bodies, `/O2 /guard:cf /Qspectre /MT`, 20 M calls × 3 runs, every slot holding both a size and a ratio — the worst case): 7.6–8.2 ns added per UPSCALE dispatch, i.e. per application frame, and 1.6 ns per query beside the trampoline; the per-present path gains one load. Harness: `--ffx-query sizes|ratios`; `fl_guard` "FSR's quality mode". |
|
||||
| ~~XeSS: `xessD3D12CreateContext`, `xessD3D12Init`, `xessD3D12Execute`~~ **Closed at the census by licence, 2026-09-04** (`20_OPEN_QUESTIONS` §Scope decisions, `18_GPU_VENDOR_APIS` §Intel XeSS SDK): no hook on any `libxess*.dll` export *(corrected 2026-10-04)* | ~~`outputResolution`, `qualitySetting`, XeSS version; `xess_fg` variants for XeFG~~ |
|
||||
| ✅ **Application frames per present** (`fgEvaluations`) — **`sl.interposer.dll!slGetNewFrameToken` since 2026-09-03** | Native vs Displayed frame counts at Tier 1 — see `03_METRICS` §Frame Generation. **The producer is the frame-token export**: Streamline hands a title one token per application frame and the title must ask; the detour counts distinct tokens between two presents (pointer changes, nothing dereferenced), `FL_HOOK_FG_EVALUATIONS` is its family, and it installs on every Streamline 2 title including the ones that evaluate nothing through `slEvaluateFeature`. Rule 4: the out-parameter of an API we hooked. Premise and its gate in `03_METRICS`; pre-committed table in `20_OPEN_QUESTIONS` §S31. *The row as it stood before:* ~~NGX/SL/FFX/XeSS FG feature evaluations per present. **Built 2026-08-15 for Streamline, and MEASURED TO YIELD NOTHING ON THAT ROUTE**~~ — `slEvaluateFeature(kFeatureDLSS_G)` is never called by Cyberpunk 2077 (0 across ~14,000 batches, four FG settings), so this row installs, is honest, and counts zero; see `docs/HANDOFF.md` item 3. Built on the detour that was already there: `kFeatureDLSS_G` contributes to a saturating COUNT in the same word the feature bits live in (`fl_sl_seen.h`) rather than to a bit, because a bit collapses several evaluations between two presents into one — and under multi-frame generation that is the common case, not the edge. The row's family is therefore compound (`FL_HOOK_UPSCALER_IDENTITY \| FL_HOOK_FG_EVALUATIONS`), pinned by a `static_assert` because `hookinventory-check` reads that column as an opaque identifier. **Counts EVALUATIONS, not generated frames** — the 2026-08-14 owner ruling; the multiplier lives in `sl::DLSSGOptions`, which is only reachable by the route §2b refused. ~~Non-NVIDIA FG vendors are **deferred with a written rationale**: `amd_fidelityfx_framegeneration_dx12.dll` 3.1.5 exports only the five generic `ffx*` entry points, identical to five sibling modules, so identity is in the arguments and we have no headers~~ — **AMD has a producer since 2026-09-04** (the FidelityFX row above: the PREPARE dispatch's `frameID`, or the UPSCALE count on a title that never prepares, feeds `fgEvaluations` when Streamline has never issued a token); Intel stays at the census (`20_OPEN_QUESTIONS` §Scope decisions, by licence); the FSR 3.0 host DLL's UPSCALE (`ffxFsr3ContextDispatchUpscale`, since 2026-09-05) counts like an ffx-api UPSCALE when neither Streamline nor a PREPARE has spoken |
|
||||
|
||||
@@ -479,7 +481,7 @@ struct alignas(64) FlFrameRecord { // 64 bytes exactly, static_assert'd
|
||||
uint16_t outputW, outputH; // @22
|
||||
uint8_t api; // @26 d3d11|d3d12|vulkan|opengl
|
||||
uint8_t upscaler; // @27 0 = NOT_REPORTED; dlss|fsr2..4|xess|nis|none(8)|unknown(0xFF)
|
||||
uint8_t upscalerQuality; // @28 vendor enum; 0xFF = a hook ran and could not tell
|
||||
uint8_t upscalerQuality; // @28 vendor enum (FSR: 0x10 + mode, beta.25); 0xFF = a hook ran and could not tell
|
||||
uint8_t fgMode; // @29 0 = NOT_REPORTED; dlss_g|fsr_fg|xefg|none(4)|unknown(0xFF)
|
||||
uint8_t rtFlags; // @30 bit0 asBuildOBSERVED, bit1 dispatchOBSERVED, bit2 psoCreatedEver
|
||||
uint8_t colorSpace; // @31 0 = NOT_REPORTED, 1 SDR, 2 HDR10, 3 scRGB
|
||||
|
||||
@@ -237,7 +237,7 @@ Still resolve **entry points defensively at runtime**: `nvapi64.dll` may be abse
|
||||
| Memory | `NvAPI_GPU_GetMemoryInfoEx` — **not `NvAPI_GPU_GetMemoryInfo`**, which this table named until 2026-08-05. The vendored headers mark it `__nvapi_deprecated_function` ("deprecated in release 520"), so under `/W4 /WX` a call to it fails the native build. **Neither is called (2026-09-10):** the vendored `nvapi.h` (`cd6918f6`) does not declare `GetMemoryInfoEx` at all — the deprecation message names a function the same header set does not ship — so the bridge's `vram` field is **reserved**, its bit is never set, and VRAM stays L1's PDH adapter counter. Taking a newer header set is the way to change that, not a call to the deprecated one |
|
||||
| **Throttle reasons** | `NvAPI_GPU_GetPerfDecreaseInfo` — not available from L1 or L2. **Bridge (2026-09-10):** the raw reason mask, and 0 is a measurement (no reason), not a clear bit |
|
||||
| Driver version | `NvAPI_SYS_GetDriverAndBranchVersion` — **bridge (2026-09-10):** `FlNvDriverVersion`, surfaced as `616.64 (r616_41)` |
|
||||
| **NGX per-process state** | `NvAPI_NGX_GetNGXOverrideState` (R570+) — the driver's feedback word per DLSS feature for a PID, read OUT OF PROCESS by `fl-probe-nvapi --ngx-state` and, since 2026-09-06, by the capture host beside each module snapshot — **in-process through the bridge since 2026-09-10** (`NvapiNgxStateProbe`; the spawn is retired and the words, the merge and the printed block are unchanged). Measured: the SR word's `CREATED \| EVALUATE` is set without an NVIDIA-app override; the FG word follows DLSS-G once created (`CREATED \| EVALUATE` at ×4, corrected the same day — the first reading was blind because it was early), the multiplier bits stay clear; `scalingRatio` is 0 even under an override. Identity only, SR and FG (`03_METRICS` §Upscaling) |
|
||||
| **NGX per-process state** | `NvAPI_NGX_GetNGXOverrideState` (R570+) — the driver's feedback word per DLSS feature for a PID, read OUT OF PROCESS by `fl-probe-nvapi --ngx-state` and, since 2026-09-06, by the capture host beside each module snapshot — **in-process through the bridge since 2026-09-10** (`NvapiNgxStateProbe`; the spawn is retired and the words, the merge and the printed block are unchanged). Measured: the SR word's `CREATED \| EVALUATE` is set without an NVIDIA-app override; the FG word follows DLSS-G once created (`CREATED \| EVALUATE` at ×4, corrected the same day — the first reading was blind because it was early), the multiplier bits stay clear; `scalingRatio` is 0 even under an override. Identity only, SR and FG (`03_METRICS` §Upscaling) — and, since beta.24 (D63), the mode an NVIDIA App override set where the word says it applied; its `performanceMode` is in NGX's own numbering (Silent Hill 2, 2026-10-13: the App's Ultra Performance, profile value 5, reported as 3). *(Beta.27: never read after the game has gone — that reading, the last, had cleared `CREATED \| EVALUATE` on every stored session — and the two bits stand once a reading carried them: `03_METRICS` §The driver-reported rung.)* |
|
||||
| **Reflex / PC latency** | `NvAPI_D3D_GetLatency` → per-frame sim/render/present/driver/GPU timestamps; hooking `NvAPI_D3D_SetSleepMode` / `SetLatencyMarker` in the Overlay tells us the game enabled Reflex (`17_HOOK_ENGINE`) |
|
||||
|
||||
Reflex latency is the single strongest reason L3 exists — it is genuinely unavailable anywhere else.
|
||||
|
||||
@@ -1145,6 +1145,13 @@ outlives a rules change, a game update and *Change executable*; §What a finding
|
||||
## Crash & stability safety
|
||||
|
||||
- Two crashes of the same game within 60 s of injection ⇒ hooking auto-disabled for that game, UI explains, Tier-2 takes over. Recorded in `games.hook_autodisabled_reason`. *"Crash" here is any abnormal end: since beta.8 a session whose exit code is not an exception's (End task's 1) is `normal` on its row, and this policy still counts it inside the window — a hang our hook caused, ended by the user, is the case it exists for. The row's reason says "ended abnormally twice within 60 s of injection" (`04_CAPTURE` §Crash & exit classification).*
|
||||
- **Measured 2026-10-19/20 (`spike-notes` §23): direct starts turned hooking off for exits no hook caused.** Lies of P
|
||||
started by **Play** ▸ *Start directly* hands itself to Steam within seconds — its process leaves with nothing
|
||||
presented and Steam starts the game again —, and Clair Obscur: Expedition 33 started directly closes within five
|
||||
seconds and reads *crashed*, hooked or not (its third start, refused and unhooked, closed the same way). Each was a
|
||||
hooked session's early abnormal end; the policy counted them, and two turned hooking off. It cannot tell either from
|
||||
the hang it exists for, so it stands as written; whether a witness — the same executable started again within
|
||||
seconds — may exempt a hand-off is the owner's decision, not taken. Users are told in `LIMITATIONS.md` §Play.
|
||||
- **What reads as a crash changed in beta.14, in both directions** (`04_CAPTURE` §Crash & exit classification): a
|
||||
Windows report that is not a crash (a memory-leak or hang report) no longer makes one, and an engine's crash reporter
|
||||
started by a game that then left does — Unreal's crash ended with exit code 3 and read `normal`. Both feed this policy,
|
||||
|
||||
+99
-48
@@ -62,6 +62,11 @@ owner-only items stay below; the history of every train, the passed owner-only i
|
||||
| `§beta.20` | [`handoff/history/0.1.0-beta.20.md`](handoff/history/0.1.0-beta.20.md) |
|
||||
| `§beta.21` | [`handoff/history/0.1.0-beta.21.md`](handoff/history/0.1.0-beta.21.md) |
|
||||
| `§beta.22` | [`handoff/history/0.1.0-beta.22.md`](handoff/history/0.1.0-beta.22.md) |
|
||||
| `§beta.23` | [`handoff/history/0.1.0-beta.23.md`](handoff/history/0.1.0-beta.23.md) |
|
||||
| `§beta.24` | [`handoff/history/0.1.0-beta.24.md`](handoff/history/0.1.0-beta.24.md) |
|
||||
| `§beta.25` | [`handoff/history/0.1.0-beta.25.md`](handoff/history/0.1.0-beta.25.md) |
|
||||
| `§beta.26` | [`handoff/history/0.1.0-beta.26.md`](handoff/history/0.1.0-beta.26.md) |
|
||||
| `§beta.27` | [`handoff/history/0.1.0-beta.27.md`](handoff/history/0.1.0-beta.27.md) |
|
||||
| `§Owner-only`, an open item | [§Owner-only](#owner-only--no-pr-can-close-these) below |
|
||||
| `§Owner-only`, a passed item (3, 12, 14–19) | [`handoff/owner-only-passed.md`](handoff/owner-only-passed.md) |
|
||||
| `§Traps`, `§Two corrections carried forward` | [`handoff/traps.md`](handoff/traps.md) |
|
||||
@@ -69,60 +74,34 @@ owner-only items stay below; the history of every train, the passed owner-only i
|
||||
|
||||
---
|
||||
|
||||
## **START HERE** — 2026-10-14, 0.1.0-beta.23: a game's artwork, pages that do not freeze, the documents that drifted
|
||||
## **START HERE** — 2026-10-20, 0.1.0-beta.28: the Dashboard with two or more games
|
||||
|
||||
*Status is `CHANGELOG.md` `[0.1.0-beta.23]`; this is what no other file carries.* The owner, 2026-10-14: "Bạn phân tích
|
||||
và lên plan cho phần tiếp theo gồm những nội dung sau: 1. Thêm ảnh bìa/hero/cover của game từ các nền tảng đó - Đặt trong
|
||||
detail của game. (Nếu được); Tuỳ chọn: có thể sync màu cùa cover với màu của detail; 2. Cập nhật, sync docs; 3. Kiểm tra
|
||||
hiệu suất khi chuyển giữa các tab (nếu có vấn đề hiệu năng)" — then the whole train to the release without asking again.
|
||||
On top of #308 (PR-1): #309 (the pages, measured first), #310 (the artwork), #311 (the drift), then this release.
|
||||
*Status is `docs/changelog/0.1.0-beta.28.md`; this is what no other file carries.* The owner, while beta.27 was being
|
||||
released: "Thêm cơ chế hiển thị UI/UX Dashboard khi chạy >=2 game trong cùng 1 thời điểm nếu được nhé." and "Bạn có thể
|
||||
chờ beta27 xong xử lý tiếp luôn bản 28 nếu được." #332 (the cards) and this release, the same day as beta.27 — whose
|
||||
section, with the open crash-safety question, is `handoff/history/0.1.0-beta.27.md`.
|
||||
|
||||
**Decisions:**
|
||||
**No new owner decision.** The Agent always recorded one session per executable, so two games were two sessions; the
|
||||
Dashboard's one live card went to a hooked session and kept it, and the other game read only as *Running sessions: 2*.
|
||||
Each running session now has its card (`08_UI` §Dashboard).
|
||||
|
||||
- **D60 — a game's artwork is what is already on the PC.** The image the user chose (*Edit… ▸ Choose image…*), else
|
||||
what the Steam or GOG GALAXY app keeps for the game it installed — found through the stores' own records as Play finds
|
||||
them (`StoreRecords.Owning`, never the row's platform alone). Nothing is downloaded: `privacy.online_metadata` stays
|
||||
reserved. A chosen image is a PNG copy, `<data>\covers\game-<id>-<unix ms>.png`, named relative in `cover_path`; only
|
||||
those names are followed — never a rooted, share or `..` path, never through a junction or a symbolic link, because a
|
||||
viewer's copy of a ledger may come from anywhere (D52).
|
||||
- **D61 — the band takes the artwork's colour as far as every text on it reads**: primary and secondary 4.5:1, tertiary
|
||||
3:1, the pills' and the warning's text 4.5:1 on their own fills; at most 30 % on the dark theme, 22 % on the light. On
|
||||
by default (the owner's choice); never in high contrast; it follows a theme switch by resource reference.
|
||||
- **The pages' speed was judged by a bar written before the first measurement** (`spike-notes` §21): fix what keeps the
|
||||
UI thread busy 50 ms or more, can block on I/O, or grows with each visit. Recorded, not fixed: page builds of 85–370 ms,
|
||||
and **the library grid (275 ms at 48 games) — non-virtualizing by the beta.11 decision; a virtualizing one changes the
|
||||
page's look, which is the owner's call** *(answered 2026-10-15: it stays as it is — §After the release below)*; no
|
||||
`sessions.started_at` index (a schema version locks out every earlier
|
||||
build, and nothing measured asked for it).
|
||||
- `LIST_GAME_TESTED`: the Everhex Demo row and the corrected Vulkan sentence, approved by the owner under D35.
|
||||
**Choices made here** — the owner asked for a way to show them, not for a layout: a card per session, each read the
|
||||
way the one card was, rather than one large card and a list of the rest; hooked sessions first, each kind in the order
|
||||
it started, a card moved rather than rebuilt when its place changes; two to a row from two on; the header counts the
|
||||
games from two on. The machine's temperatures repeat on every card: each session's tick carries them.
|
||||
|
||||
**Traps met on the way:**
|
||||
|
||||
- **Microsoft.Data.Sqlite completes its "async" calls synchronously**: after a ledger read, `ConfigureAwait(false)` is
|
||||
still on the UI thread — the session decode, the sorts and the stutter detection all ran there (`16_WPFUI_SYNTAX`
|
||||
§Gotchas).
|
||||
- **A transient view model that is `IDisposable` lives until the App exits** (the root container keeps it), and every
|
||||
Dashboard ever opened stayed subscribed. FR-3.8's "Session saved" lived in that view model and reached every page only
|
||||
through the leak — it is `Services.SessionNotices` now.
|
||||
- **A `ui:Image` given a `Style` of its own that is not based on `DefaultImageStyle` has no template** and draws nothing
|
||||
in the place it takes. Only a render showed it; `AccessibilityTests.NoStyleOfAWpfUiControlLeavesOutItsTemplate`
|
||||
refuses it now.
|
||||
- **A page just navigated to is mid-fade**: a `RenderTargetBitmap` of it reads every colour washed out unless the
|
||||
presenter's `Transition` is `None`.
|
||||
- **The Bash tool's heredocs halve backslashes**: `covers\game-` became an invalid C# escape, and `\r\n` in a Python
|
||||
heredoc became real line breaks. Write such files with the editor tools.
|
||||
- **`Directory.Delete(…, recursive: true)` over a junction throws without elevation** (it asks Windows to unmount a
|
||||
volume, and the link is removed anyway): a test deletes its junction itself first.
|
||||
- **C# written from a Python string**: `@"D:\another\…"` in a non-raw Python string turned `\a` into BEL inside a test,
|
||||
and the test still passed — both of its paths were mangled alike. Write C# through raw strings, and scan a diff for
|
||||
control characters before committing.
|
||||
- **An items panel binds to the page**: inside an `ItemsPanelTemplate`, `{Binding ViewModel.LiveColumns}` reads the
|
||||
ItemsControl's DataContext — the page — so the panel's column count is the page view model's.
|
||||
- **A page rendered for a look has no background of its own**: under the dark theme the light text is drawn on
|
||||
transparency. Read the light render, or put the page on a `Border` with `ApplicationBackgroundBrush`.
|
||||
|
||||
**Owner-only, added to the list below:** item 19 — **passed 2026-10-15**.
|
||||
**Owner-only:** item 23 added; beta.27's item 22 and the crash-safety question stand.
|
||||
|
||||
**After the release (owner, 2026-10-15):** "Item 19 hiện đã đạt 100% yêu cầu. Phần chip sẽ đi kèm với phiên bản tiếp
|
||||
theo. Bạn có thể cập nhật và đóng phiên, thư viện vẫn giữ như cũ." — item 19 passed; the chip the release tree's local
|
||||
gate left goes with the next pre-release (`fl_guard`'s native-log test, red under load: after the stop, the last
|
||||
`UNHOOK_RESTORED` lines were not in the file within its 10-second wait — known since beta.9, and no native code changed
|
||||
in beta.23; green on the re-run); and **the library grid stays as it is**: the beta.11 decision
|
||||
(`Controls/UniformWrapPanel`, non-virtualizing — cards an equal share of the width, each row as tall as its tallest
|
||||
card) holds, at 275 ms for 48 games (`spike-notes` §21). Recorded with no release: nothing a user runs changed.
|
||||
|
||||
## Owner-only — no PR can close these
|
||||
|
||||
@@ -207,6 +186,72 @@ card) holds, at 275 ms for 48 games (`spike-notes` §21). Recorded with no relea
|
||||
halves and a footer naming `v0.1.0-beta.17` — then tick *Restrict editing to collaborators only* (Settings ▸ General
|
||||
▸ Features ▸ Wikis), or anyone can change a page until the next release overwrites it. (e) The `ja` strings marked
|
||||
`review`.
|
||||
20. **beta.24 on real hardware — decision tables written before the runs.** (a) **The mix (D62):** a DLSS 4 title
|
||||
(Cyberpunk 2077 or Hell Is Us) with the NVIDIA App's *Frame Generation Mode* on *Use 3D app setting*, one session of
|
||||
about two minutes each at ×2, ×3 and ×4 chosen in the game's menu, plus its menus → the summary's *Frame generation in
|
||||
this session* lists ×2.0 / ×3.0 / ×4.0 with shares near the time spent, each with its own Native → Displayed, and the
|
||||
line *Set in the game — no NVIDIA App frame-generation override*. Then the MFG title with the App's *Fixed ×6* → a
|
||||
×6.0 row and *Set in the NVIDIA App: Fixed ×6*. Then *Dynamic, Target FPS = Max refresh rate, Multiplier = Up to 6x*
|
||||
→ several rows or *Not classified*, and *Set in the NVIDIA App: Dynamic, up to ×6, target: max refresh rate*. Record
|
||||
the stored `driver_profile` values for the Dynamic run: `NGX_DLSSG_DYNAMIC_MULTI_FRAME_COUNT_MAX` 5 and the target
|
||||
`0x01000000` confirm the decode; anything else corrects `NvidiaOverrides.FrameGenerationContext`.
|
||||
(b) **The quality mode (D63) on Expedition 33:** the App's Super Resolution mode *Quality*, then *DLAA*, *Ultra
|
||||
Performance*, *Performance*, one short session each → the header reads *DLSS (driver-reported) Quality · NVIDIA App*
|
||||
and so on. Stored `performanceMode`: Ultra Performance 3 (already measured on Silent Hill 2) and DLAA 5 confirm NGX's
|
||||
numbering; DLAA 4 would mean the report follows the profile's numbering above 3 — then
|
||||
`UpscalerNames.FromDriverReport` changes, and the row goes into `spike-notes`.
|
||||
(c) **The libraries (D64):** the same sessions' DLSS line names the super-resolution library and *from the graphics
|
||||
driver* when the override's copy is loaded; preset L → *DLSS 4.5 (preset L)*. With *Model Presets* on *Use 3D app
|
||||
setting*, the game's own library and no generation beyond what was observed. Record the names the override loads
|
||||
under `%ProgramData%\NVIDIA\NGX` (the summary's *Loaded:* line) — they correct `05_DETECTION` §Shipped is not loaded.
|
||||
(d) **DLSS 5** on the owner's DLSS 5 title: *DLSS 5 runtime loaded*. If it is not shown, record the module names it
|
||||
loads (*Loaded:* line); `nvngx_dlssnr.dll` is then corrected in `CensusNames` and `05_DETECTION`.
|
||||
(e) **SonarCloud (D67):** bulk-mark per `13_CI_CD` §SonarCloud; optionally its *Ignore issues on multiple criteria*
|
||||
rows; close PR #315. (f) The Legal Gate shows **Disclaimer 2.11** and **Privacy Policy 2.12** once. (g) The `ja`
|
||||
strings marked `review`. *(2026-10-19, the owner's first runs — `spike-notes` §22: (a) the Dynamic context line
|
||||
reads the App's own words, and the mix found ×2.0 / ×3.0 / ×6.1 — plus a ×1336.0 row that was a defect, fixed in
|
||||
beta.26; (c) the override loads `160_E658700.bin` 310.9.16.0 and `1B0_E658703.dll` 2.14.16.0 from the NGX folder;
|
||||
(e) **done** — every issue marked; the last six, triaged in `13_CI_CD` §SonarCloud (beta.26), the same day, and
|
||||
`main`'s quality gate passes. The rest is not run yet.)* *(2026-10-20, the owner's runs of beta.26 — `spike-notes`
|
||||
§23: (a) **done** — ×2, ×3 and ×4 chosen in Cyberpunk 2077's menu read ×1.9 (ten seconds), ×3.0 and ×4.0, each with
|
||||
its own rates, under "Set in the game — no NVIDIA App frame-generation override"; **Fixed ×6** on Expedition 33 read
|
||||
×6.0 under "Set in the NVIDIA App: Fixed ×6"; *Dynamic* on Silent Hill 2 read ×2.0 and ×3.0, plus a ×2.52 row that
|
||||
was a defect, fixed in beta.27. The Witcher 3 under **Fixed ×6** presented ×2.0 throughout: the rows are the frames,
|
||||
the line is the setting. (b) **could not pass before beta.27**: every stored driver word had lost
|
||||
`CREATED | EVALUATE`, read after the game had closed, so an NGX-direct title under the override never read its mode
|
||||
— run it on beta.27. (c) The Witcher 3 under the override loaded `160_E658700.bin` 310.9.16.0 and `1B0_E658700.dll` 2.14.16.0;
|
||||
Silent Hill 2 and Expedition 33 loaded `1B0_E658703.dll`.)*
|
||||
21. **beta.25 on real hardware — FSR's quality mode (D65), decision table written before the run.** Lies of P (FSR
|
||||
through AMD's FidelityFX libraries) launched by FrameLedger, not attached, with the game's own *FSR* at *Quality*,
|
||||
then a second session at *Performance* → the summary's header reads *FSR 3 Quality*, then *FSR 3 Performance* (or
|
||||
*FSR Quality* where the SDK 2.x libraries name no version), and the CSV export's `# quality_mode:` says
|
||||
`quality (game)`. Then: **no mode on both** → the title sizes its frames without asking, or asked before the hook
|
||||
was in: record the session's render → output resolution and the *Loaded:* line in `spike-notes`, and D65 stays built
|
||||
and silent for that title. **A wrong mode** (the Quality session reading Balanced) → the answers this title receives
|
||||
are not the vendor's documented ratios: record the stored `upscaler_quality` and the render size in `spike-notes`,
|
||||
and the match is withdrawn until it is explained. **With the game's dynamic resolution on** (if it offers one) → no
|
||||
mode. *(2026-10-19, `spike-notes` §22: the Quality session read **no mode** with the query hooked — the first
|
||||
branch; 1707×961 is the engine's own rounding of 66.67 %, not the size answer, so the title asked before the hook
|
||||
was in or never asked. D65 stays built and silent for Lies of P. The Performance session is not run.)*
|
||||
*(2026-10-20, §23: the Performance session, started through Steam, read "FSR 3 · 1280×720 → 2560×1440" and no mode —
|
||||
the first branch on both. 1280×720 is exactly the vendor's Performance size, so a query the hook met would have
|
||||
matched: the title did not ask while the hook was in. It cannot be launched by FrameLedger as this item asks — started
|
||||
directly it hands itself to Steam within seconds, and before beta.27 the game Steam started was not recorded at
|
||||
all.)*
|
||||
22. **beta.27 on real hardware.** (a) **The driver's report, and item 20(b):** Expedition 33 under the NVIDIA App's
|
||||
DLSS override → the header reads *DLSS (driver-reported)* with the override's mode and *· NVIDIA App* (*Balanced*
|
||||
as set on 2026-10-20); then 20(b)'s four modes. Still *Upscaler not identified* → record the session's stored
|
||||
`ngx_driver_words`: no reading while the game ran said the feature was created and evaluated. (b) **Start directly
|
||||
on Lies of P:** the notice says a Steam game may hand itself to Steam first, and the game Steam starts is recorded —
|
||||
`agent-*.log` says *started while the last session of its executable was ending; recording it now*. The crash safety
|
||||
counts the hand-off: after two such starts hooking is off again (`19_SAFETY`). (c) **One window per session:** open a session from a Sessions tab, then again from the game
|
||||
page or its notification → the same window comes forward, restored if minimised. (d) **A game in exclusive
|
||||
full-screen** (Dark Souls III, Lies of P) → its summary's Display card shows the window size.
|
||||
23. **beta.28 on real hardware.** Two games at once — one hooked, one with hooking off (or refused) → the Dashboard
|
||||
shows two cards side by side, the hooked one first, and *2 games recording* beside *Live capture*; each card's
|
||||
numbers are its own game's; closing one leaves the other's card where it is, and the count goes. A third game → a
|
||||
third card on the next row and *3 games recording*. (The `ja` string `Dashboard_Live_Count_Format` is marked
|
||||
`review`.)
|
||||
**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
|
||||
headers **and** `amd64/nvapi64.lib`; Windows 11 is the **measurement scope** only —
|
||||
@@ -280,8 +325,14 @@ Where each owner decision is recorded — the file and its section, and a label
|
||||
| D57 | [`handoff/history/0.1.0-beta.21.md`](handoff/history/0.1.0-beta.21.md) | the four itch "launchers" are malware: the documentation is corrected, the import is no… |
|
||||
| D58 | [`handoff/history/0.1.0-beta.21.md`](handoff/history/0.1.0-beta.21.md) | Wuthering Waves is on the title list (Steam 3513350, Anti-Cheat Expert), beside the fix… |
|
||||
| D59 | [`handoff/history/0.1.0-beta.21.md`](handoff/history/0.1.0-beta.21.md) | Play, in two modes switched in Settings: "1: press Play → the platform opens → it runs;… |
|
||||
| D60 | this file, §START HERE | a game's artwork is what is already on the PC |
|
||||
| D61 | this file, §START HERE | the band takes the artwork's colour as far as every text on it reads: primary and secon… |
|
||||
| D60 | [`handoff/history/0.1.0-beta.23.md`](handoff/history/0.1.0-beta.23.md) | a game's artwork is what is already on the PC |
|
||||
| D61 | [`handoff/history/0.1.0-beta.23.md`](handoff/history/0.1.0-beta.23.md) | the band takes the artwork's colour as far as every text on it reads: primary and secon… |
|
||||
| D62 | [`handoff/history/0.1.0-beta.24.md`](handoff/history/0.1.0-beta.24.md) | the mix: every frame-generation state a session held, with its share, never averaged |
|
||||
| D63 | [`handoff/history/0.1.0-beta.24.md`](handoff/history/0.1.0-beta.24.md) | the NVIDIA App's override is the quality mode where the driver reports it applied |
|
||||
| D64 | [`handoff/history/0.1.0-beta.24.md`](handoff/history/0.1.0-beta.24.md) | DLSS labels are evidence-bound: versions and folder class, DLSS 4/4.5 only when shown, 5 only loaded |
|
||||
| D65 | [`handoff/history/0.1.0-beta.25.md`](handoff/history/0.1.0-beta.25.md) | FSR's quality mode through ffxQuery — deferred from beta.24, built in beta.25; none at a dynamic resolution |
|
||||
| D66 | [`handoff/history/0.1.0-beta.24.md`](handoff/history/0.1.0-beta.24.md) | the long documents are split; every original path stays as the index of its parts |
|
||||
| D67 | [`handoff/history/0.1.0-beta.24.md`](handoff/history/0.1.0-beta.24.md) | SonarCloud stays on Automatic Analysis with .sonarcloud.properties; the owner marks in its UI |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
<!-- Moved from CHANGELOG.md's [Unreleased] when 0.1.0-beta.24 was cut, 2026-10-19 (D66). CHANGELOG.md lists every release. -->
|
||||
|
||||
## [0.1.0-beta.24] - 2026-10-19
|
||||
|
||||
**The twenty-fourth pre-release: every frame-generation state a session held, the quality mode the NVIDIA App set, and
|
||||
which DLSS ran.** The same unsigned installer: verify its hash against `SHA256SUMS.txt`, then *More info → Run anyway*.
|
||||
|
||||
**Updating from `0.1.0-beta.23`:** Help ▸ Check for updates, then *Restart to update* with no game running. The
|
||||
Disclaimer (2.11) and the Privacy Policy (2.12) are shown once for you to accept. The ledger moves to schema 21, which
|
||||
a beta.23 cannot open. No game is read again: the detection rules (`2026.10.4`) are beta.23's. The mix of
|
||||
frame-generation states and where each DLSS library was loaded from are kept for sessions recorded from now on; the
|
||||
quality mode the NVIDIA App set reads on sessions you already have.
|
||||
|
||||
### Added
|
||||
|
||||
- **Every frame-generation state a session held, in its summary** (owner request 2026-10-19, decision D62). Under the
|
||||
figures, *Frame generation in this session* lists each state — `×2.0`, `×3.0`, `×4.0`, `×6.0`… — with its own
|
||||
Native → Displayed and its share of the time to two decimals, then the time with no frame generation and the time no
|
||||
state explains (*Not classified*: switching, loading, a multiplier that changed faster than five seconds), above a bar
|
||||
of those shares. A line above them says how frame generation was set: in the NVIDIA App (*Dynamic, up to ×6, target:
|
||||
max refresh rate*, *Fixed ×4*, from the driver profile stored with the session) or in the game. Each state is read
|
||||
over the same five-second windows as the steady state and lasts at least 10 seconds; nothing is averaged across
|
||||
states (rule 6). Stored with the session (schema 0020, `sessions.fg_mix`): a session recorded before has none, and
|
||||
its summary says so in one line. The CSV export gains a `# fg_mix:` line; the JSON carries the column. The FG×
|
||||
column's two formats are translated strings now, and the driver-profile line's automatic dynamic target reads as the
|
||||
NVIDIA App says it: *max refresh rate*.
|
||||
|
||||
- **The quality mode the NVIDIA App set, on every page that names the upscaler** (owner request 2026-10-19, decision
|
||||
D63). Where the NVIDIA App overrides DLSS Super Resolution for a game and the NVIDIA driver reports that the
|
||||
override applied in the session, the summary, the Sessions tab, the game page and the live card say so:
|
||||
*DLSS (driver-reported) Quality · NVIDIA App*. It is read from what every session already stores, so sessions
|
||||
recorded before read the same; when the profile and the driver disagree, or the driver's report alone cannot settle
|
||||
the mode, the session reads *· NVIDIA App override* with no mode — never the game's own value in its place. The CSV
|
||||
export gains a `# quality_mode:` line. `legal/ACCURACY.md`'s *Quality mode* bullet says so, in the words approved
|
||||
with the plan; **the Disclaimer is 2.11** and the Legal Gate shows it once.
|
||||
|
||||
- **Which DLSS a session ran** (owner request 2026-10-19, decision D64). The summary's DLSS line gives each DLSS
|
||||
library's version and whether it was loaded from the game or from the graphics driver (the NVIDIA App's override
|
||||
loads the driver's own copy), the model preset the NVIDIA driver reports, and *DLSS 4* or *DLSS 4.5* only where the
|
||||
session shows it — the preset (L or M: 4.5; J or K: 4) or a measured multi-frame factor (×5–×6: 4.5; ×3–×4: 4) —;
|
||||
DLSS 2 and 3 from their libraries; *DLSS 5 runtime loaded* when its library is. The game page repeats the label and
|
||||
the CSV export gains `# dlss:`. The module snapshot now records every library under the NVIDIA override folder,
|
||||
whatever its name, and each module's folder class (schema 0021, `sessions.runtime_module_sources` — never the path),
|
||||
plus five more libraries by name (`sl.dlss_d.dll`, `sl.common.dll`, `sl.reflex.dll`, `amd_fidelityfx_loader_dx12.dll`,
|
||||
`nvngx_dlssnr.dll`). **Privacy Policy 2.12** says so, in the words approved with the plan; `legal/ACCURACY.md` gains
|
||||
the *DLSS version* bullet.
|
||||
|
||||
### Changed
|
||||
|
||||
- **The analyzers are Meziantou.Analyzer 3.0.307 and Microsoft.VisualStudio.Threading.Analyzers 18.12.1**
|
||||
(developers only): the update Dependabot proposed in #314 and then closed itself as "updatable in another way" —
|
||||
applied by hand, with the two suppressions it needed merged earlier in the train.
|
||||
- **SonarCloud analyses only FrameLedger's own code** (developers only; owner request 2026-10-19, decision D67). A
|
||||
`.sonarcloud.properties` at the root keeps the vendored SDK headers, generated files, test fixtures, licence texts and
|
||||
the SQLite migrations out of the analysis and reports the native code against C++20; `docs/13_CI_CD.md` §SonarCloud
|
||||
records the triage of the 341 issues the last analysis left — the rules this project breaks by design and why, the
|
||||
false positives, and the ones the next change fixes — with the steps to mark them in SonarCloud.
|
||||
- **The long documents are split** (developers only; owner request 2026-10-19, decision D66). `CHANGELOG.md`
|
||||
keeps `[Unreleased]` and a table of the releases; each release's section now lives in its own file,
|
||||
`docs/changelog/<version>.md`, and the ledger kept before the first tag in five parts — moved verbatim: the notes
|
||||
`tools/release-notes.ps1` takes for each of the 23 releases are byte for byte what they were, and it reads the
|
||||
version's own file. `docs/HANDOFF.md` (2,844 lines, now 299) keeps what to do next, the open owner-only items and an
|
||||
index of every owner decision; the history of each phase and train, the passed owner-only items and the traps
|
||||
moved to `docs/handoff/`, and a table there resolves every section the code and the documents cite. A new gate,
|
||||
`tools/docs-split-check.ps1`, keeps each index and its files naming each other.
|
||||
- **The open questions and the measurement notes are split too** (developers only, D66). `docs/20_OPEN_QUESTIONS.md`
|
||||
(4,467 lines, now 2,008) keeps its rules, §S24 and every entry not resolved; the 30 entries §S24 marks resolved
|
||||
moved, with their reasoning and in their order, to `docs/open-questions/closed-s.md` and `closed-h.md`, and a table
|
||||
at the end of each series lists them. `docs/spike-notes.md` (2,816 lines) is now the index of its 24 sections, each
|
||||
in its own file under `docs/spike-notes/`; a new measurement gets the next number, its own file and a row. Both
|
||||
rebuild their originals byte for byte, and the same gate holds their indexes to their files.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **The NVIDIA driver line read the driver's mode in the wrong numbering.** The driver reports the mode an override
|
||||
set in NGX's own numbering, not the driver profile's: the owner's Silent Hill 2 session ran under the NVIDIA App's
|
||||
Ultra Performance (profile value 5) and the driver reported 3 — which the line printed as nothing, and a DLAA
|
||||
override's 5 would have printed as "Ultra Performance". Five comments in the native code called a quality byte of
|
||||
0 "NGX MaxPerf" — in the numbering that byte carries, 0 is "DLSS off" (comments only, no code changes).
|
||||
- **Opening a folder in Explorer** — the logs, the data folder, the licences, a bug report's zip and the folder named
|
||||
after a failed start — starts `explorer.exe` from the Windows folder by its full path, never a program of that name
|
||||
found on the search path, and always hands it the path in quotes (three of the five places passed it bare).
|
||||
- **What SonarCloud found that was real** (developers only): the one third-party GitHub Action is pinned to its
|
||||
commit; two string reads in native code are bounded by their buffer (the guard's rules-file path handed to the Agent,
|
||||
and the driver's branch name the NVAPI bridge copies); the pipe server's accept loop states that it ends only when
|
||||
cancelled; a launch's own session names its absent stop token (`CancellationToken.None`, with the reason) where it
|
||||
wrote `default` — the same value, now said on purpose; an unused overload of
|
||||
the process launcher that hid the other is gone; the identifier `module` (a C++20 keyword in some positions) is
|
||||
renamed in the hook layer — a rename only, no code changes; and a hook-overhead probe no longer uses a compound
|
||||
assignment on a `volatile`, which C++20 deprecates. The analyzers Dependabot updates in #314 flag the first-start
|
||||
window's own answer task and one test fake's synchronous wait; both are suppressed with their reasons, so that update
|
||||
can merge.
|
||||
- **The game-side log keeps every line a stop writes.** When hooking stopped on a game's own drawing thread — the
|
||||
capture agent's safety stop takes effect within one frame there — the Overlay's last write of its log could happen
|
||||
while that thread was still listing the hooks it removed, and the last of them never reached the file
|
||||
(`overlay-*.log`, the file a bug report carries). The last write now waits, at most two seconds, for the stop to
|
||||
finish and ends with a `STOP_FLUSHED` line; a line still being written is never printed half-done. Nothing changes
|
||||
on the per-frame path. This was the native test that went red under load since beta.9 (`fl_guard`'s log case),
|
||||
now run 20 times with every processor busy.
|
||||
@@ -0,0 +1,27 @@
|
||||
<!-- Moved from CHANGELOG.md's [Unreleased] when 0.1.0-beta.25 was cut, 2026-10-19 (D66). CHANGELOG.md lists every release. -->
|
||||
|
||||
## [0.1.0-beta.25] - 2026-10-19
|
||||
|
||||
**The twenty-fifth pre-release: FSR's quality mode.** The same unsigned installer: verify its hash against
|
||||
`SHA256SUMS.txt`, then *More info → Run anyway*.
|
||||
|
||||
**Updating from `0.1.0-beta.24`:** Help ▸ Check for updates, then *Restart to update* with no game running. Nothing is
|
||||
shown for you to accept again (the Disclaimer stays 2.11, the Privacy Policy 2.12), the ledger stays at schema 21, and
|
||||
no game is read again: the detection rules (`2026.10.4`) are beta.24's. FSR's quality mode is recorded for sessions
|
||||
from now on; a session recorded before keeps what it had.
|
||||
|
||||
### Added
|
||||
|
||||
- **FSR's quality mode** (owner decision D65, planned for beta.24 and moved to this release). For a game that runs FSR
|
||||
through AMD's FidelityFX libraries, the summary, the Sessions tab, the game page and the live card name the mode —
|
||||
*FSR 3 Quality*, *FSR Performance*, *FSR Native AA* — when the game asked AMD's library what render size that mode
|
||||
gives and then rendered at that size. A game at a dynamic resolution, one that sizes its frames without asking, and
|
||||
one FrameLedger joined after it asked show none. FrameLedger reads one more call in those libraries (`ffxQuery`,
|
||||
beside the `ffxDispatch` it already reads): the size or ratio AMD's library answered, nothing else — about 8 ns per
|
||||
upscaled frame. The CSV export's `# quality_mode:` carries it (`native_aa (game)` for Native AA).
|
||||
`legal/ACCURACY.md`'s *Quality mode* bullet gains its FSR clause, in the words approved with the beta.24 plan; the
|
||||
Disclaimer stays 2.11, as it did for the accuracy statement's additions in beta.19 and beta.20. Checked with AMD's
|
||||
interface on the test program; a real game is owner-only item 21. Developers: the hook has its own family bit
|
||||
(`FL_HOOK_UPSCALER_QUALITY`, bit 11 of `hooksInstalledMask`), the byte is `0x10 + FfxApiUpscaleQualityMode`, the
|
||||
harness asks with `--ffx-query sizes|ratios`, and `Domain.Metrics.QualityByte` is the one rule a session, its
|
||||
segments and the live card read.
|
||||
@@ -0,0 +1,35 @@
|
||||
<!-- Moved from CHANGELOG.md's [Unreleased] when 0.1.0-beta.26 was cut, 2026-10-19 (D66). CHANGELOG.md lists every release. -->
|
||||
|
||||
## [0.1.0-beta.26] - 2026-10-19
|
||||
|
||||
**The twenty-sixth pre-release: a frame-generation state no frame generation produces, fixed.** The same unsigned
|
||||
installer: verify its hash against `SHA256SUMS.txt`, then *More info → Run anyway*.
|
||||
|
||||
**Updating from `0.1.0-beta.25`:** Help ▸ Check for updates, then *Restart to update* with no game running. Nothing is
|
||||
shown for you to accept again (the Disclaimer stays 2.11, the Privacy Policy 2.12), the ledger stays at schema 21, and
|
||||
no game is read again: the detection rules (`2026.10.4`) are beta.25's. Sessions you already recorded read by the new
|
||||
rule at once — nothing in them is rewritten.
|
||||
|
||||
### Changed
|
||||
|
||||
- **SonarCloud's last six findings on `main`, triaged** (developers only; D67's follow-up). After the owner's marking,
|
||||
the analysis of 0.1.0-beta.25 left six open: `docs/13_CI_CD.md` §SonarCloud lists them with a verdict and the comment
|
||||
to paste — one to accept as the table already said, four false positives (exact floating-point comparisons that are
|
||||
exact on purpose), and one fixed here: `wiki.yml` publishes only after a Release run started by a tag pushed to this
|
||||
repository, now checked by the repository's name in its condition as well as by the run's trigger.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **A frame-generation "state" of ×1336.0.** The owner's Silent Hill 2 session (0.1.0-beta.25, the NVIDIA App's
|
||||
*Dynamic* multi frame generation) listed a ×1336.0 state — 0.20 → 267.20 FPS for ten seconds — under *Frame
|
||||
generation in this session*, and the DLSS line cited it: *DLSS 4.5 (a ×1336.0 frame-generation state)*. Those ten
|
||||
seconds — the game compiling its shaders at start — were presented with one application frame counted per
|
||||
five-second window, and a window needed eight presents but only one counted frame to be read. A window now needs eight
|
||||
application frames and a ratio no higher than ×8 — more than any frame generation produces (DLSS 4.5's ×6 is the
|
||||
most); every other window is *Not classified*, and the steady state reads the same windows. A session-wide or live ratio that held above ×8 is
|
||||
refused and says why (*the ratio is beyond what any frame generation produces*), in en/vi/ja. Sessions already
|
||||
recorded are read by the same rule, so that session now lists ×2.0, ×3.0, ×6.1, no frame generation and 30 seconds
|
||||
not classified, and its DLSS line cites ×6.1. The owner's runs of beta.24 and beta.25 are recorded in
|
||||
`docs/spike-notes/22-owner-runs-2026-10-19.md`: the *Dynamic* settings line matched the NVIDIA App's own words, the
|
||||
override's two library names are written down, and Lies of P read no FSR mode with the query hooked — the title
|
||||
rounds its own render size and asked nothing the hook kept.
|
||||
@@ -0,0 +1,56 @@
|
||||
<!-- Moved from CHANGELOG.md's [Unreleased] when 0.1.0-beta.27 was cut, 2026-10-20 (D66). CHANGELOG.md lists every release. -->
|
||||
|
||||
## [0.1.0-beta.27] - 2026-10-20
|
||||
|
||||
**The twenty-seventh pre-release: the owner's eight sessions of 2026-10-20, checked — six faults fixed, and *Start
|
||||
directly* says what a Steam game may do.** The same unsigned installer: verify its hash against `SHA256SUMS.txt`, then
|
||||
*More info → Run anyway*.
|
||||
|
||||
**Updating from `0.1.0-beta.26`:** Help ▸ Check for updates, then *Restart to update* with no game running. Nothing is
|
||||
shown for you to accept again (the Disclaimer stays 2.11, the Privacy Policy 2.12), the ledger stays at schema 21, and
|
||||
no game is read again: the detection rules (`2026.10.4`) are beta.26's. Sessions you already recorded read the
|
||||
frame-generation fix at once; the driver's DLSS report, the display sizes and the game Steam starts are recorded from
|
||||
this version on — nothing already stored is rewritten.
|
||||
|
||||
### Changed
|
||||
|
||||
- **Play ▸ *Start directly* says what a Steam game may do.** Some Steam games hand themselves to Steam when
|
||||
FrameLedger starts them — Lies of P closes within seconds and Steam starts it again. Starting a game Steam installed,
|
||||
the notice now says it may hand itself to Steam first and that the game Steam then starts is recorded; the *Start
|
||||
directly* tooltip and Settings ▸ Games ▸ *Play button* say so too, adding that a few will not start outside Steam at
|
||||
all. Steam games keep *Start directly*: three of the five started directly on 2026-10-20 ran and were measured from
|
||||
their first frame, and a Vulkan game is measured only when FrameLedger starts it. In en/vi/ja (ja marked for review).
|
||||
|
||||
### Fixed
|
||||
|
||||
- **A frame-generation "state" of ×2.52.** The owner's Silent Hill 2 session under the NVIDIA App's *Dynamic* multi
|
||||
frame generation listed ×2.52 for 13 seconds beside ×2.0 and ×3.0: the five-second windows in which the multiplier
|
||||
stepped from ×2 to ×3 read in between, and three of them formed a state nobody held. Every frame generation that
|
||||
ships multiplies by a whole number, so a window now counts toward a state only within 10 % of one; the others are
|
||||
*Not classified*. Sessions already recorded are read by the same rule: that session lists ×2.0, ×3.0, no frame
|
||||
generation and 7.36 % not classified. The owner's runs of 2026-10-20 are recorded in
|
||||
`docs/spike-notes/23-owner-runs-2026-10-20.md`.
|
||||
- **The NVIDIA driver's DLSS report was lost from every stored session.** FrameLedger asked the driver one last time
|
||||
after the game had closed, and that answer — which no longer says DLSS ran — replaced the ones read while the game
|
||||
ran. So no session said *DLSS (driver-reported)* where no hook saw DLSS, and none named the NVIDIA App's quality mode
|
||||
on such a game: Clair Obscur: Expedition 33 under the App's override read *Upscaler not identified*. The driver is no
|
||||
longer asked once the game has closed, and once it reports that DLSS ran, the session keeps it. Sessions recorded
|
||||
before keep what they stored.
|
||||
- **Play ▸ *Start directly* recorded nothing of a game that hands itself to Steam.** Lies of P, started directly, closes
|
||||
within seconds and Steam starts it again; the game Steam started was turned away while the first session ended and
|
||||
never recorded. It is now recorded once that session ends, as a game started again already was. Each such start
|
||||
still counts toward the two early exits that turn hooking off for a game, so Limitations ▸ Play advises starting such
|
||||
a game through its store.
|
||||
- **Opening a session's summary twice opened two windows.** The open window comes forward instead, restored if
|
||||
minimised.
|
||||
- **No window or monitor size for a game in exclusive full-screen.** A game leaving exclusive full-screen closes its
|
||||
window a moment before its swap chain says so, and those last samples replaced the sizes: two Lies of P and three
|
||||
Dark Souls III sessions show none. The sizes are now the last ones the mode saw.
|
||||
- **A DLSS line that said only "DLSS"**, under a header that already did, is no longer shown: the NVIDIA App's override
|
||||
loads its libraries under names FrameLedger does not list (The Witcher 3), and the *Loaded:* line prints them.
|
||||
- **Two integration tests that failed under load** (developers only). The guard reads every process above the test
|
||||
harness too, the test host among them, and under a full `build.ps1 check` the test host is still starting its other
|
||||
test classes: a module it released while the guard read its list refused the injection (`ModuleScanFailed`, and
|
||||
`ProcessUnreadable` on 2026-10-19). The drain suite asks the guard again on those two reasons, four times at most;
|
||||
the pause case, which once read the writer still starting, waits for it to be ready; and every injection test waits
|
||||
for the harness's own "presenting" line instead of 800 ms (`tests/Shared/HarnessReady.cs`).
|
||||
@@ -0,0 +1,26 @@
|
||||
<!-- Moved from CHANGELOG.md's [Unreleased] when 0.1.0-beta.28 was cut, 2026-10-20 (D66). CHANGELOG.md lists every release. -->
|
||||
|
||||
## [0.1.0-beta.28] - 2026-10-20
|
||||
|
||||
**The twenty-eighth pre-release: the Dashboard shows every game being recorded.** The same unsigned installer: verify
|
||||
its hash against `SHA256SUMS.txt`, then *More info → Run anyway*.
|
||||
|
||||
**Updating from `0.1.0-beta.27`:** Help ▸ Check for updates, then *Restart to update* with no game running. Nothing is
|
||||
shown for you to accept again (the Disclaimer stays 2.11, the Privacy Policy 2.12), the ledger stays at schema 21, and
|
||||
no game is read again: the detection rules (`2026.10.4`) are beta.27's. Only the App changes; the capture agent and
|
||||
what it records are beta.27's.
|
||||
|
||||
### Added
|
||||
|
||||
- **The Dashboard shows every game being recorded.** Two games running at once are two sessions, and until now the
|
||||
Dashboard's *Live capture* card showed one of them — a measured one first — while the other appeared only as
|
||||
*Running sessions: 2*. Each running game now has its own card, side by side, with its own frame rate, settings,
|
||||
elapsed time and memory, or why it is recorded without being measured; measured games come first, and the title
|
||||
says how many games are being recorded (*2 games recording*). In en/vi/ja (ja marked for review).
|
||||
|
||||
### Fixed
|
||||
|
||||
- **A native injection test that failed under load** (developers only). Two `fl_guard_test` cases — the OpenGL hook,
|
||||
and a swap chain on a real window — waited 4 seconds for twenty frames, and on a loaded CI runner (the suite took
|
||||
115 s) the OpenGL hook, installed, had recorded none. They now wait up to 12 seconds, the harness presenting for 16,
|
||||
and a failure says the writer's state.
|
||||
@@ -0,0 +1,58 @@
|
||||
# HANDOFF history — 0.1.0-beta.23
|
||||
|
||||
*Moved verbatim from `docs/HANDOFF.md` when 0.1.0-beta.24 was cut, 2026-10-19 (owner decision D66); `docs/HANDOFF.md` §How this file is split lists every part. Nothing below was edited, so its "below" and "above" point inside the original file.*
|
||||
|
||||
## **START HERE** — 2026-10-14, 0.1.0-beta.23: a game's artwork, pages that do not freeze, the documents that drifted
|
||||
|
||||
*Status is `CHANGELOG.md` `[0.1.0-beta.23]`; this is what no other file carries.* The owner, 2026-10-14: "Bạn phân tích
|
||||
và lên plan cho phần tiếp theo gồm những nội dung sau: 1. Thêm ảnh bìa/hero/cover của game từ các nền tảng đó - Đặt trong
|
||||
detail của game. (Nếu được); Tuỳ chọn: có thể sync màu cùa cover với màu của detail; 2. Cập nhật, sync docs; 3. Kiểm tra
|
||||
hiệu suất khi chuyển giữa các tab (nếu có vấn đề hiệu năng)" — then the whole train to the release without asking again.
|
||||
On top of #308 (PR-1): #309 (the pages, measured first), #310 (the artwork), #311 (the drift), then this release.
|
||||
|
||||
**Decisions:**
|
||||
|
||||
- **D60 — a game's artwork is what is already on the PC.** The image the user chose (*Edit… ▸ Choose image…*), else
|
||||
what the Steam or GOG GALAXY app keeps for the game it installed — found through the stores' own records as Play finds
|
||||
them (`StoreRecords.Owning`, never the row's platform alone). Nothing is downloaded: `privacy.online_metadata` stays
|
||||
reserved. A chosen image is a PNG copy, `<data>\covers\game-<id>-<unix ms>.png`, named relative in `cover_path`; only
|
||||
those names are followed — never a rooted, share or `..` path, never through a junction or a symbolic link, because a
|
||||
viewer's copy of a ledger may come from anywhere (D52).
|
||||
- **D61 — the band takes the artwork's colour as far as every text on it reads**: primary and secondary 4.5:1, tertiary
|
||||
3:1, the pills' and the warning's text 4.5:1 on their own fills; at most 30 % on the dark theme, 22 % on the light. On
|
||||
by default (the owner's choice); never in high contrast; it follows a theme switch by resource reference.
|
||||
- **The pages' speed was judged by a bar written before the first measurement** (`spike-notes` §21): fix what keeps the
|
||||
UI thread busy 50 ms or more, can block on I/O, or grows with each visit. Recorded, not fixed: page builds of 85–370 ms,
|
||||
and **the library grid (275 ms at 48 games) — non-virtualizing by the beta.11 decision; a virtualizing one changes the
|
||||
page's look, which is the owner's call** *(answered 2026-10-15: it stays as it is — §After the release below)*; no
|
||||
`sessions.started_at` index (a schema version locks out every earlier
|
||||
build, and nothing measured asked for it).
|
||||
- `LIST_GAME_TESTED`: the Everhex Demo row and the corrected Vulkan sentence, approved by the owner under D35.
|
||||
|
||||
**Traps met on the way:**
|
||||
|
||||
- **Microsoft.Data.Sqlite completes its "async" calls synchronously**: after a ledger read, `ConfigureAwait(false)` is
|
||||
still on the UI thread — the session decode, the sorts and the stutter detection all ran there (`16_WPFUI_SYNTAX`
|
||||
§Gotchas).
|
||||
- **A transient view model that is `IDisposable` lives until the App exits** (the root container keeps it), and every
|
||||
Dashboard ever opened stayed subscribed. FR-3.8's "Session saved" lived in that view model and reached every page only
|
||||
through the leak — it is `Services.SessionNotices` now.
|
||||
- **A `ui:Image` given a `Style` of its own that is not based on `DefaultImageStyle` has no template** and draws nothing
|
||||
in the place it takes. Only a render showed it; `AccessibilityTests.NoStyleOfAWpfUiControlLeavesOutItsTemplate`
|
||||
refuses it now.
|
||||
- **A page just navigated to is mid-fade**: a `RenderTargetBitmap` of it reads every colour washed out unless the
|
||||
presenter's `Transition` is `None`.
|
||||
- **The Bash tool's heredocs halve backslashes**: `covers\game-` became an invalid C# escape, and `\r\n` in a Python
|
||||
heredoc became real line breaks. Write such files with the editor tools.
|
||||
- **`Directory.Delete(…, recursive: true)` over a junction throws without elevation** (it asks Windows to unmount a
|
||||
volume, and the link is removed anyway): a test deletes its junction itself first.
|
||||
|
||||
**Owner-only, added to the list below:** item 19 — **passed 2026-10-15**.
|
||||
|
||||
**After the release (owner, 2026-10-15):** "Item 19 hiện đã đạt 100% yêu cầu. Phần chip sẽ đi kèm với phiên bản tiếp
|
||||
theo. Bạn có thể cập nhật và đóng phiên, thư viện vẫn giữ như cũ." — item 19 passed; the chip the release tree's local
|
||||
gate left goes with the next pre-release (`fl_guard`'s native-log test, red under load: after the stop, the last
|
||||
`UNHOOK_RESTORED` lines were not in the file within its 10-second wait — known since beta.9, and no native code changed
|
||||
in beta.23; green on the re-run); and **the library grid stays as it is**: the beta.11 decision
|
||||
(`Controls/UniformWrapPanel`, non-virtualizing — cards an equal share of the width, each row as tall as its tallest
|
||||
card) holds, at 275 ms for 48 games (`spike-notes` §21). Recorded with no release: nothing a user runs changed.
|
||||
@@ -0,0 +1,70 @@
|
||||
# HANDOFF history — 0.1.0-beta.24
|
||||
|
||||
*Moved verbatim from `docs/HANDOFF.md` when 0.1.0-beta.25 was cut, 2026-10-19 (owner decision D66); `docs/HANDOFF.md` §How this file is split lists every part. Nothing below was edited, so its "below" and "above" point inside the original file.*
|
||||
|
||||
## **START HERE** — 2026-10-19, 0.1.0-beta.24: every frame-generation state, the NVIDIA App's quality mode, which DLSS ran, SonarCloud, the documents split
|
||||
|
||||
*Status is `docs/changelog/0.1.0-beta.24.md`; this is what no other file carries.* The owner, 2026-10-19: "Bạn xem xét,
|
||||
đánh giá và lên plan cho bản beta mới với những nội dung như sau:" — six items: the mix of frame-generation modes inside
|
||||
one session, shown in the App; the upscaler's quality mode (Ultra Performance … DLAA, FSR's too) only when captured, the
|
||||
NVIDIA App's override as the standard where there is one; SonarCloud fixed and its false positives marked; a SonarCloud
|
||||
configuration that keeps third-party headers out; which DLSS is in use (3, 4, 4.5, 5), if it can be found; the long
|
||||
documents split — then, with the plan approved, the whole train to the release without asking again. Later the same
|
||||
day: "Bạn có thể xét tới trường framegen chỉnh trong setting in-game nếu chưa có" (the frame generation chosen in the
|
||||
game's own menu). Answers that set the decisions below, given before the plan: the mix as a share bar and a table; the
|
||||
owner marks Sonar's false positives in its UI from a list we write; all four long documents split; the override is the
|
||||
standard only where the driver confirms it applied; DLSS labels bound to evidence; FSR's mode through `ffxQuery` as a
|
||||
separate PR that may slip; owner-only items 7–11 and 13 not yet run; Dependabot #314 rebased and merged in the train.
|
||||
|
||||
**Decisions:**
|
||||
|
||||
- **D62 — the mix.** Every frame-generation state a session held, each with its own factor, Native → Displayed and its
|
||||
share of the presenting time, then *no frame generation* (only where a counted `none` is allowed) and *not
|
||||
classified*; never an average across states (CLAUDE.md rule 6, amended). Computed at finalize over the steady state's
|
||||
own five-second windows and stored (`sessions.fg_mix`, schema 0020); sessions recorded before have none and are not
|
||||
rebuilt. Above the rows, how frame generation was set — the NVIDIA App's Dynamic / Fixed from the stored driver
|
||||
profile, or the game — as configuration, never as a row. The multiplier chosen in a game's menu is not read (§2b's
|
||||
refusal stands); the measured row is its evidence.
|
||||
- **D63 — the NVIDIA App's override is the quality mode where the driver reports it applied** (`03_METRICS`
|
||||
§Upscaling, amended; `QualityResolver`, read at display time, so sessions recorded before resolve alike). Otherwise
|
||||
the mode the game passed to a hooked call; otherwise none; never the game's own value under an override.
|
||||
- **D64 — DLSS labels are evidence-bound** (`05_DETECTION` §DLSS generation): each library's version and folder class
|
||||
(`sessions.runtime_module_sources`, schema 0021 — never the path), the preset the driver reports applied, DLSS 4 /
|
||||
4.5 only from a preset or a measured multi-frame factor, DLSS 5 only as "runtime loaded".
|
||||
- **D65 — FSR's quality mode through `ffxQuery`: deferred to the next beta.** The plan allowed it to slip, and it was
|
||||
kept out of this train — a new hook on four FidelityFX modules, a hook-family bit in the shared layout, a new byte
|
||||
encoding, the stubs and the harness, on the hook path rule 5 guards — rather than written against the release.
|
||||
ACCURACY's FSR clause did not ship with it. The design stands in the plan: query → the five (mode, size) pairs → the
|
||||
mode whose size the game then dispatched. The owner asked for it as 0.1.0-beta.25 the same day.
|
||||
- **D66 — the long documents are split**, every original path kept as the index of its parts, moved byte for byte
|
||||
(`tools/docs-split-check.ps1`; `release-notes.ps1` reads `docs/changelog/<version>.md`).
|
||||
- **D67 — SonarCloud stays on Automatic Analysis** with `.sonarcloud.properties`; the by-design rules and false
|
||||
positives are listed in `13_CI_CD` §SonarCloud for the owner to mark in its UI.
|
||||
|
||||
**Measured on the owner's ledger** (a read-only SQLite backup copy — never the data folder): **the NVIDIA driver's
|
||||
`performanceMode` is in NGX's own numbering, not the profile's** — Silent Hill 2 (2026-10-13) ran under the App's Ultra
|
||||
Performance (profile value 5) and the driver reported 3; `NvidiaOverrides.DriverLine` had read it through the profile's
|
||||
table since beta.8 and dropped the mode. The same session's SR word has no `CREATED | EVALUATE` (no mode is claimed),
|
||||
its FG word applied ×6 and the session measured a ×6.0 steady state, and **none of the override's libraries carried a
|
||||
census name** — the module snapshot now records everything under `%ProgramData%\NVIDIA\NGX`. Bit 19 is set on a working
|
||||
override (Expedition 33's `0x8067F`) and bit 1 with no override at all (`0x60F`): only `PERF_MODE`, `SR_DLAA_MODE` and
|
||||
`SCALING_RATIO` say an override applied. The App's global profile stores `NGX_DLSSG_DYNAMIC_MULTI_FRAME_COUNT_MAX = 5`.
|
||||
|
||||
**Traps met on the way:**
|
||||
|
||||
- **`gh pr merge --squash --delete-branch` on a stacked PR closes the PR based on it** (#319), and a closed PR cannot be
|
||||
reopened once its head was force-pushed. Recovery: push the base back, push the head back to the SHA it closed at,
|
||||
reopen, retarget to `main`, push the rebased head, delete the base. Instead: retarget the next PR to `main` first,
|
||||
merge without `--delete-branch`, rebase the rest (`git rebase --update-refs --onto origin/main <old tip>`, in a
|
||||
temporary `git worktree` when the checkout is busy), then delete the merged branch.
|
||||
- **Dependabot closed #314 itself** after `@dependabot rebase` ("updatable in another way") and did not answer
|
||||
`@dependabot reopen`; the two analyzer versions it proposed went into the release PR by hand.
|
||||
- **SonarCloud's PR gate fails on new `cpp:S8417`** (explicit memory orders, by design): not a required check; the
|
||||
optional ignore row in `13_CI_CD` §SonarCloud stops it.
|
||||
- **A Domain.Metrics enum must be listed in `MetricEnumMirrorTests`** (mirrored or explicitly local), **every enum needs
|
||||
a zero member** (CA1008), **private consts in tests take the `_` prefix** (IDE1006 is `dotnet format`'s, not the
|
||||
build's), and **`null` literals make overloads ambiguous** across a `string?` and a record parameter.
|
||||
- **Python strings in the scratch scripts read `\N` as an escape** — a Windows path in a C# comment written through a
|
||||
Python script needs its backslashes doubled, and a Bash heredoc halves them (the beta.23 trap again).
|
||||
|
||||
**Owner-only, added to the list below:** item 20.
|
||||
@@ -0,0 +1,42 @@
|
||||
# HANDOFF history — 0.1.0-beta.25
|
||||
|
||||
*Moved verbatim from `docs/HANDOFF.md` when 0.1.0-beta.26 was cut, 2026-10-19 (owner decision D66); `docs/HANDOFF.md` §How this file is split lists every part. Nothing below was edited, so its "below" and "above" point inside the original file.*
|
||||
|
||||
## **START HERE** — 2026-10-19, 0.1.0-beta.25: FSR's quality mode
|
||||
|
||||
*Status is `docs/changelog/0.1.0-beta.25.md`; this is what no other file carries.* The owner, 2026-10-19, while the
|
||||
beta.24 train was merging: "Bạn có thể publish beta24 xong, làm phần pr9 thành beta25 luôn nếu được nhé." — publish
|
||||
beta.24, then the train's PR-9, FSR's quality mode, as beta.25. One feature PR (#325) and this release, the whole
|
||||
way without asking again.
|
||||
|
||||
**Decisions:**
|
||||
|
||||
- **D65 — FSR's quality mode through `ffxQuery`: built** (deferred from beta.24,
|
||||
[`handoff/history/0.1.0-beta.24.md`](handoff/history/0.1.0-beta.24.md)). The query is hooked on the four modules
|
||||
`ffxDispatch` is, each answer the vendor returned is kept (one slot per mode), and an UPSCALE dispatch whose sizes fit
|
||||
exactly one answer names it as `0x10 + mode` (`03_METRICS` §Upscaling, `17_HOOK_ENGINE` §Hook inventory). **One rule
|
||||
the plan did not have:** a session, a segment or the live window names FSR's mode only when no FSR frame was rendered
|
||||
at a size no named frame has (`Domain.Metrics.QualityByte`). Without it a dynamic-resolution session whose top of
|
||||
range matched an answer would have named the mode, against the clause approved with the plan ("FSR at a dynamic
|
||||
resolution among them — no mode is shown"). The clause shipped in those words; the Disclaimer stays 2.11, as the
|
||||
accuracy statement's additions did in beta.19 and beta.20.
|
||||
|
||||
**Measured:** on the hook harness, with the vendor stub answering as the SDK documents (`fl_guard` "FSR's quality
|
||||
mode", 44 assertions): Quality named on every params record but at most one — the test allows the window's first —
|
||||
through the SDK 2.x loader by size and through the 1.1.x monolith by ratio, and no record named any other mode; the
|
||||
same five FFX cases ran five more times green. The added cost, from a copy of the two bodies built with the
|
||||
Overlay's flags (`/O2 /guard:cf /Qspectre /MT`, 20 M calls × 3, every slot holding a size and a ratio — the worst
|
||||
case): 7.6–8.2 ns per UPSCALE dispatch, 1.6 ns per query beside the trampoline. Nothing on a real title yet: item 21.
|
||||
|
||||
**Traps met on the way:**
|
||||
|
||||
- **`git rebase --update-refs` skips a branch checked out in another worktree.** The beta.25 branch sat on beta.24's
|
||||
PR-8 tip in its own worktree; the rebase of beta.24's train after its first merge left it where it was, and it was
|
||||
moved by hand (`git rebase --onto <new tip> <old tip>`) onto the release PR, then onto `main` as beta.24 merged.
|
||||
- **A new `.cs` file written as LF fails `dotnet format`'s `ENDOFLINE`** although it builds and its tests pass —
|
||||
convert it to CRLF before the gate (the checkout is CRLF).
|
||||
- **A per-frame byte is not a session's answer.** The modal of the told bytes was right for Streamline's byte and wrong
|
||||
for one that is told only on the frames whose size matches; read every surface's rule against the sentence the user
|
||||
is promised before writing the byte.
|
||||
|
||||
**Owner-only, added to the list below:** item 21.
|
||||
@@ -0,0 +1,37 @@
|
||||
# HANDOFF history — 0.1.0-beta.26
|
||||
|
||||
*Moved verbatim from `docs/HANDOFF.md` when 0.1.0-beta.27 was cut, 2026-10-20 (owner decision D66); `docs/HANDOFF.md` §How this file is split lists every part. Nothing below was edited, so its "below" and "above" point inside the original file.*
|
||||
|
||||
## **START HERE** — 2026-10-19, 0.1.0-beta.26: a ×1336 frame-generation state, fixed
|
||||
|
||||
*Status is `docs/changelog/0.1.0-beta.26.md`; this is what no other file carries.* The owner ran the installed
|
||||
beta.25 the evening it shipped and sent screenshots: "Bạn có thể thử kiểm tra kết quả (fix nếu cần), cập nhật docs,
|
||||
làm chip và trigger lại sonarcloud thử nhé." Silent Hill 2's summary listed a ×1336.0 frame-generation state; the owner
|
||||
pointed at the cause ("có khoảng thời gian đầu game đang biên dịch shader") and then: "Bạn có thể cân nhắc (nếu thực sự
|
||||
cần) bản beta26 fix lỗi nhé." It was needed: every beta.25 session of a title that compiles its shaders under a loaded
|
||||
frame-generation runtime can store such a row, and the summary and the DLSS line print it. #327 (the fix and the
|
||||
owner's runs), #328 (the SonarCloud chip — the owner marked the last six issues the same day, and `main`'s quality
|
||||
gate passes) and this release.
|
||||
|
||||
**No new owner decision.** The fix makes the window rule say what `03_METRICS` already promised ("windows with too few
|
||||
frames to read") about APPLICATION frames, not presents, and bounds the ratio at ×8 (`FgWindow.GenerationCeiling`) —
|
||||
no shipping frame generation passes ×6; the bound is raised only with a title measured above it. A stored mix is read
|
||||
by the same rule, so no session is rewritten and none keeps the row.
|
||||
|
||||
**Measured on the owner's ledger** (a read-only backup copy, decoded with the App's own loader in a scratch test): the
|
||||
×1336.0 row was Silent Hill 2's first fifteen seconds — 1,369, 4,877 and 1,303 presents with 1, 0 and 1 application
|
||||
frames per five seconds, then a 13,348 ms frame: the game compiling its shaders at start (the owner). The only stored
|
||||
value above ×8 in 60 sessions. Lies of P read no FSR mode with `ffxQuery` hooked (bit 11 in `hooks_installed_mask`):
|
||||
item 21's first branch (`spike-notes` §22).
|
||||
|
||||
**Traps met on the way:**
|
||||
|
||||
- **A row written by a released build is read by every later one.** Changing what makes a state changes nothing on a
|
||||
stored session unless its reader applies the rule too (`FgMixRecord.Parse`); the row would keep the old meaning.
|
||||
- **A session's timeline is one scratch test away**: `SessionSeriesLoader` over a ledger copy prints presents,
|
||||
generated and application frames per five seconds (a `PagesLoadTests` partial, never committed). Decoding the blobs
|
||||
by hand is not needed.
|
||||
- **SonarCloud's PR analysis lists only issues new in the PR**: whether a change clears a finding on `main` shows only
|
||||
in `main`'s next analysis.
|
||||
|
||||
**Owner-only:** items 20 and 21 annotated (`spike-notes` §22); nothing added.
|
||||
@@ -0,0 +1,49 @@
|
||||
# HANDOFF history — 0.1.0-beta.27
|
||||
|
||||
*Moved verbatim from `docs/HANDOFF.md` when 0.1.0-beta.28 was cut, 2026-10-20 (owner decision D66); `docs/HANDOFF.md` §How this file is split lists every part. Nothing below was edited, so its "below" and "above" point inside the original file.*
|
||||
|
||||
## **START HERE** — 2026-10-20, 0.1.0-beta.27: the owner's eight sessions of 2026-10-20
|
||||
|
||||
*Status is `docs/changelog/0.1.0-beta.27.md`; this is what no other file carries.* The owner ran the installed
|
||||
beta.26 the morning after it shipped: "Bạn có thể kiểm tra kết quả ở khoảng 8 kết quả gần nhất. Sửa luôn 2 test flake
|
||||
luôn trong phiên này và fix bug, publish bản mới nếu có bug." — and, mid-way: "1. cyberpunk 2077 là switch in-game.
|
||||
2. Fix bug mở xem 1 session nhiều lần ra nhiều cửa sổ." — then, on the Steam hand-off: "bạn có thể lựa chọn: note vào
|
||||
giao diện UI là các game trên Steam sẽ tự trigger Steam trước / Thêm Setting cố định trên game Steam là luôn chạy qua
|
||||
steam client". #330 (six fixes, the Steam note, the two flaky tests, `spike-notes` §23) and this release.
|
||||
|
||||
**No new owner decision.** Each fix makes the code do what a document already said: a state is a frame generation's
|
||||
whole multiplier (`03_METRICS` §The mix), the driver's report is the session's and not the dead pid's (§The
|
||||
driver-reported rung), a game started again is recorded (`04_CAPTURE`, beta.15) — after a launch too —, a summary is
|
||||
one window, the display sizes are the ones seen.
|
||||
|
||||
**The owner's two ways for Steam games, and the one taken.** The owner offered a note in the UI or a fixed rule that
|
||||
Steam's games always go through the Steam client, and left the choice open. The note was taken (`08_UI` §Games, Play):
|
||||
the rule would have cost what *Start directly* exists for — three of the five Steam games started directly on
|
||||
2026-10-20 ran and were measured from their first frame, and a Vulkan game is measured only when FrameLedger starts it
|
||||
(Everhex Demo, a Steam game). Not every Steam game hands itself to Steam: Lies of P did, Expedition 33 closed instead.
|
||||
|
||||
**One question for the owner, not taken:** the crash safety counts a direct start's early exit — Lies of P handing
|
||||
itself to Steam, Expedition 33 closing within five seconds even unhooked — and two such starts turn hooking off for
|
||||
the game (`19_SAFETY` §Crash & stability safety, measured `spike-notes` §23). The policy cannot tell a hand-off from
|
||||
the hang it exists for, so it stands, and users are told to start such a game through its store. An exemption — an
|
||||
exit followed by the same executable within seconds — would loosen a safety rule and is the owner's to decide.
|
||||
|
||||
**Measured on the owner's ledger** (a read-only backup copy, the App's own loader in a scratch test): of 70 sessions,
|
||||
the ×2.52 row was the only stored state between two multipliers; none of the 14 sessions the driver answered kept
|
||||
`CREATED | EVALUATE` (Expedition 33: `0x8067F` while it ran on 2026-09-06, `0x8007F` stored); two Lies of P and three
|
||||
Dark Souls III sessions stored no window size.
|
||||
|
||||
**Traps met on the way:**
|
||||
|
||||
- **A probe taken after the target exits is not the session's.** NVIDIA's driver still answers for a dead pid, with
|
||||
the bits that say a feature ran cleared; any per-process question asked at a session's end must check that the game
|
||||
still lives (`CaptureSession`'s last snapshot), or the last answer erases the session's.
|
||||
- **A launch's own process reaches the watcher after the launch began**, so it lands among the processes turned away
|
||||
"one at a time"; whatever acts on those must leave out the launch's own pids (`Running.Targets`).
|
||||
- **The logs are the timeline of what the owner did**: `ui-*.log`'s `play:` lines say *through the agent* (Start
|
||||
directly) or *through steam*; `agent-*.log` has every session's end, a discarded one included — the ledger keeps no
|
||||
row for it. A hooking switch the user flips leaves no line: say what the logs show, not why hooking was off.
|
||||
- **Decode the windows before naming a cause**: the ×2.52 windows' runs — 251 application frames followed by one
|
||||
generated frame, 270 by two — showed the stepping at a glance.
|
||||
|
||||
**Owner-only:** items 20 and 21 annotated (§23); item 22 added.
|
||||
@@ -45,3 +45,5 @@ Each section below lives in its own file under `docs/spike-notes/`, moved verbat
|
||||
| §19 | Anti-cheat beside the executable — Wuthering Waves (2026-10-13, beta.21, owner decision D58) | [`spike-notes/19-wuthering-waves.md`](spike-notes/19-wuthering-waves.md) |
|
||||
| §20 | The launcher in front of four itch installs is malware (2026-10-13, beta.21, owner decision D57) | [`spike-notes/20-itch-malware.md`](spike-notes/20-itch-malware.md) |
|
||||
| §21 | Opening pages and switching tabs in the App (2026-10-14, beta.23) | [`spike-notes/21-app-pages-and-tabs.md`](spike-notes/21-app-pages-and-tabs.md) |
|
||||
| §22 | The owner's runs of beta.24 and beta.25 on real hardware (2026-10-19) | [`spike-notes/22-owner-runs-2026-10-19.md`](spike-notes/22-owner-runs-2026-10-19.md) |
|
||||
| §23 | The owner's runs of beta.26 on real hardware (2026-10-20) | [`spike-notes/23-owner-runs-2026-10-20.md`](spike-notes/23-owner-runs-2026-10-20.md) |
|
||||
@@ -0,0 +1,57 @@
|
||||
## 22 · The owner's runs of beta.24 and beta.25 on real hardware *(2026-10-19)*
|
||||
|
||||
The owner ran the installed 0.1.0-beta.25 the evening it shipped and sent five screenshots: Silent Hill 2's session
|
||||
summary and game page (21:33 local time) and Lies of P's summary (21:47). The numbers below are read from those and from a
|
||||
read-only SQLite backup copy of the ledger (sessions 60 and 61) — never the data folder. Dev PC: i7-14700KF, RTX 5080,
|
||||
NVIDIA driver 32.0.16.1742, 2560×1440 at 240 Hz.
|
||||
|
||||
### Silent Hill 2 — owner-only items 20(a) and 20(c)
|
||||
|
||||
Unreal Engine 5.1, Streamline 2.4.0. The NVIDIA App's profile for the game: DLSS override (preset L, Ultra
|
||||
Performance); Frame Generation override (×6, preset B, *Dynamic*, target max refresh rate); Streamline DLSS override.
|
||||
|
||||
- **20(a), how frame generation was set:** *Set in the NVIDIA App: Dynamic, up to ×6, target: max refresh rate* — the
|
||||
App's own words. `NGX_DLSSG_DYNAMIC_MULTI_FRAME_COUNT_MAX` 5 read as "up to ×6" and the automatic target as "max
|
||||
refresh rate" stand on one title.
|
||||
- **The mix** under Dynamic multi frame generation: ×2.0 17.70 % (111.83 → 225.83 FPS, 35 s), ×3.0 21.60 % (95.75 →
|
||||
287.18, 42.7 s, the steady state), ×6.1 7.59 % (23.20 → 140.53, 15 s), no frame generation 37.94 % (80.08 FPS, 75 s),
|
||||
not classified 10.12 % (20 s) — and **×1336.0, 5.06 %, 0.20 → 267.20 FPS, 10 s: a defect.** Its two windows held one
|
||||
application-frame token each against 1,336 presents each. They are the session's first fifteen seconds, read from the
|
||||
ledger copy's frames five seconds at a time: 1,369, 4,877 and 1,303 presents with 1, 0 and 1 application frames, then
|
||||
no present for five seconds and one frame of 13,348 ms — Silent Hill 2 compiling its shaders at start (the owner,
|
||||
2026-10-19; the PSO hook was not installed in this session, so no PSO count confirms it). After it, 75 s of menus at
|
||||
~97 FPS with no frame generation, a 3-second stall, then play at ×2 and ×3. A window needed eight presents
|
||||
and one token, so the ratio of one token was the presents themselves, and the steady state's own rule would have
|
||||
picked it had it lasted longest. The DLSS line then cited it: *DLSS 4.5 (a ×1336.0 frame-generation state)*. Fixed in
|
||||
beta.26 (`03_METRICS` §The mix): a window is read only with eight application frames and a ratio up to ×8
|
||||
(`FgWindow.GenerationCeiling`), a session or live ratio that held above it is refused as `beyond_generation`, and a
|
||||
stored mix is read by the same rule — this session's ten seconds join *not classified* and the DLSS line cites ×6.1.
|
||||
Of the 60 sessions in the ledger copy, this row was the only stored value above ×8.
|
||||
- **20(c), what the override loads:** the summary's *Loaded* line lists `160_E658700.bin` 310.9.16.0 and
|
||||
`1B0_E658703.dll` 2.14.16.0 from the NVIDIA driver's NGX folder — no census name, which is why the DLSS line names no
|
||||
library. Which feature each serves is not established: 310.9.16 is a DLSS build number of the 4.5 generation, and
|
||||
2.14.16 reads as a Streamline version beside the profile's *Streamline DLSS override*.
|
||||
- The driver line: *DLSS DLL chosen by the driver · preset L · Ultra Performance · Frame Generation override (×6)* —
|
||||
Ultra Performance from the report's 3, NGX's numbering (beta.24's correction, now on a second session). The header
|
||||
reads *Upscaler not identified · N/A*: the driver's super-resolution word has no `CREATED | EVALUATE`, as on
|
||||
2026-10-13, so no quality mode is claimed (D63's rule).
|
||||
|
||||
### Lies of P — owner-only item 21
|
||||
|
||||
Unreal Engine 4; `amd_fidelityfx_dx12.dll` 1.0.1.37507 (the SDK 1.1.x monolith) and `nvngx_dlss.dll` 3.7.0 loaded; FSR
|
||||
chosen in the game's menu, its frame generation on.
|
||||
|
||||
- **The header reads *FSR 3 · 1707×961 → 2560×1440* — no mode.** The decision table's first branch. The query WAS
|
||||
hooked: `hooks_installed_mask` 0x83F carries `FL_HOOK_UPSCALER_QUALITY` (bit 11). 1707×961 is 2560×1440 at 66.67 %
|
||||
rounded up, not the vendor's answer to the size query (1706×960, truncated), so the title did not render at a size it
|
||||
asked for; at a ratio it asked for (1.5) it would have matched within the pixel the ratio path allows. So it either
|
||||
asked before the hook was in — a plugin's first query can follow the module's load on the loading thread before the
|
||||
watchdog installs — or never asked (its own table). Nothing recorded tells the two apart, and either way the honest
|
||||
answer is no mode: D65 stays built and silent for this title, as the table said. The Performance session was not run.
|
||||
- Frame generation: ×2.0 for 87.93 % (54.64 → 109.62 FPS), not classified 12.07 % — FSR's own frame generation, named
|
||||
from its dispatches.
|
||||
- The DLSS line: *DLSS 3 (library 3.7.0) · Super Resolution 3.7.0, from the game* — the engine's DLSS plugin loads the
|
||||
library while FSR upscales; D64 names DLSS 3 from its major version, and the line says the library is the evidence.
|
||||
|
||||
Not run yet: 20(a)'s ×2/×3/×4 chosen in a game's menu and the App's *Fixed ×6*, 20(b) (Expedition 33), 20(d) (the DLSS 5
|
||||
title), 20(f)–(g), and item 21's Performance session.
|
||||
@@ -0,0 +1,86 @@
|
||||
## 23 · The owner's runs of beta.26 on real hardware *(2026-10-20)*
|
||||
|
||||
The owner ran the installed 0.1.0-beta.26 the morning after it shipped, 07:47–08:40 local time, and asked for the
|
||||
latest eight sessions to be checked (sessions 64–71). The numbers below are read from a read-only SQLite backup copy of
|
||||
the ledger, the Agent's, the App's and the Overlay's logs and Windows' Application log — never the data folder; the
|
||||
summaries were rendered from the copy by the App's own window in a scratch test. Same PC as §22 (i7-14700KF, RTX 5080,
|
||||
NVIDIA driver 617.42, 2560×1440 at 240 Hz).
|
||||
|
||||
| Session | Game, and how it was started | What it measured |
|
||||
|---|---|---|
|
||||
| 64 | Clair Obscur: Expedition 33, through Steam; the NVIDIA App's DLSS override (preset L, *Balanced*) and Frame Generation *Fixed ×6* | ×6.0 for 94.15 % (82 → 491 FPS), 5.85 % not classified; *Set in the NVIDIA App: Fixed ×6*; *DLSS 4.5 (a ×6.0 frame-generation state)*; the header *Upscaler not identified* (the driver's word, below) |
|
||||
| 65 | Lies of P, through Steam | Tier 2: hooking was off for the game |
|
||||
| 66 | Lies of P, through Steam; the game's FSR at *Performance*, its frame generation on | *FSR 3 · 1280×720 → 2560×1440*, no mode; ×2.0 for 95.36 % (59.42 → 118.98 FPS) |
|
||||
| 67 | The Witcher 3, through Steam | Tier 2: its consent was not given yet |
|
||||
| 68 | The Witcher 3 (Direct3D 12), started directly; the App's DLSS override (preset L) and *Fixed ×6* | *DLSS · 1707×960 → 2560×1440*; ×2.0 for 77.53 % (118.77 → 237.38 FPS), no frame generation 16.94 % (304 FPS), 5.54 % not classified |
|
||||
| 69 | Cyberpunk 2077, started directly; ×2, ×3 and ×4 chosen in the game's menu, no App override | ×1.9 2.13 % (186 → 353 FPS, 10 s), ×3.0 13.85 % (64 → 190, 65 s), ×4.0 66.03 % (64 → 255, 310 s), no frame generation 9.59 % (375 FPS), 8.41 % not classified; *Set in the game — no NVIDIA App frame-generation override*; *DLSS 4 (a ×4.0 frame-generation state)* |
|
||||
| 70 | Silent Hill 2, started directly, 67 s | refused `non_uniform` — the shader compilation at start (§22) is most of a 67-second session; no mix |
|
||||
| 71 | Silent Hill 2, started outside FrameLedger; the App's *Dynamic*, up to ×6 | ×2.0 27.30 %, **×2.52 2.49 %**, ×3.0 62.41 %, no frame generation 2.93 %, 4.88 % not classified |
|
||||
|
||||
### Owner-only item 20(a): the three ways frame generation is set
|
||||
|
||||
- **Chosen in the game's menu** (Cyberpunk 2077 — the owner: "cyberpunk 2077 là switch in-game"): ×2, ×3 and ×4 each
|
||||
formed a state with its own Native → Displayed, and the context line read *Set in the game*. The ×2 state was ten
|
||||
seconds at 186 → 353 FPS, read ×1.9; how long the owner held ×2 is theirs to compare.
|
||||
- **The App's *Fixed ×6*** (Expedition 33): ×6.0, in the App's own words.
|
||||
- **The App's *Dynamic*** (Silent Hill 2): ×2.0 and ×3.0 — and a ×2.52 row, below.
|
||||
- **The Witcher 3 under *Fixed ×6* presented ×2.0 throughout.** The profile and the driver's report both say the
|
||||
frame-generation override applied (×6); the game presented one generated frame per application frame for the whole
|
||||
session, VSync on at 240 Hz. The rows are what the game presented and the context line is the setting
|
||||
(`03_METRICS` §The mix), so the summary shows both. Why the override did not reach this title — its frame generation
|
||||
is DLSS 3 through Streamline 2.14.1, and the driver loaded `1B0_E658700.dll` 2.14.16.0 beside it — is not
|
||||
established.
|
||||
|
||||
### A ×2.52 state — fixed in beta.27
|
||||
|
||||
Session 71's five-second windows, decoded from the copy with the App's own loader: ×2.00 for two minutes, ×3.00 for
|
||||
three and a half, and where the *Dynamic* multiplier stepped, windows in between — at 135 s, 251 application frames
|
||||
followed by one generated frame and 270 by two (×2.53), and ×2.62, ×2.70, ×2.31 later. Three of them pooled into a
|
||||
×2.52 state for 12.8 s. Every shipping frame generation multiplies by a whole number, so a window is now a state's only
|
||||
within 10 % of a whole multiplier (`FgWindow.IsNearWholeMultiplier`, `03_METRICS` §The mix); the stored row is read by
|
||||
the same rule, and the session lists ×2.0, ×3.0, no frame generation and 7.36 % not classified. Of the 70 sessions in
|
||||
the copy, it was the only stored row between two multipliers.
|
||||
|
||||
### The driver's word lost what it said while the game ran — fixed in beta.27
|
||||
|
||||
Expedition 33's header read *Upscaler not identified*, and no NVIDIA App mode, under an override the driver line
|
||||
reports as applied (*preset L · Balanced*). Its stored super-resolution word is `0x8007F`; on 2026-09-06 the same game
|
||||
under the same kind of override read `0x8067F` while it ran (§9) — the same word with `CREATED | EVALUATE`. The loop
|
||||
asked the driver one last time after its last drain, after the game had closed, and that answer — the driver still
|
||||
answers for the pid, with the two bits cleared — was the stored state. Of the 14 sessions in the copy in which the
|
||||
driver answered, none kept the two bits; The Witcher 3's 2026-10-04 session (DLSS through Streamline, the game's own
|
||||
library) stored `0x5` with its words marked *changed* between readings. So no stored session could read *DLSS
|
||||
(driver-reported)*, and none on an NGX-direct title could name the override's mode (D63): owner-only item 20(b) could
|
||||
not pass on any build before beta.27. Since beta.27 the driver is not asked once the game has gone, and the two bits
|
||||
stand once a reading carried them (`NgxDriverState.Merge`).
|
||||
|
||||
### Start directly, and the crash safety
|
||||
|
||||
- **Lies of P hands itself to Steam** (2026-10-19, 21:43 and 21:46, *Start directly*): the process FrameLedger started
|
||||
left within five seconds with nothing presented, and Steam started the game 1 s later. That process was turned away
|
||||
while the first session was ending ("one at a time") and never recorded — a launch never said it had ended on its
|
||||
own, so nothing turned away during one was started after it. Fixed in beta.27 (`04_CAPTURE` §Watch).
|
||||
- **Expedition 33 closes when started directly** (2026-10-20, 07:49–07:50, three starts): each process left within
|
||||
five seconds and read *crashed*, the third one refused and unhooked; no crash report and no Unreal crash folder for
|
||||
any of them. Through Steam the game ran.
|
||||
- **The crash safety counted those exits.** Each was a hooked session's early abnormal end, and two turned hooking off:
|
||||
Lies of P at 21:46:36 on 2026-10-19 (the owner switched it on again within a minute; session 61 was measured),
|
||||
Expedition 33 after its second direct start (07:49:46; the third start was refused) and again at 07:51:06 — after a
|
||||
start outside FrameLedger that closed four seconds in with one frame presented, hooked: the only early exit of the
|
||||
morning that no direct start explains. The policy cannot tell a hand-off from the hang it exists for (`19_SAFETY`
|
||||
§Crash & stability safety); `LIMITATIONS.md` §Play tells users to start such a game through its store.
|
||||
|
||||
### The rest
|
||||
|
||||
- **Display sizes**: Lies of P's two sessions and three of Dark Souls III's stored no window or monitor size. A game
|
||||
leaving exclusive full-screen closes its window while its swap chain's last word is still fresh, and the tally kept
|
||||
the mode's last sample — exclusive, no window. Fixed in beta.27 (`03_METRICS` §Display mode).
|
||||
- **The DLSS line read only *DLSS*** on The Witcher 3 under the override: the driver's copies loaded under names no
|
||||
census lists (`160_E658700.bin` 310.9.16.0, `1B0_E658700.dll` 2.14.16.0 — note `…700.dll` where Silent Hill 2 and
|
||||
Expedition 33 loaded `1B0_E658703.dll`). A line that would say only *DLSS* is not shown since beta.27; the *Loaded:*
|
||||
line prints the files.
|
||||
- **Two summary windows of one session** (the owner's screenshot): opening a session whose window is open now brings
|
||||
that window forward.
|
||||
- **Owner-only item 21** (FSR's mode on Lies of P): the *Performance* session read no mode either — the first branch on
|
||||
both. Its render size, 1280×720, is exactly the vendor's Performance size, so a query the hook met would have
|
||||
matched: the title did not ask while the hook was in. It cannot be launched by FrameLedger as the item asks.
|
||||
@@ -13,6 +13,15 @@ A value FrameLedger could not measure reads **N/A** — never 0, and never an es
|
||||
- **When frame generation was measured**, the game's own frames and the frames you saw are shown together:
|
||||
`62 → 118 FPS (×1.9 FG)`. If frame generation changed during the session (menus, loading screens, a settings change),
|
||||
the figures are for the state that lasted longest, with the share of the session it covers: `(×1.9 FG · 75%)`.
|
||||
- **The upscaler's quality mode** — Quality, Balanced, Performance, Ultra Performance, DLAA, and FSR's Native AA — is
|
||||
shown only when it is known. *· NVIDIA App* after it means the NVIDIA App overrode DLSS for this game and the NVIDIA
|
||||
driver reported that the override applied; *· NVIDIA App override* alone means it applied and its mode could not be
|
||||
settled. For FSR it is the mode the game asked AMD's library about and then rendered at; at a dynamic resolution
|
||||
none is shown.
|
||||
- **The DLSS line** names the DLSS the game ran: *DLSS 4.5* or *DLSS 4* only when the session showed it (the model
|
||||
preset the NVIDIA driver reports, or a frame-generation multiplier of ×3 and above), each DLSS library's version and
|
||||
whether it came from the game or from the graphics driver (the NVIDIA App can swap in the driver's copy), and *DLSS 5
|
||||
runtime loaded* when it was. With nothing to add to the header's *DLSS*, it is not shown.
|
||||
- **Frame generation in this session** (sessions recorded with 0.1.0-beta.24 or later) lists every frame-generation
|
||||
state the session held — `×2.0`, `×4.0`… — each with its own frame rates and its share of the time, then the time
|
||||
without frame generation, and *Not classified* for time in no state that lasted at least 10 seconds: switching,
|
||||
|
||||
+5
-4
@@ -44,10 +44,11 @@ stopped, hooking turned off — each with one button that only says you have rea
|
||||
|
||||
## Dashboard
|
||||
|
||||
- **Live capture** — the game being recorded right now: its name, **T1** (measured) or **T2** (recorded only), and the
|
||||
time so far. While it is measured: the frame rate, the resolution, the upscaler, frame generation, ray tracing, the GPU
|
||||
and CPU temperatures and the game's memory. *Attached — waiting for the first frames…* means hooking worked and the
|
||||
first frames are on their way.
|
||||
- **Live capture** — each game being recorded right now, one card per game (two games side by side, and *2 games
|
||||
recording* beside the title): its name, **T1** (measured) or **T2** (recorded only), and the time so far. While it is
|
||||
measured: the frame rate, the resolution, the upscaler, frame generation, ray tracing, the GPU and CPU temperatures and
|
||||
the game's memory. *Attached — waiting for the first frames…* means hooking worked and the first frames are on their
|
||||
way.
|
||||
- **Games tracked**, **Total playtime**, **Sessions this week**.
|
||||
- **Capture agent** — *State*, *Agent version*, *Telemetry source* (which sensor readers work on this PC: `l1` is
|
||||
Windows itself, `lhm` is LibreHardwareMonitor, `nvapi` is NVIDIA's own and only on NVIDIA cards), *Overlay build* (the
|
||||
|
||||
@@ -50,7 +50,7 @@ The link under them, *Read what the hook does and does not do*, opens the safety
|
||||
|---|---|---|
|
||||
| **Show game artwork** | A game's page shows a picture of the game: the image you chose for it (**Edit…**), or else the cover and banner the Steam or GOG GALAXY app already keeps on your PC. Nothing is downloaded; a game from another store shows a picture only once you choose one. | On |
|
||||
| **Colour the game page from its artwork** | The band at the top of a game's page takes the picture's main colour — never so strongly that a text on it gets hard to read. Off, the band keeps the plain card colour. | On |
|
||||
| **Play button** | What **Play** does, on a game's page and on each game in the library. *Through the store*: Steam or the Epic Games Launcher starts the game, GOG GALAXY runs it, and the itch app asks which copy to launch — each store's app does what it does when you start a game from it. A game no store installed, and a GOG game without GOG GALAXY, is started by FrameLedger instead; so is every game while FrameLedger itself runs as administrator, so that the game does not. *Start directly*: FrameLedger's agent starts the game, recorded from its first frame, with your standard rights; it does not start a game whose recording is off, or one that asks to run as administrator. | Through the store |
|
||||
| **Play button** | What **Play** does, on a game's page and on each game in the library. *Through the store*: Steam or the Epic Games Launcher starts the game, GOG GALAXY runs it, and the itch app asks which copy to launch — each store's app does what it does when you start a game from it. A game no store installed, and a GOG game without GOG GALAXY, is started by FrameLedger instead; so is every game while FrameLedger itself runs as administrator, so that the game does not. *Start directly*: FrameLedger's agent starts the game, recorded from its first frame, with your standard rights; it does not start a game whose recording is off, or one that asks to run as administrator. Some Steam games hand themselves to Steam when started directly — the game Steam then starts is recorded — and a few will not start outside Steam at all: start those through the store. | Through the store |
|
||||
|
||||
## Window
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ While the game runs, a notice may say *hooking refused*.
|
||||
| **Disable all hooking** is on. | Switch it off in Settings ▸ Capture. |
|
||||
| The game was already running when FrameLedger was updated. | Close the game and start it again. |
|
||||
| Hooking was switched off after the game crashed twice soon after it started. | Switch it on again in the game's page if the cause may be gone — after a driver update, for example. |
|
||||
| Hooking was switched off after **Play** started the game directly twice, and each time the game handed itself to Steam or closed at once. | Switch it on again, and set Settings ▸ Games ▸ **Play button** to *Through the store*: some Steam games will not start any other way. |
|
||||
| The game's file is gone. | If only its drive letter changed, FrameLedger follows it within about 15 seconds; otherwise **Change executable…** on the game's page. |
|
||||
| The component could not be loaded into the game. | [Report a problem](#report-a-problem). |
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ What the words on FrameLedger's screens mean, in alphabetical order. How each fi
|
||||
- **Disable all hooking** — the switch that stops every game from being hooked at once, whatever each game's own switch
|
||||
says. Sessions are still recorded.
|
||||
- **Displayed FPS** — the frames you saw, generated frames included.
|
||||
- **DLSS 4, DLSS 4.5** — NVIDIA's DLSS generations. FrameLedger names one only when the session shows it: the model
|
||||
preset the NVIDIA driver reports, or a frame-generation multiplier of ×3 and above.
|
||||
- **FG factor** — Displayed FPS divided by Native FPS, shown as `×1.9 FG`.
|
||||
- **FPS** — frames per second over the time measured.
|
||||
- **Frame generation** — the technology (DLSS Frame Generation, FSR Frame Generation) that inserts frames the game did
|
||||
@@ -36,6 +38,9 @@ What the words on FrameLedger's screens mean, in alphabetical order. How each fi
|
||||
- **Presented FPS** — every frame the game handed to Windows, shown when frame generation could not be measured, with a
|
||||
note saying whether generated frames could be among them.
|
||||
- **RAM (this game)** — the game's own memory, what Task Manager's Details tab shows as its private working set.
|
||||
- **Quality mode** — the upscaler's setting (Quality, Balanced, Performance, Ultra Performance, DLAA; FSR's Native AA
|
||||
renders at full resolution). *· NVIDIA App* marks one the NVIDIA App set for the game, which the NVIDIA driver
|
||||
reported applied.
|
||||
- **Ray tracing, Path tracing, Ray reconstruction** — read *Yes*, *No* or *N/A*. Ray tracing is measured on DirectX 12
|
||||
games; path tracing is never stated as a fact.
|
||||
- **Render scale** — the share of the screen's resolution the game drew at before upscaling. 100% means no upscaling.
|
||||
|
||||
+10
-4
@@ -12,7 +12,7 @@
|
||||
HTML comments are not part of the block.
|
||||
-->
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-10-19.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.23`** (2026-10-14), an unsigned installer built from that tag with its
|
||||
> **pre-release is `0.1.0-beta.28`** (2026-10-20), an unsigned installer built from that tag with its
|
||||
> checksums published beside it. The source holds the desktop app
|
||||
> (library, store import, charts, settings) and the background Agent, which records a session when a
|
||||
> game in the library runs (unless you switched its recording off), injects only into games you enabled
|
||||
@@ -36,9 +36,15 @@
|
||||
> was measured. Intel XeSS is **not** read (its SDK licence
|
||||
> forbids it), and neither is an upscaler compiled into the game: those read `N/A`, or "Unknown
|
||||
> upscaler" when another vendor's hook ran in the game. Vulkan and OpenGL titles read `N/A`.
|
||||
> - **Quality preset:** not reported on any title measured. The one route this software may use — the
|
||||
> DLSS options a Streamline title passes with its per-frame call — has not been seen on a real
|
||||
> title, and AMD's per-frame call carries no preset.
|
||||
> - **Quality mode:** shown only when it is known. When the NVIDIA App overrides DLSS Super Resolution for
|
||||
> the game and the NVIDIA driver reports that the override applied in the session, the override's mode is
|
||||
> shown and marked as the NVIDIA App's. Otherwise the mode the game itself passed: the DLSS options a
|
||||
> Streamline title passes with its per-frame call (not yet seen on a real title), or, for FSR through
|
||||
> AMD's FidelityFX libraries, the mode whose render size the game asked for and then rendered at. In
|
||||
> every other case — FSR at a dynamic resolution among them — no mode is shown.
|
||||
> - **DLSS version:** the version of each DLSS library the game loaded and whether it came from the game or from
|
||||
> the NVIDIA driver; "DLSS 4" or "DLSS 4.5" only when the session shows it (the model preset the driver reports,
|
||||
> or a measured multi-frame factor); DLSS 5 only as "runtime loaded".
|
||||
> - **Render → output resolution:** measured where the vendor's own per-frame call carries the render
|
||||
> size (AMD FidelityFX dispatches, and Streamline titles whose resource tags state it); `N/A` where it
|
||||
> does not: DLSS titles that bypass Streamline, Streamline titles whose tags carry no size, and Vulkan
|
||||
|
||||
+11
-5
@@ -1,6 +1,6 @@
|
||||
# FrameLedger — Disclaimer
|
||||
|
||||
**Version:** 2.10 · **Effective:** {{RELEASE_DATE}}
|
||||
**Version:** 2.11 · **Effective:** {{RELEASE_DATE}}
|
||||
|
||||
## 0. This is pre-release (beta) software
|
||||
|
||||
@@ -114,7 +114,7 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
|
||||
|
||||
<!-- accuracy-block:begin -->
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-10-19.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.23`** (2026-10-14), an unsigned installer built from that tag with its
|
||||
> **pre-release is `0.1.0-beta.28`** (2026-10-20), an unsigned installer built from that tag with its
|
||||
> checksums published beside it. The source holds the desktop app
|
||||
> (library, store import, charts, settings) and the background Agent, which records a session when a
|
||||
> game in the library runs (unless you switched its recording off), injects only into games you enabled
|
||||
@@ -138,9 +138,15 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
|
||||
> was measured. Intel XeSS is **not** read (its SDK licence
|
||||
> forbids it), and neither is an upscaler compiled into the game: those read `N/A`, or "Unknown
|
||||
> upscaler" when another vendor's hook ran in the game. Vulkan and OpenGL titles read `N/A`.
|
||||
> - **Quality preset:** not reported on any title measured. The one route this software may use — the
|
||||
> DLSS options a Streamline title passes with its per-frame call — has not been seen on a real
|
||||
> title, and AMD's per-frame call carries no preset.
|
||||
> - **Quality mode:** shown only when it is known. When the NVIDIA App overrides DLSS Super Resolution for
|
||||
> the game and the NVIDIA driver reports that the override applied in the session, the override's mode is
|
||||
> shown and marked as the NVIDIA App's. Otherwise the mode the game itself passed: the DLSS options a
|
||||
> Streamline title passes with its per-frame call (not yet seen on a real title), or, for FSR through
|
||||
> AMD's FidelityFX libraries, the mode whose render size the game asked for and then rendered at. In
|
||||
> every other case — FSR at a dynamic resolution among them — no mode is shown.
|
||||
> - **DLSS version:** the version of each DLSS library the game loaded and whether it came from the game or from
|
||||
> the NVIDIA driver; "DLSS 4" or "DLSS 4.5" only when the session shows it (the model preset the driver reports,
|
||||
> or a measured multi-frame factor); DLSS 5 only as "runtime loaded".
|
||||
> - **Render → output resolution:** measured where the vendor's own per-frame call carries the render
|
||||
> size (AMD FidelityFX dispatches, and Streamline titles whose resource tags state it); `N/A` where it
|
||||
> does not: DLSS titles that bypass Streamline, Streamline titles whose tags carry no size, and Vulkan
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# FrameLedger — Privacy Policy
|
||||
|
||||
**Version:** 2.11 · **Effective:** {{RELEASE_DATE}}
|
||||
**Version:** 2.12 · **Effective:** {{RELEASE_DATE}}
|
||||
|
||||
**Short version: everything stays on your PC. FrameLedger has no accounts, no telemetry, no analytics, and never uploads your data anywhere.**
|
||||
|
||||
@@ -42,7 +42,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; the parameters your games pass to the graphics APIs it intercepts (presentation, upscaling, ray tracing, pipeline creation); 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 (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 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) — 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 — 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 — 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; how busy the processor is and how much memory is in use, from Windows' own counters; the crash reports Windows keeps in its Application log about a tracked game's executable while it ran (to tell a crash from an ordinary exit — the reports are read, never sent anywhere); and the names of the programs a tracked game starts, so that a game's own crash reporter is recognised.
|
||||
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; the parameters your games pass to the graphics APIs it intercepts (presentation, upscaling, ray tracing, pipeline creation); 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 and frame-generation 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 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) — 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 — 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 — 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; how busy the processor is and how much memory is in use, from Windows' own counters; the crash reports Windows keeps in its Application log about a tracked game's executable while it ran (to tell a crash from an ordinary exit — the reports are read, never sent anywhere); and the names of the programs a tracked game starts, so that a game's own crash reporter is recognised.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@@ -15,44 +15,62 @@
|
||||
<StackPanel Style="{StaticResource PageRoot}">
|
||||
<ui:TextBlock FontTypography="Title" Text="{x:Static vm:DashboardViewModel.Header}" />
|
||||
|
||||
<!-- 08_UI §Dashboard: the live capture card, fed by SessionStarted / SessionProgress / SessionHeld / SessionCompleted.
|
||||
A session recorded without measuring (Tier 2) shows why, and no readout (2026-09-23). -->
|
||||
<ui:Card Margin="0,16,0,0" HorizontalAlignment="Stretch">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ui:TextBlock FontTypography="Subtitle" Text="{x:Static vm:LiveCaptureViewModel.Header}" />
|
||||
<Border Style="{StaticResource Pill}" Visibility="{Binding ViewModel.Live.IsActive, Converter={StaticResource BoolToVis}}">
|
||||
<TextBlock Foreground="{DynamicResource TextFillColorPrimaryBrush}" Text="{Binding ViewModel.Live.TierText}" />
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<ui:TextBlock Margin="0,8,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static vm:LiveCaptureViewModel.IdleText}"
|
||||
Visibility="{Binding ViewModel.Live.IsActive, Converter={StaticResource InverseBoolToVis}}" />
|
||||
<StackPanel Margin="0,8,0,0" Visibility="{Binding ViewModel.Live.IsActive, Converter={StaticResource BoolToVis}}">
|
||||
<ui:TextBlock FontTypography="BodyStrong" Text="{Binding ViewModel.Live.GameName}" />
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{Binding ViewModel.Live.ElapsedText}" />
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{x:Static vm:LiveCaptureViewModel.WaitingText}"
|
||||
Visibility="{Binding ViewModel.Live.WaitingForFrames, Converter={StaticResource BoolToVis}}" />
|
||||
<StackPanel Margin="0,8,0,0" Visibility="{Binding ViewModel.Live.IsHeld, Converter={StaticResource BoolToVis}}">
|
||||
<ui:TextBlock Text="{x:Static vm:LiveCaptureViewModel.HeldText}" TextWrapping="Wrap" />
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{Binding ViewModel.Live.HeldReason}" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
<controls:FpsReadout Margin="0,8,0,0" Model="{Binding ViewModel.Live.Readout}"
|
||||
Visibility="{Binding ViewModel.Live.IsHeld, Converter={StaticResource InverseBoolToVis}}" />
|
||||
<WrapPanel Margin="0,8,0,0">
|
||||
<ui:TextBlock Margin="0,0,16,0" Text="{Binding ViewModel.Live.ResolutionText}" />
|
||||
<ui:TextBlock Margin="0,0,16,0" Text="{Binding ViewModel.Live.UpscalerText}" />
|
||||
<ui:TextBlock Margin="0,0,16,0" Text="{Binding ViewModel.Live.FgText}" />
|
||||
<Border Style="{StaticResource Pill}" Margin="0,0,16,0" Background="{DynamicResource AccentFillColorDefaultBrush}" BorderThickness="0"
|
||||
Visibility="{Binding ViewModel.Live.RtActive, Converter={StaticResource BoolToVis}}">
|
||||
<TextBlock Foreground="{DynamicResource TextOnAccentFillColorPrimaryBrush}" Text="{x:Static vm:LiveCaptureViewModel.RtOnText}" />
|
||||
</Border>
|
||||
<ui:TextBlock Margin="0,0,16,0" Style="{StaticResource SecondaryText}" Text="{Binding ViewModel.Live.GpuTempText}" />
|
||||
<ui:TextBlock Margin="0,0,16,0" Style="{StaticResource SecondaryText}" Text="{Binding ViewModel.Live.CpuTempText}" />
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{Binding ViewModel.Live.MemoryText}" />
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
<!-- 08_UI §Dashboard: the live capture cards — one per running session since beta.28 (the owner, 2026-10-20: two or
|
||||
more games at once), hooked sessions first — fed by SessionStarted / SessionProgress / SessionHeld /
|
||||
SessionCompleted. A session recorded without measuring (Tier 2) shows why, and no readout (2026-09-23). -->
|
||||
<StackPanel Margin="0,16,0,0" Orientation="Horizontal">
|
||||
<ui:TextBlock FontTypography="Subtitle" Text="{x:Static vm:LiveCaptureViewModel.Header}" />
|
||||
<Border Style="{StaticResource Pill}" Visibility="{Binding ViewModel.LiveCountText, Converter={StaticResource NullToCollapsed}}">
|
||||
<TextBlock Foreground="{DynamicResource TextFillColorPrimaryBrush}" Text="{Binding ViewModel.LiveCountText}" />
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<ui:Card Margin="0,8,0,0" HorizontalAlignment="Stretch" Visibility="{Binding ViewModel.LiveIdle, Converter={StaticResource BoolToVis}}">
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{x:Static vm:LiveCaptureViewModel.IdleText}" />
|
||||
</ui:Card>
|
||||
<!-- The right margin of the last column is taken back here, so the cards line up with the cards below. -->
|
||||
<ItemsControl Margin="0,0,-8,0" Focusable="False" ItemsSource="{Binding ViewModel.LiveCards}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<UniformGrid Columns="{Binding ViewModel.LiveColumns}" />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate DataType="{x:Type vm:LiveCaptureViewModel}">
|
||||
<ui:Card Margin="0,8,8,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Top"
|
||||
AutomationProperties.Name="{Binding GameName}">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ui:TextBlock FontTypography="BodyStrong" Text="{Binding GameName}" TextTrimming="CharacterEllipsis" />
|
||||
<Border Style="{StaticResource Pill}" Visibility="{Binding TierText, Converter={StaticResource NullToCollapsed}}">
|
||||
<TextBlock Foreground="{DynamicResource TextFillColorPrimaryBrush}" Text="{Binding TierText}" />
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{Binding ElapsedText}" />
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{x:Static vm:LiveCaptureViewModel.WaitingText}"
|
||||
Visibility="{Binding WaitingForFrames, Converter={StaticResource BoolToVis}}" />
|
||||
<StackPanel Margin="0,8,0,0" Visibility="{Binding IsHeld, Converter={StaticResource BoolToVis}}">
|
||||
<ui:TextBlock Text="{x:Static vm:LiveCaptureViewModel.HeldText}" TextWrapping="Wrap" />
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{Binding HeldReason}" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
<controls:FpsReadout Margin="0,8,0,0" Model="{Binding Readout}"
|
||||
Visibility="{Binding IsHeld, Converter={StaticResource InverseBoolToVis}}" />
|
||||
<WrapPanel Margin="0,8,0,0">
|
||||
<ui:TextBlock Margin="0,0,16,0" Text="{Binding ResolutionText}" />
|
||||
<ui:TextBlock Margin="0,0,16,0" Text="{Binding UpscalerText}" />
|
||||
<ui:TextBlock Margin="0,0,16,0" Text="{Binding FgText}" />
|
||||
<Border Style="{StaticResource Pill}" Margin="0,0,16,0" Background="{DynamicResource AccentFillColorDefaultBrush}" BorderThickness="0"
|
||||
Visibility="{Binding RtActive, Converter={StaticResource BoolToVis}}">
|
||||
<TextBlock Foreground="{DynamicResource TextOnAccentFillColorPrimaryBrush}" Text="{x:Static vm:LiveCaptureViewModel.RtOnText}" />
|
||||
</Border>
|
||||
<ui:TextBlock Margin="0,0,16,0" Style="{StaticResource SecondaryText}" Text="{Binding GpuTempText}" />
|
||||
<ui:TextBlock Margin="0,0,16,0" Style="{StaticResource SecondaryText}" Text="{Binding CpuTempText}" />
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{Binding MemoryText}" />
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
</ui:Card>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
|
||||
<!-- totals strip -->
|
||||
<UniformGrid Margin="0,12,0,0" Columns="3">
|
||||
|
||||
@@ -0,0 +1,250 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Text.Json;
|
||||
using FrameLedger.Application.Capture;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using FrameLedger.Application.Recording;
|
||||
using FrameLedger.Domain.Detection;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
|
||||
/// <summary>
|
||||
/// The DLSS a session ran, in words (beta.24, owner decision D64; <c>05_DETECTION</c> §DLSS generation): each DLSS
|
||||
/// library's version and where it was loaded from, the model preset the NVIDIA driver reports, and a generation only
|
||||
/// where the session shows one (<see cref="DlssGeneration"/>, strongest evidence first). DLSS 5 only as "runtime loaded".
|
||||
/// </summary>
|
||||
/// <remarks>Read from what the row stores; nothing here infers a generation from a version that does not name one.</remarks>
|
||||
[SuppressMessage("Performance", "CA1863:Use 'CompositeFormat'", Justification = "the format strings are resources that follow the UI culture, which changes at runtime")]
|
||||
public static class DlssText
|
||||
{
|
||||
private const string _superResolutionFile = "nvngx_dlss.dll";
|
||||
private const string _rayReconstructionFile = "nvngx_dlssd.dll";
|
||||
private const string _frameGenerationFile = "nvngx_dlssg.dll";
|
||||
private const string _neuralRenderingFile = "nvngx_dlssnr.dll";
|
||||
private static readonly CultureInfo _inv = CultureInfo.InvariantCulture;
|
||||
|
||||
/// <summary>What the row observed about DLSS.</summary>
|
||||
public static DlssEvidence Evidence(SessionRow row)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(row);
|
||||
Dictionary<string, string?> modules = Modules(row.RuntimeModulesJson);
|
||||
return new DlssEvidence(VersionOf(modules, _superResolutionFile), VersionOf(modules, _frameGenerationFile), ReportedPreset(row), LargestFrameGenerationFactor(row));
|
||||
}
|
||||
|
||||
/// <summary>The generation the row establishes, as a label with what it rests on (<c>DLSS 4.5 (preset L)</c>), or null.</summary>
|
||||
public static string? Label(SessionRow row)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(row);
|
||||
DlssEvidence evidence = Evidence(row);
|
||||
return DlssGeneration.Of(evidence) is { } generation ? LabelOf(generation, evidence) : null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The summary's DLSS line: the label first when one is established, then each library with its version, where it was
|
||||
/// loaded from and — for super resolution — the preset the driver reports, then DLSS 5's runtime when it was loaded.
|
||||
/// Null for a session with no DLSS library, no DLSS upscaler and no DLSS Frame Generation — and, since beta.27, where it
|
||||
/// would say only "DLSS": the header already names the upscaler. The NVIDIA App's override loads its libraries under
|
||||
/// names no census lists (Witcher 3, 2026-10-20: <c>160_E658700.bin</c>, which the loaded-libraries line prints), and an
|
||||
/// unreadable module list names none.
|
||||
/// </summary>
|
||||
public static string? Line(SessionRow row)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(row);
|
||||
Dictionary<string, string?> modules = Modules(row.RuntimeModulesJson);
|
||||
Dictionary<string, string?> sources = Modules(row.RuntimeModuleSourcesJson);
|
||||
bool any = modules.Keys.Any(static k => k.StartsWith("nvngx_dlss", StringComparison.OrdinalIgnoreCase))
|
||||
|| Is(row.Upscaler, "dlss") || Is(row.UpscalerDriverReported, "dlss") || Is(row.FgMode, "dlssg");
|
||||
if (!any)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
DlssEvidence evidence = Evidence(row);
|
||||
string? label = DlssGeneration.Of(evidence) is { } generation ? LabelOf(generation, evidence) : null;
|
||||
var parts = new List<string> { label ?? "DLSS" };
|
||||
AddLibrary(parts, modules, sources, _superResolutionFile, Strings.Dlss_Feature_SuperResolution, PresetText(evidence.Preset));
|
||||
AddLibrary(parts, modules, sources, _rayReconstructionFile, Strings.Dlss_Feature_RayReconstruction, detail: null);
|
||||
AddLibrary(parts, modules, sources, _frameGenerationFile, Strings.Dlss_Feature_FrameGeneration, detail: null);
|
||||
if (!modules.ContainsKey(_superResolutionFile) && PresetText(evidence.Preset) is { } preset)
|
||||
{
|
||||
parts.Add(preset);
|
||||
}
|
||||
|
||||
if (modules.ContainsKey(_neuralRenderingFile))
|
||||
{
|
||||
parts.Add(Strings.Dlss_NeuralRendering_Loaded);
|
||||
}
|
||||
|
||||
return label is null && parts.Count == 1 ? null : string.Join(" · ", parts);
|
||||
}
|
||||
|
||||
/// <summary>The CSV header's line, InvariantCulture: the generation and its basis, each DLSS library with its version and source, the preset.</summary>
|
||||
public static string ExportLine(SessionRow row)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(row);
|
||||
Dictionary<string, string?> modules = Modules(row.RuntimeModulesJson);
|
||||
Dictionary<string, string?> sources = Modules(row.RuntimeModuleSourcesJson);
|
||||
DlssEvidence evidence = Evidence(row);
|
||||
var parts = new List<string>();
|
||||
if (DlssGeneration.Of(evidence) is { } generation)
|
||||
{
|
||||
parts.Add("generation=" + KindText(generation.Kind) + " basis=" + BasisToken(generation.Basis));
|
||||
}
|
||||
|
||||
foreach (string file in new[] { _superResolutionFile, _rayReconstructionFile, _frameGenerationFile, _neuralRenderingFile })
|
||||
{
|
||||
if (modules.TryGetValue(file, out string? version))
|
||||
{
|
||||
parts.Add(file + "=" + (version ?? "N/A") + (sources.TryGetValue(file, out string? source) && source is not null ? " " + source : string.Empty));
|
||||
}
|
||||
}
|
||||
|
||||
if (DlssGeneration.PresetLetter(evidence.Preset) is char letter)
|
||||
{
|
||||
parts.Add("preset=" + letter.ToString(_inv));
|
||||
}
|
||||
|
||||
return parts.Count == 0 ? "N/A" : string.Join("; ", parts);
|
||||
}
|
||||
|
||||
private static string LabelOf(DlssGeneration generation, DlssEvidence evidence) =>
|
||||
string.Format(CultureInfo.CurrentCulture, Strings.Dlss_Label_Format, KindText(generation.Kind), generation.Basis switch
|
||||
{
|
||||
DlssBasis.Preset => string.Format(CultureInfo.CurrentCulture, Strings.Nv_Preset_Format, DlssGeneration.PresetLetter(evidence.Preset)),
|
||||
DlssBasis.FrameGenerationFactor => string.Format(CultureInfo.CurrentCulture, Strings.Dlss_Basis_Factor_Format, evidence.LargestFrameGenerationFactor),
|
||||
_ => string.Format(CultureInfo.CurrentCulture, Strings.Dlss_Basis_Library_Format, Short(evidence.SuperResolution is { Major: 2 or 3 } ? evidence.SuperResolution : evidence.FrameGeneration)),
|
||||
});
|
||||
|
||||
private static string BasisToken(DlssBasis basis) => basis switch
|
||||
{
|
||||
DlssBasis.Preset => "preset",
|
||||
DlssBasis.FrameGenerationFactor => "frame_generation_factor",
|
||||
_ => "library_version",
|
||||
};
|
||||
|
||||
private static string KindText(DlssGenerationKind kind) => kind switch
|
||||
{
|
||||
DlssGenerationKind.Dlss2 => "DLSS 2",
|
||||
DlssGenerationKind.Dlss3 => "DLSS 3",
|
||||
DlssGenerationKind.Dlss4 => "DLSS 4",
|
||||
DlssGenerationKind.Dlss45 => "DLSS 4.5",
|
||||
_ => "DLSS",
|
||||
};
|
||||
|
||||
private static string? PresetText(uint? preset) =>
|
||||
DlssGeneration.PresetLetter(preset) is char letter
|
||||
? string.Format(CultureInfo.CurrentCulture, Strings.Dlss_Preset_Format, letter, ModelText(DlssGeneration.ModelOf(preset)))
|
||||
: null;
|
||||
|
||||
private static string ModelText(DlssModel? model) => model switch
|
||||
{
|
||||
DlssModel.Cnn => Strings.Dlss_Model_Cnn,
|
||||
DlssModel.Transformer => Strings.Dlss_Model_Transformer,
|
||||
DlssModel.SecondGenerationTransformer => Strings.Dlss_Model_SecondGenerationTransformer,
|
||||
_ => Strings.Dlss_Model_Unknown,
|
||||
};
|
||||
|
||||
private static void AddLibrary(List<string> parts, Dictionary<string, string?> modules, Dictionary<string, string?> sources, string file, string feature, string? detail)
|
||||
{
|
||||
if (!modules.TryGetValue(file, out string? stated))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string version = Short(Parse(stated)) ?? Strings.Common_NotAvailable;
|
||||
string text = string.Format(CultureInfo.CurrentCulture, Strings.Dlss_Library_Format, feature, version);
|
||||
string? from = sources.TryGetValue(file, out string? token) ? SourceText(RuntimeModuleSources.FromToken(token)) : null;
|
||||
parts.Add(string.Join(", ", new[] { text, from, detail }.Where(static p => p is not null)));
|
||||
}
|
||||
|
||||
private static string? SourceText(RuntimeModuleSource source) => source switch
|
||||
{
|
||||
RuntimeModuleSource.Game => Strings.Dlss_From_Game,
|
||||
RuntimeModuleSource.GraphicsDriver => Strings.Dlss_From_GraphicsDriver,
|
||||
RuntimeModuleSource.Windows => Strings.Dlss_From_Windows,
|
||||
_ => null,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The super-resolution preset the driver reports applied, where super resolution ran in the session (a hook named
|
||||
/// DLSS, or the driver saw it created and evaluated): the word's PRESET bit set. Null otherwise — a preset the driver
|
||||
/// applied to a feature nobody saw run names the model of nothing.
|
||||
/// </summary>
|
||||
private static uint? ReportedPreset(SessionRow row)
|
||||
{
|
||||
bool ran = row.Upscaler is { Length: > 0 } and not "unknown" ? Is(row.Upscaler, "dlss") : Is(row.UpscalerDriverReported, "dlss");
|
||||
return ran && NgxDriverWords.Parse(row.NgxDriverWordsJson) is { Outcome: nameof(NgxProbeOutcome.Answered) } words
|
||||
&& (Mask(words.Sr) & NgxOverrideFlags.Preset) != 0 && words.Preset is > 0
|
||||
? words.Preset
|
||||
: null;
|
||||
}
|
||||
|
||||
/// <summary>The largest DLSS Frame Generation state the session measured: the mix's states, else its one factor.</summary>
|
||||
private static double? LargestFrameGenerationFactor(SessionRow row)
|
||||
{
|
||||
if (!Is(row.FgMode, "dlssg"))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
FgMixRecord? mix = FgMixRecord.Parse(row.FgMixJson);
|
||||
double? largest = mix?.Rows.Where(static r => FgMixRecordRow.KindOf(r.Kind) == FgMixKind.Generated).Max(static r => r.Factor);
|
||||
return largest ?? row.FgFactor;
|
||||
}
|
||||
|
||||
private static Dictionary<string, string?> Modules(string? json)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(json))
|
||||
{
|
||||
return new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Dictionary<string, string>? parsed = JsonSerializer.Deserialize(json, AppJsonContext.Default.DictionaryStringString);
|
||||
return parsed is null
|
||||
? new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase)
|
||||
: parsed.ToDictionary(static p => p.Key, static p => (string?)p.Value, StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
catch (JsonException)
|
||||
{
|
||||
return new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
}
|
||||
|
||||
private static Version? VersionOf(Dictionary<string, string?> modules, string file) =>
|
||||
modules.TryGetValue(file, out string? stated) ? Parse(stated) : null;
|
||||
|
||||
/// <summary>A stated file version — <c>310,9,1,0</c> as some vendors stamp it, or <c>3.7.10.0</c> — as numbers.</summary>
|
||||
internal static Version? Parse(string? stated)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(stated))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
string[] numbers = stated.Replace(',', '.').Split('.', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
|
||||
int[] parts = [.. numbers.Take(4).Select(static n => int.TryParse(n, NumberStyles.None, _inv, out int v) ? v : -1)];
|
||||
return parts.Length >= 2 && parts.All(static p => p >= 0)
|
||||
? parts.Length switch
|
||||
{
|
||||
2 => new Version(parts[0], parts[1]),
|
||||
3 => new Version(parts[0], parts[1], parts[2]),
|
||||
_ => new Version(parts[0], parts[1], parts[2], parts[3]),
|
||||
}
|
||||
: null;
|
||||
}
|
||||
|
||||
/// <summary>A version without a trailing <c>.0</c> revision: <c>310.9.1</c>.</summary>
|
||||
private static string? Short(Version? version) => version is null ? null
|
||||
: version.Revision is 0 or -1 ? version.ToString(version.Build < 0 ? 2 : 3) : version.ToString();
|
||||
|
||||
private static bool Is(string? token, string value) => string.Equals(token, value, StringComparison.Ordinal);
|
||||
|
||||
private static ulong Mask(string? hex) =>
|
||||
hex is { Length: > 2 } && ulong.TryParse(hex.AsSpan(2), NumberStyles.HexNumber, _inv, out ulong value) ? value : 0;
|
||||
}
|
||||
@@ -5,10 +5,12 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using FrameLedger.Application.Capture;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using FrameLedger.Application.Recording;
|
||||
using FrameLedger.Domain.Detection;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
using FrameLedger.Domain.Sessions;
|
||||
using FrameLedger.Shared.Ipc;
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
|
||||
@@ -126,27 +128,87 @@ public static class Formats
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The upscaler as the UI states it, down <c>03_METRICS</c> §Upscaling's ladder: a name a HOOK produced outranks
|
||||
/// everything and takes its measured preset; where no hook named one (<c>unknown</c>: a hook ran and saw nothing —
|
||||
/// every NGX-direct DLSS title, since no NGX hook may exist — or no claim at all) and the NVIDIA driver reports the
|
||||
/// feature created and evaluated in the process, the name is the driver's and SAYS so; otherwise what the token
|
||||
/// says. The driver's word is identity only: it never takes a quality, even when a byte is on the row.
|
||||
/// A session's upscaler with its quality mode, as every surface states it (beta.24, D63): the mode the NVIDIA App's
|
||||
/// override set where the driver reports it applied in the game's process — marked as the App's —, else the mode the
|
||||
/// game passed to a hooked call, else none (<see cref="QualityResolver"/>). The summary, the Sessions tab and the game
|
||||
/// page call this one, so they resolve alike.
|
||||
/// </summary>
|
||||
public static string UpscalerOf(SessionRow row)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(row);
|
||||
return UpscalerText(row.Upscaler, row.UpscalerDriverReported,
|
||||
QualityResolver.Of(row.Upscaler, row.UpscalerQuality, row.UpscalerDriverReported, row.NgxDriverWordsJson, row.DriverProfileJson));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The live card's: an override's mode travels as <c>upscalerQualityOverride</c>, from the driver's report alone (the
|
||||
/// profile is the stored session's), so a mode that report cannot settle reads as the App's override with no mode.
|
||||
/// </summary>
|
||||
public static string UpscalerOf(SessionProgressEvent progress)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(progress);
|
||||
return UpscalerText(progress.Upscaler, progress.UpscalerDriverReported,
|
||||
QualityResolver.FromToken(progress.UpscalerQualityOverride)
|
||||
?? QualityResolver.Of(progress.Upscaler, progress.UpscalerQuality, progress.UpscalerDriverReported, ngxDriverWordsJson: null, driverProfileJson: null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The upscaler as the UI states it, down <c>03_METRICS</c> §Upscaling's ladder, from what the hooks saw alone — a
|
||||
/// segment's, which carries no driver report. A name a HOOK produced outranks everything and takes its measured mode;
|
||||
/// where no hook named one (<c>unknown</c>: a hook ran and saw nothing — every NGX-direct DLSS title, since no NGX hook
|
||||
/// may exist — or no claim at all) and the NVIDIA driver reports the feature created and evaluated in the process, the
|
||||
/// name is the driver's and SAYS so; otherwise what the token says.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The row has stored <c>upscaler_driver_reported</c> since P2 and the capture host has printed it since 2026-09-06;
|
||||
/// the App never read it, which is why DLSS read "Unknown upscaler" on most titles while FSR, whose dispatch the
|
||||
/// hook does see, was named (owner's report, 2026-09-21).
|
||||
/// hook does see, was named (owner's report, 2026-09-21). The driver's word alone is identity: a mode comes with it
|
||||
/// only from an override the driver reports applied (<see cref="UpscalerOf(SessionRow)"/>).
|
||||
/// </remarks>
|
||||
public static string Upscaler(string? token, string? quality, string? driverReported)
|
||||
public static string Upscaler(string? token, string? quality, string? driverReported) =>
|
||||
UpscalerText(token, driverReported, QualityResolver.Of(token, quality, driverReported, ngxDriverWordsJson: null, driverProfileJson: null));
|
||||
|
||||
/// <summary>The name, then the mode when one is known, then "· NVIDIA App" when the App's override set it.</summary>
|
||||
internal static string UpscalerText(string? token, string? driverReported, ResolvedQuality? resolved)
|
||||
{
|
||||
bool hookNamed = token is { Length: > 0 } and not "unknown";
|
||||
if (!hookNamed && driverReported is { Length: > 0 })
|
||||
string name = !hookNamed && driverReported is { Length: > 0 }
|
||||
? string.Format(CultureInfo.CurrentCulture, Strings.Upscaler_DriverReported_Format, Upscaler(driverReported))
|
||||
: Upscaler(token);
|
||||
if (resolved is null)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, Strings.Upscaler_DriverReported_Format, Upscaler(driverReported));
|
||||
return name;
|
||||
}
|
||||
|
||||
string name = Upscaler(token);
|
||||
return hookNamed && UpscalerNames.Quality(token, quality) is { } preset ? name + " " + preset : name;
|
||||
string? mode = QualityName(resolved);
|
||||
if (resolved.Source == QualitySource.NvidiaApp)
|
||||
{
|
||||
return mode is null
|
||||
? string.Format(CultureInfo.CurrentCulture, Strings.Upscaler_Override_App_Format, name)
|
||||
: string.Format(CultureInfo.CurrentCulture, Strings.Upscaler_Mode_App_Format, name, mode);
|
||||
}
|
||||
|
||||
return mode is null ? name : string.Format(CultureInfo.CurrentCulture, Strings.Upscaler_Mode_Format, name, mode);
|
||||
}
|
||||
|
||||
/// <summary>A resolved mode by the name its menu uses, in the reader's language; a hooked value no table names, as stored.</summary>
|
||||
public static string? QualityName(ResolvedQuality resolved)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(resolved);
|
||||
return resolved.Mode switch
|
||||
{
|
||||
UpscalerQualityMode.Performance => Strings.Nv_Mode_Performance,
|
||||
UpscalerQualityMode.Balanced => Strings.Nv_Mode_Balanced,
|
||||
UpscalerQualityMode.Quality => Strings.Nv_Mode_Quality,
|
||||
UpscalerQualityMode.UltraPerformance => Strings.Nv_Mode_UltraPerformance,
|
||||
UpscalerQualityMode.UltraQuality => Strings.Nv_Mode_UltraQuality,
|
||||
UpscalerQualityMode.Dlaa => Strings.Nv_Mode_Dlaa,
|
||||
UpscalerQualityMode.NativeAa => Strings.Fsr_Mode_NativeAa,
|
||||
UpscalerQualityMode.Custom => resolved.CustomPercent is uint percent
|
||||
? string.Format(CultureInfo.CurrentCulture, Strings.Nv_Mode_Custom_Format, percent)
|
||||
: Strings.Nv_Mode_Custom,
|
||||
_ => resolved.Stored,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>The row's fg_mode token as its product name.</summary>
|
||||
|
||||
@@ -193,6 +193,7 @@ public static class FpsPresentation
|
||||
"multiple_streams" => string.Format(culture, Strings.Fg_RefusalDetail_MultipleStreams_Format, detail.Count),
|
||||
"too_short" => string.Format(culture, Strings.Fg_RefusalDetail_TooShort_Format, detail.Count, FgWindow.MinSamplesToCheck),
|
||||
"ambiguous_band" => string.Format(culture, Strings.Fg_RefusalDetail_AmbiguousBand_Format, Ratio(detail.Overall), Ratio(FgWindow.NoneCeiling), Ratio(FgWindow.ActiveThreshold)),
|
||||
"beyond_generation" => string.Format(culture, Strings.Fg_RefusalDetail_BeyondGeneration_Format, Ratio(detail.Overall), Ratio(FgWindow.GenerationCeiling)),
|
||||
"unattributed" or "count_saturated" or "dxgi_saturated" => string.Format(culture, Strings.Fg_RefusalDetail_Records_Format, detail.Count),
|
||||
_ => null,
|
||||
};
|
||||
@@ -213,6 +214,7 @@ public static class FpsPresentation
|
||||
"non_uniform" => Strings.Fg_Refusal_NonUniform,
|
||||
"ambiguous_band" => Strings.Fg_Refusal_AmbiguousBand,
|
||||
"no_batches" => Strings.Fg_Refusal_NoBatches,
|
||||
"beyond_generation" => Strings.Fg_Refusal_BeyondGeneration,
|
||||
_ => Strings.Fg_Refusal_Unknown,
|
||||
};
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ public sealed class GamePlayer
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(game);
|
||||
PlayFallback fallback = PlayFallback.None;
|
||||
StoreGame? record = null;
|
||||
if (!await IsDirectAsync(ct).ConfigureAwait(false))
|
||||
{
|
||||
if (_elevated())
|
||||
@@ -61,7 +62,7 @@ public sealed class GamePlayer
|
||||
}
|
||||
else
|
||||
{
|
||||
StoreGame? record = StoreRecords.Owning(game.Fingerprint.ExePath, game.StoreId, await _stores.ReadAsync("play", ct: ct).ConfigureAwait(false));
|
||||
record = await OwningAsync(game, ct).ConfigureAwait(false);
|
||||
if (record is null)
|
||||
{
|
||||
fallback = PlayFallback.NoStore;
|
||||
@@ -79,7 +80,16 @@ public sealed class GamePlayer
|
||||
}
|
||||
}
|
||||
|
||||
return await StartDirectlyAsync(game, fallback, ct).ConfigureAwait(false);
|
||||
// beta.27: a game Steam installed may hand itself to Steam when something else starts it (Lies of P, 2026-10-19:
|
||||
// its process left within seconds and Steam started the game again), and the notice says so. No store's records
|
||||
// name a game that fell back for want of one, so they are read only where they were not already.
|
||||
if (fallback is PlayFallback.None or PlayFallback.Elevated)
|
||||
{
|
||||
record = await OwningAsync(game, ct).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
bool steamGame = string.Equals(record?.Platform, "steam", StringComparison.Ordinal);
|
||||
return await StartDirectlyAsync(game, fallback, steamGame, ct).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>The notice a result is said with: its text, and whether it is a warning.</summary>
|
||||
@@ -99,8 +109,9 @@ public sealed class GamePlayer
|
||||
{
|
||||
PlayFallback.NoStore => string.Format(CultureInfo.CurrentCulture, Strings.Play_NoStore_Format, gameName),
|
||||
PlayFallback.NoGalaxy => string.Format(CultureInfo.CurrentCulture, Strings.Play_NoGalaxy_Format, gameName),
|
||||
PlayFallback.Elevated => string.Format(CultureInfo.CurrentCulture, Strings.Play_Elevated_Format, gameName),
|
||||
_ => string.Format(CultureInfo.CurrentCulture, Strings.Play_Started_Format, gameName),
|
||||
PlayFallback.Elevated => string.Format(CultureInfo.CurrentCulture,
|
||||
result.SteamGame ? Strings.Play_Elevated_Steam_Format : Strings.Play_Elevated_Format, gameName),
|
||||
_ => string.Format(CultureInfo.CurrentCulture, result.SteamGame ? Strings.Play_Started_Steam_Format : Strings.Play_Started_Format, gameName),
|
||||
}, false),
|
||||
PlayOutcome.AgentUnavailable => (string.Format(CultureInfo.CurrentCulture, Strings.Play_AgentUnavailable_Format, gameName), true),
|
||||
PlayOutcome.Unanswered => (Strings.Agent_Unanswered, true),
|
||||
@@ -114,6 +125,10 @@ public sealed class GamePlayer
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>The record of the store that installed <paramref name="game"/>, if any store's own records name its folder.</summary>
|
||||
private async Task<StoreGame?> OwningAsync(GameRow game, CancellationToken ct) =>
|
||||
StoreRecords.Owning(game.Fingerprint.ExePath, game.StoreId, await _stores.ReadAsync("play", ct: ct).ConfigureAwait(false));
|
||||
|
||||
private PlayResult HandOff(GameRow game, StoreLaunch launch)
|
||||
{
|
||||
bool handed = launch.Kind == StoreLaunchKind.RunProgram
|
||||
@@ -139,7 +154,7 @@ public sealed class GamePlayer
|
||||
return PlayFallback.NoLink;
|
||||
}
|
||||
|
||||
private async Task<PlayResult> StartDirectlyAsync(GameRow game, PlayFallback fallback, CancellationToken ct)
|
||||
private async Task<PlayResult> StartDirectlyAsync(GameRow game, PlayFallback fallback, bool steamGame, CancellationToken ct)
|
||||
{
|
||||
if (!_agent.IsConnected)
|
||||
{
|
||||
@@ -180,7 +195,7 @@ public sealed class GamePlayer
|
||||
Log.Information("play: {Game} (id {Id}) through the agent: {Outcome}", game.Name, game.Id, ack.Outcome);
|
||||
return ack.Outcome switch
|
||||
{
|
||||
_ when ack.Accepted => new PlayResult(PlayOutcome.StartedByAgent, Fallback: fallback),
|
||||
_ when ack.Accepted => new PlayResult(PlayOutcome.StartedByAgent, Fallback: fallback, SteamGame: steamGame),
|
||||
"RecordingOff" => new PlayResult(PlayOutcome.RecordingOff, Fallback: fallback),
|
||||
"SessionRunning" => new PlayResult(PlayOutcome.AlreadyRunning, Fallback: fallback),
|
||||
"UnknownGame" => new PlayResult(PlayOutcome.NotInLibrary, Fallback: fallback),
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Text.Json;
|
||||
using FrameLedger.Application.Capture;
|
||||
using FrameLedger.Application.Recording;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
using S = FrameLedger.Application.Capture.NvidiaDriverSettings;
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
@@ -163,16 +163,7 @@ public static class NvidiaOverrides
|
||||
return null;
|
||||
}
|
||||
|
||||
NgxDriverWords? words;
|
||||
try
|
||||
{
|
||||
words = JsonSerializer.Deserialize(ngxDriverWordsJson, RecordingJsonContext.Default.NgxDriverWords);
|
||||
}
|
||||
catch (JsonException)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
NgxDriverWords? words = NgxDriverWords.Parse(ngxDriverWordsJson);
|
||||
if (words is null || !string.Equals(words.Outcome, nameof(NgxProbeOutcome.Answered), StringComparison.Ordinal))
|
||||
{
|
||||
return null;
|
||||
@@ -191,7 +182,10 @@ public static class NvidiaOverrides
|
||||
parts.Add(preset);
|
||||
}
|
||||
|
||||
if ((sr & NgxOverrideFlags.PerfMode) != 0 && Mode(words.Mode, ratio: null) is { } mode)
|
||||
// NGX's own numbering, not the profile's (beta.24: until then this read the report through Mode below, so a DLAA
|
||||
// override's 5 printed "Ultra Performance" and Ultra Performance's 3 printed nothing).
|
||||
if ((sr & NgxOverrideFlags.PerfMode) != 0 && UpscalerNames.FromDriverReport(words.Mode) is { } reported
|
||||
&& Formats.QualityName(new ResolvedQuality(reported, QualitySource.NvidiaApp)) is { } mode)
|
||||
{
|
||||
parts.Add(mode);
|
||||
}
|
||||
|
||||
@@ -3,5 +3,9 @@
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
|
||||
/// <summary>One press of Play: what happened, which store's app has it, why it fell back, and the agent's own word on a failure.</summary>
|
||||
public sealed record PlayResult(PlayOutcome Outcome, string? Store = null, PlayFallback Fallback = PlayFallback.None, string? Detail = null);
|
||||
/// <summary>
|
||||
/// One press of Play: what happened, which store's app has it, why it fell back, the agent's own word on a failure — and,
|
||||
/// since beta.27, whether the game the agent started is one Steam installed, which may hand itself to Steam first.
|
||||
/// </summary>
|
||||
public sealed record PlayResult(PlayOutcome Outcome, string? Store = null, PlayFallback Fallback = PlayFallback.None, string? Detail = null,
|
||||
bool SteamGame = false);
|
||||
@@ -8,6 +8,7 @@ using System.Text.Json;
|
||||
using FrameLedger.App.Charts;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using FrameLedger.Application.Recording;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
using FrameLedger.Domain.Sessions;
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
@@ -119,6 +120,11 @@ public sealed class SessionExporter
|
||||
w.WriteLine("# game_memory: " + GameMemoryText.ExportLine(row));
|
||||
w.WriteLine("# hardware: " + (hardware is null ? "N/A" : string.Join("; ", new[] { hardware.CpuName, hardware.GpuName, hardware.GpuDriver, hardware.OsBuild, hardware.DisplayRes }.Where(static s => !string.IsNullOrEmpty(s)))));
|
||||
w.WriteLine("# rt: " + row.RtFlag + " (" + (row.RtSource ?? "n/a") + "); pt: " + row.PtFlag + " (" + (row.PtSource ?? "n/a") + "); rr: " + row.RrFlag + " (" + (row.RrSource ?? "n/a") + ")");
|
||||
// beta.24 (D63): the session's quality mode and whose it is: the NVIDIA App's override the driver reported applied
|
||||
// ("nvidia_app"), or the game's own call ("game"); the per-frame upscaler_quality column stays the hooked byte.
|
||||
w.WriteLine("# quality_mode: " + QualityExport(row));
|
||||
// beta.24 (D64): the DLSS generation where the session established one, each DLSS library's version and folder class.
|
||||
w.WriteLine("# dlss: " + DlssText.ExportLine(row));
|
||||
w.WriteLine("# fg_mode: " + row.FgMode + "; fg_source: " + (row.FgSource ?? "n/a") + "; presented_qualifier: " + (row.PresentedQualifier ?? "n/a"));
|
||||
// beta.24 (D62): every frame-generation state the session held, each with its share and its own rates: the session's, not a frame's.
|
||||
w.WriteLine("# fg_mix: " + FgMixPresentation.ExportLine(row));
|
||||
@@ -131,6 +137,24 @@ public sealed class SessionExporter
|
||||
w.WriteLine("# note: one swapchain's presents, the stream the statistics are over; qpc_ms closes up every gap (frametime_ms 0)");
|
||||
}
|
||||
|
||||
private static string QualityExport(SessionRow row)
|
||||
{
|
||||
ResolvedQuality? resolved = QualityResolver.Of(row.Upscaler, row.UpscalerQuality, row.UpscalerDriverReported, row.NgxDriverWordsJson, row.DriverProfileJson);
|
||||
if (resolved is null)
|
||||
{
|
||||
return "N/A";
|
||||
}
|
||||
|
||||
string source = resolved.Source == QualitySource.NvidiaApp ? "nvidia_app" : "game";
|
||||
string mode = resolved.Mode switch
|
||||
{
|
||||
null => resolved.Stored is { } stored ? "stored " + stored : "not settled",
|
||||
UpscalerQualityMode.Custom => resolved.CustomPercent is uint percent ? "custom " + percent.ToString(_inv) + "%" : "custom",
|
||||
{ } named => QualityResolver.ModeToken(named) ?? named.ToString(),
|
||||
};
|
||||
return mode + " (" + source + ")";
|
||||
}
|
||||
|
||||
private static SegmentRow? SegmentAt(SegmentRow[] byFrame, uint frameIndex)
|
||||
{
|
||||
SegmentRow? found = null;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Windows;
|
||||
using FrameLedger.App.Charts;
|
||||
using FrameLedger.App.ViewModels;
|
||||
using FrameLedger.App.Windows;
|
||||
@@ -14,7 +15,8 @@ namespace FrameLedger.App.Services;
|
||||
/// Builds a summary window per open: the view model's override prompt is bound to THAT window's dialog host,
|
||||
/// which is why the window is composed here rather than resolved whole from DI. The load runs after
|
||||
/// <c>Show()</c> so the window appears at once and fills in. It keeps the windows it opened, so that Delete all sessions
|
||||
/// can close the ones whose session is gone (<see cref="ISessionWindows"/>, beta.11).
|
||||
/// can close the ones whose session is gone (<see cref="ISessionWindows"/>, beta.11), and so that a session has ONE summary
|
||||
/// window: opening it again brings that window forward (beta.27 — the owner had two of the same session side by side).
|
||||
/// </summary>
|
||||
public sealed class SessionSummaryOpener : ISessionSummaryOpener, ISessionWindows
|
||||
{
|
||||
@@ -32,9 +34,21 @@ public sealed class SessionSummaryOpener : ISessionSummaryOpener, ISessionWindow
|
||||
_selection = selection ?? throw new ArgumentNullException(nameof(selection));
|
||||
}
|
||||
|
||||
/// <summary>The sessions whose summary is open, in the order they were opened (tests read it).</summary>
|
||||
internal IReadOnlyList<long> OpenSessions => [.. _open.Select(static o => o.SessionId)];
|
||||
|
||||
public void Open(long sessionId)
|
||||
{
|
||||
_selection.Set(sessionId); // File ▸ Export follows the window the user opened last (P4 PR-3)
|
||||
foreach ((long SessionId, SessionSummaryWindow Window) existing in _open)
|
||||
{
|
||||
if (existing.SessionId == sessionId)
|
||||
{
|
||||
BringForward(existing.Window);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
SessionSummaryWindow? window = null;
|
||||
var viewModel = new SessionSummaryViewModel(
|
||||
_services.GetRequiredService<ISessionRepository>(),
|
||||
@@ -69,6 +83,17 @@ public sealed class SessionSummaryOpener : ISessionSummaryOpener, ISessionWindow
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>The open window, back in front of the user: out of the taskbar first if it was minimised.</summary>
|
||||
private static void BringForward(Window window)
|
||||
{
|
||||
if (window.WindowState == WindowState.Minimized)
|
||||
{
|
||||
window.WindowState = WindowState.Normal;
|
||||
}
|
||||
|
||||
window.Activate();
|
||||
}
|
||||
|
||||
private static async Task LoadAsync(SessionSummaryViewModel viewModel, long sessionId)
|
||||
{
|
||||
try
|
||||
|
||||
Generated
+78
@@ -214,6 +214,7 @@ public static class Strings
|
||||
nameof(Dashboard_Agent_Version),
|
||||
nameof(Dashboard_Empty),
|
||||
nameof(Dashboard_Header),
|
||||
nameof(Dashboard_Live_Count_Format),
|
||||
nameof(Dashboard_Live_CpuTemp_Format),
|
||||
nameof(Dashboard_Live_Elapsed_Format),
|
||||
nameof(Dashboard_Live_GameMemory_Format),
|
||||
@@ -264,6 +265,22 @@ public static class Strings
|
||||
nameof(Display_Window_Format),
|
||||
nameof(Display_WindowOnMonitor_Format),
|
||||
nameof(Display_WindowOnMonitorHz_Format),
|
||||
nameof(Dlss_Basis_Factor_Format),
|
||||
nameof(Dlss_Basis_Library_Format),
|
||||
nameof(Dlss_Feature_FrameGeneration),
|
||||
nameof(Dlss_Feature_RayReconstruction),
|
||||
nameof(Dlss_Feature_SuperResolution),
|
||||
nameof(Dlss_From_Game),
|
||||
nameof(Dlss_From_GraphicsDriver),
|
||||
nameof(Dlss_From_Windows),
|
||||
nameof(Dlss_Label_Format),
|
||||
nameof(Dlss_Library_Format),
|
||||
nameof(Dlss_Model_Cnn),
|
||||
nameof(Dlss_Model_SecondGenerationTransformer),
|
||||
nameof(Dlss_Model_Transformer),
|
||||
nameof(Dlss_Model_Unknown),
|
||||
nameof(Dlss_NeuralRendering_Loaded),
|
||||
nameof(Dlss_Preset_Format),
|
||||
nameof(Document_OnGitHub),
|
||||
nameof(Document_Pages),
|
||||
nameof(EditGame_ChooseImage),
|
||||
@@ -358,6 +375,7 @@ public static class Strings
|
||||
nameof(Fg_Factor_NotCounted),
|
||||
nameof(Fg_None),
|
||||
nameof(Fg_Refusal_AmbiguousBand),
|
||||
nameof(Fg_Refusal_BeyondGeneration),
|
||||
nameof(Fg_Refusal_CountSaturated),
|
||||
nameof(Fg_Refusal_DxgiSaturated),
|
||||
nameof(Fg_Refusal_MultipleStreams),
|
||||
@@ -369,6 +387,7 @@ public static class Strings
|
||||
nameof(Fg_Refusal_Unattributed),
|
||||
nameof(Fg_Refusal_Unknown),
|
||||
nameof(Fg_RefusalDetail_AmbiguousBand_Format),
|
||||
nameof(Fg_RefusalDetail_BeyondGeneration_Format),
|
||||
nameof(Fg_RefusalDetail_MultipleStreams_Format),
|
||||
nameof(Fg_RefusalDetail_NonUniform_Format),
|
||||
nameof(Fg_RefusalDetail_NoTokens),
|
||||
@@ -461,6 +480,7 @@ public static class Strings
|
||||
nameof(Fps_Native_Tooltip),
|
||||
nameof(Fps_None_Tooltip),
|
||||
nameof(Fps_Presented_Format),
|
||||
nameof(Fsr_Mode_NativeAa),
|
||||
nameof(GameDetail_AntiCheat_Exceptionable_Format),
|
||||
nameof(GameDetail_AntiCheat_Format),
|
||||
nameof(GameDetail_AntiCheat_Header),
|
||||
@@ -727,6 +747,7 @@ public static class Strings
|
||||
nameof(Nv_Mode_Performance),
|
||||
nameof(Nv_Mode_Quality),
|
||||
nameof(Nv_Mode_UltraPerformance),
|
||||
nameof(Nv_Mode_UltraQuality),
|
||||
nameof(Nv_Override_Fg),
|
||||
nameof(Nv_Override_None),
|
||||
nameof(Nv_Override_Rr),
|
||||
@@ -747,6 +768,7 @@ public static class Strings
|
||||
nameof(Play_AlreadyRunning_Format),
|
||||
nameof(Play_Button),
|
||||
nameof(Play_Elevated_Format),
|
||||
nameof(Play_Elevated_Steam_Format),
|
||||
nameof(Play_Epic_Format),
|
||||
nameof(Play_Failed_Format),
|
||||
nameof(Play_Gog_Format),
|
||||
@@ -758,6 +780,7 @@ public static class Strings
|
||||
nameof(Play_RecordingOff_Fallback_Format),
|
||||
nameof(Play_RecordingOff_Format),
|
||||
nameof(Play_Started_Format),
|
||||
nameof(Play_Started_Steam_Format),
|
||||
nameof(Play_Steam_Format),
|
||||
nameof(Play_Title),
|
||||
nameof(Play_ToolTip_Direct),
|
||||
@@ -1139,7 +1162,10 @@ public static class Strings
|
||||
nameof(Update_Unsigned_Footer),
|
||||
nameof(Update_UpToDate_Format),
|
||||
nameof(Upscaler_DriverReported_Format),
|
||||
nameof(Upscaler_Mode_App_Format),
|
||||
nameof(Upscaler_Mode_Format),
|
||||
nameof(Upscaler_None),
|
||||
nameof(Upscaler_Override_App_Format),
|
||||
nameof(Upscaler_Unknown),
|
||||
nameof(Viewer_Banner_Body_Format),
|
||||
nameof(Viewer_Banner_Title),
|
||||
@@ -1516,6 +1542,8 @@ public static class Strings
|
||||
|
||||
public static string Dashboard_Header => ResourceManager.GetString(nameof(Dashboard_Header), Culture) ?? nameof(Dashboard_Header);
|
||||
|
||||
public static string Dashboard_Live_Count_Format => ResourceManager.GetString(nameof(Dashboard_Live_Count_Format), Culture) ?? nameof(Dashboard_Live_Count_Format);
|
||||
|
||||
public static string Dashboard_Live_CpuTemp_Format => ResourceManager.GetString(nameof(Dashboard_Live_CpuTemp_Format), Culture) ?? nameof(Dashboard_Live_CpuTemp_Format);
|
||||
|
||||
public static string Dashboard_Live_Elapsed_Format => ResourceManager.GetString(nameof(Dashboard_Live_Elapsed_Format), Culture) ?? nameof(Dashboard_Live_Elapsed_Format);
|
||||
@@ -1616,6 +1644,38 @@ public static class Strings
|
||||
|
||||
public static string Display_WindowOnMonitorHz_Format => ResourceManager.GetString(nameof(Display_WindowOnMonitorHz_Format), Culture) ?? nameof(Display_WindowOnMonitorHz_Format);
|
||||
|
||||
public static string Dlss_Basis_Factor_Format => ResourceManager.GetString(nameof(Dlss_Basis_Factor_Format), Culture) ?? nameof(Dlss_Basis_Factor_Format);
|
||||
|
||||
public static string Dlss_Basis_Library_Format => ResourceManager.GetString(nameof(Dlss_Basis_Library_Format), Culture) ?? nameof(Dlss_Basis_Library_Format);
|
||||
|
||||
public static string Dlss_Feature_FrameGeneration => ResourceManager.GetString(nameof(Dlss_Feature_FrameGeneration), Culture) ?? nameof(Dlss_Feature_FrameGeneration);
|
||||
|
||||
public static string Dlss_Feature_RayReconstruction => ResourceManager.GetString(nameof(Dlss_Feature_RayReconstruction), Culture) ?? nameof(Dlss_Feature_RayReconstruction);
|
||||
|
||||
public static string Dlss_Feature_SuperResolution => ResourceManager.GetString(nameof(Dlss_Feature_SuperResolution), Culture) ?? nameof(Dlss_Feature_SuperResolution);
|
||||
|
||||
public static string Dlss_From_Game => ResourceManager.GetString(nameof(Dlss_From_Game), Culture) ?? nameof(Dlss_From_Game);
|
||||
|
||||
public static string Dlss_From_GraphicsDriver => ResourceManager.GetString(nameof(Dlss_From_GraphicsDriver), Culture) ?? nameof(Dlss_From_GraphicsDriver);
|
||||
|
||||
public static string Dlss_From_Windows => ResourceManager.GetString(nameof(Dlss_From_Windows), Culture) ?? nameof(Dlss_From_Windows);
|
||||
|
||||
public static string Dlss_Label_Format => ResourceManager.GetString(nameof(Dlss_Label_Format), Culture) ?? nameof(Dlss_Label_Format);
|
||||
|
||||
public static string Dlss_Library_Format => ResourceManager.GetString(nameof(Dlss_Library_Format), Culture) ?? nameof(Dlss_Library_Format);
|
||||
|
||||
public static string Dlss_Model_Cnn => ResourceManager.GetString(nameof(Dlss_Model_Cnn), Culture) ?? nameof(Dlss_Model_Cnn);
|
||||
|
||||
public static string Dlss_Model_SecondGenerationTransformer => ResourceManager.GetString(nameof(Dlss_Model_SecondGenerationTransformer), Culture) ?? nameof(Dlss_Model_SecondGenerationTransformer);
|
||||
|
||||
public static string Dlss_Model_Transformer => ResourceManager.GetString(nameof(Dlss_Model_Transformer), Culture) ?? nameof(Dlss_Model_Transformer);
|
||||
|
||||
public static string Dlss_Model_Unknown => ResourceManager.GetString(nameof(Dlss_Model_Unknown), Culture) ?? nameof(Dlss_Model_Unknown);
|
||||
|
||||
public static string Dlss_NeuralRendering_Loaded => ResourceManager.GetString(nameof(Dlss_NeuralRendering_Loaded), Culture) ?? nameof(Dlss_NeuralRendering_Loaded);
|
||||
|
||||
public static string Dlss_Preset_Format => ResourceManager.GetString(nameof(Dlss_Preset_Format), Culture) ?? nameof(Dlss_Preset_Format);
|
||||
|
||||
public static string Document_OnGitHub => ResourceManager.GetString(nameof(Document_OnGitHub), Culture) ?? nameof(Document_OnGitHub);
|
||||
|
||||
public static string Document_Pages => ResourceManager.GetString(nameof(Document_Pages), Culture) ?? nameof(Document_Pages);
|
||||
@@ -1804,6 +1864,8 @@ public static class Strings
|
||||
|
||||
public static string Fg_Refusal_AmbiguousBand => ResourceManager.GetString(nameof(Fg_Refusal_AmbiguousBand), Culture) ?? nameof(Fg_Refusal_AmbiguousBand);
|
||||
|
||||
public static string Fg_Refusal_BeyondGeneration => ResourceManager.GetString(nameof(Fg_Refusal_BeyondGeneration), Culture) ?? nameof(Fg_Refusal_BeyondGeneration);
|
||||
|
||||
public static string Fg_Refusal_CountSaturated => ResourceManager.GetString(nameof(Fg_Refusal_CountSaturated), Culture) ?? nameof(Fg_Refusal_CountSaturated);
|
||||
|
||||
public static string Fg_Refusal_DxgiSaturated => ResourceManager.GetString(nameof(Fg_Refusal_DxgiSaturated), Culture) ?? nameof(Fg_Refusal_DxgiSaturated);
|
||||
@@ -1826,6 +1888,8 @@ public static class Strings
|
||||
|
||||
public static string Fg_RefusalDetail_AmbiguousBand_Format => ResourceManager.GetString(nameof(Fg_RefusalDetail_AmbiguousBand_Format), Culture) ?? nameof(Fg_RefusalDetail_AmbiguousBand_Format);
|
||||
|
||||
public static string Fg_RefusalDetail_BeyondGeneration_Format => ResourceManager.GetString(nameof(Fg_RefusalDetail_BeyondGeneration_Format), Culture) ?? nameof(Fg_RefusalDetail_BeyondGeneration_Format);
|
||||
|
||||
public static string Fg_RefusalDetail_MultipleStreams_Format => ResourceManager.GetString(nameof(Fg_RefusalDetail_MultipleStreams_Format), Culture) ?? nameof(Fg_RefusalDetail_MultipleStreams_Format);
|
||||
|
||||
public static string Fg_RefusalDetail_NonUniform_Format => ResourceManager.GetString(nameof(Fg_RefusalDetail_NonUniform_Format), Culture) ?? nameof(Fg_RefusalDetail_NonUniform_Format);
|
||||
@@ -2010,6 +2074,8 @@ public static class Strings
|
||||
|
||||
public static string Fps_Presented_Format => ResourceManager.GetString(nameof(Fps_Presented_Format), Culture) ?? nameof(Fps_Presented_Format);
|
||||
|
||||
public static string Fsr_Mode_NativeAa => ResourceManager.GetString(nameof(Fsr_Mode_NativeAa), Culture) ?? nameof(Fsr_Mode_NativeAa);
|
||||
|
||||
public static string GameDetail_AntiCheat_Exceptionable_Format => ResourceManager.GetString(nameof(GameDetail_AntiCheat_Exceptionable_Format), Culture) ?? nameof(GameDetail_AntiCheat_Exceptionable_Format);
|
||||
|
||||
public static string GameDetail_AntiCheat_Format => ResourceManager.GetString(nameof(GameDetail_AntiCheat_Format), Culture) ?? nameof(GameDetail_AntiCheat_Format);
|
||||
@@ -2542,6 +2608,8 @@ public static class Strings
|
||||
|
||||
public static string Nv_Mode_UltraPerformance => ResourceManager.GetString(nameof(Nv_Mode_UltraPerformance), Culture) ?? nameof(Nv_Mode_UltraPerformance);
|
||||
|
||||
public static string Nv_Mode_UltraQuality => ResourceManager.GetString(nameof(Nv_Mode_UltraQuality), Culture) ?? nameof(Nv_Mode_UltraQuality);
|
||||
|
||||
public static string Nv_Override_Fg => ResourceManager.GetString(nameof(Nv_Override_Fg), Culture) ?? nameof(Nv_Override_Fg);
|
||||
|
||||
public static string Nv_Override_None => ResourceManager.GetString(nameof(Nv_Override_None), Culture) ?? nameof(Nv_Override_None);
|
||||
@@ -2582,6 +2650,8 @@ public static class Strings
|
||||
|
||||
public static string Play_Elevated_Format => ResourceManager.GetString(nameof(Play_Elevated_Format), Culture) ?? nameof(Play_Elevated_Format);
|
||||
|
||||
public static string Play_Elevated_Steam_Format => ResourceManager.GetString(nameof(Play_Elevated_Steam_Format), Culture) ?? nameof(Play_Elevated_Steam_Format);
|
||||
|
||||
public static string Play_Epic_Format => ResourceManager.GetString(nameof(Play_Epic_Format), Culture) ?? nameof(Play_Epic_Format);
|
||||
|
||||
public static string Play_Failed_Format => ResourceManager.GetString(nameof(Play_Failed_Format), Culture) ?? nameof(Play_Failed_Format);
|
||||
@@ -2604,6 +2674,8 @@ public static class Strings
|
||||
|
||||
public static string Play_Started_Format => ResourceManager.GetString(nameof(Play_Started_Format), Culture) ?? nameof(Play_Started_Format);
|
||||
|
||||
public static string Play_Started_Steam_Format => ResourceManager.GetString(nameof(Play_Started_Steam_Format), Culture) ?? nameof(Play_Started_Steam_Format);
|
||||
|
||||
public static string Play_Steam_Format => ResourceManager.GetString(nameof(Play_Steam_Format), Culture) ?? nameof(Play_Steam_Format);
|
||||
|
||||
public static string Play_Title => ResourceManager.GetString(nameof(Play_Title), Culture) ?? nameof(Play_Title);
|
||||
@@ -3366,8 +3438,14 @@ public static class Strings
|
||||
|
||||
public static string Upscaler_DriverReported_Format => ResourceManager.GetString(nameof(Upscaler_DriverReported_Format), Culture) ?? nameof(Upscaler_DriverReported_Format);
|
||||
|
||||
public static string Upscaler_Mode_App_Format => ResourceManager.GetString(nameof(Upscaler_Mode_App_Format), Culture) ?? nameof(Upscaler_Mode_App_Format);
|
||||
|
||||
public static string Upscaler_Mode_Format => ResourceManager.GetString(nameof(Upscaler_Mode_Format), Culture) ?? nameof(Upscaler_Mode_Format);
|
||||
|
||||
public static string Upscaler_None => ResourceManager.GetString(nameof(Upscaler_None), Culture) ?? nameof(Upscaler_None);
|
||||
|
||||
public static string Upscaler_Override_App_Format => ResourceManager.GetString(nameof(Upscaler_Override_App_Format), Culture) ?? nameof(Upscaler_Override_App_Format);
|
||||
|
||||
public static string Upscaler_Unknown => ResourceManager.GetString(nameof(Upscaler_Unknown), Culture) ?? nameof(Upscaler_Unknown);
|
||||
|
||||
public static string Viewer_Banner_Body_Format => ResourceManager.GetString(nameof(Viewer_Banner_Body_Format), Culture) ?? nameof(Viewer_Banner_Body_Format);
|
||||
|
||||
@@ -489,6 +489,10 @@
|
||||
<value>—</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dashboard_Live_Count_Format" xml:space="preserve">
|
||||
<value>{0} 本のゲームを記録中</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dashboard_Live_CpuTemp_Format" xml:space="preserve">
|
||||
<value>CPU {0} °C</value>
|
||||
<comment>review</comment>
|
||||
@@ -4230,7 +4234,15 @@
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Play_ToolTip_Direct" xml:space="preserve">
|
||||
<value>プレイ: FrameLedger がゲームを自分で起動します。最初のフレームから記録し、通常の権限で実行します。</value>
|
||||
<value>プレイ: FrameLedger がゲームを自分で起動します。最初のフレームから記録し、通常の権限で実行します。Steam のゲームは先に Steam へ起動を引き継ぐことがあります。その場合は Steam が起動したゲームを記録します。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Play_Started_Steam_Format" xml:space="preserve">
|
||||
<value>FrameLedger が {0} を起動しています。Steam のゲームは先に Steam へ起動を引き継ぐことがあります。その場合は Steam が起動したゲームを記録します。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Play_Elevated_Steam_Format" xml:space="preserve">
|
||||
<value>FrameLedger が管理者として実行されているため、ストアではなくキャプチャ エージェントが通常の権限で {0} を起動しています。Steam のゲームは先に Steam へ起動を引き継ぐことがあります。その場合は Steam が起動したゲームを記録します。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Play_Title" xml:space="preserve">
|
||||
@@ -4298,7 +4310,7 @@
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Settings_PlayMode_Body" xml:space="preserve">
|
||||
<value>ストア経由: Steam と Epic Games Launcher がゲームを起動し、GOG GALAXY が実行し、itch アプリは先に確認します。どのストアからもインストールされていないゲームは FrameLedger が起動します。直接: FrameLedger がゲームを自分で起動します。最初のフレームから記録し、通常の権限で実行します。</value>
|
||||
<value>ストア経由: Steam と Epic Games Launcher がゲームを起動し、GOG GALAXY が実行し、itch アプリは先に確認します。どのストアからもインストールされていないゲームは FrameLedger が起動します。直接: FrameLedger がゲームを自分で起動します。最初のフレームから記録し、通常の権限で実行します。一部の Steam ゲームは直接起動すると Steam へ起動を引き継ぎます (その後 Steam が起動したゲームを記録します)。Steam 以外からは起動できないゲームもあるため、それらはストア経由で起動してください。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Settings_PlayMode_Store" xml:space="preserve">
|
||||
@@ -4493,4 +4505,96 @@
|
||||
<value>×{0:0.0} · {1:0}%</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Upscaler_Mode_Format" xml:space="preserve">
|
||||
<value>{0} {1}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Upscaler_Mode_App_Format" xml:space="preserve">
|
||||
<value>{0} {1} · NVIDIA App</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Upscaler_Override_App_Format" xml:space="preserve">
|
||||
<value>{0} · NVIDIA App による上書き</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Nv_Mode_UltraQuality" xml:space="preserve">
|
||||
<value>ウルトラ クオリティ</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Label_Format" xml:space="preserve">
|
||||
<value>{0}({1})</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Basis_Factor_Format" xml:space="preserve">
|
||||
<value>フレーム生成 ×{0:0.0} の状態</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Basis_Library_Format" xml:space="preserve">
|
||||
<value>ライブラリ {0}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Feature_SuperResolution" xml:space="preserve">
|
||||
<value>Super Resolution</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Feature_RayReconstruction" xml:space="preserve">
|
||||
<value>Ray Reconstruction</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Feature_FrameGeneration" xml:space="preserve">
|
||||
<value>Frame Generation</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Library_Format" xml:space="preserve">
|
||||
<value>{0} {1}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_From_Game" xml:space="preserve">
|
||||
<value>ゲームから</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_From_GraphicsDriver" xml:space="preserve">
|
||||
<value>グラフィックス ドライバーから</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_From_Windows" xml:space="preserve">
|
||||
<value>Windows から</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Preset_Format" xml:space="preserve">
|
||||
<value>プリセット {0}({1})</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Model_Cnn" xml:space="preserve">
|
||||
<value>CNN モデル</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Model_Transformer" xml:space="preserve">
|
||||
<value>Transformer モデル</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Model_SecondGenerationTransformer" xml:space="preserve">
|
||||
<value>第 2 世代 Transformer モデル</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_Model_Unknown" xml:space="preserve">
|
||||
<value>モデル不明</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Dlss_NeuralRendering_Loaded" xml:space="preserve">
|
||||
<value>DLSS 5 ランタイムを読み込み済み</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Fsr_Mode_NativeAa" xml:space="preserve">
|
||||
<value>ネイティブ AA</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Fg_Refusal_BeyondGeneration" xml:space="preserve">
|
||||
<value>比率がどのフレーム生成の上限も超えています</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Fg_RefusalDetail_BeyondGeneration_Format" xml:space="preserve">
|
||||
<value>presents ÷ tokens = {0}。フレーム生成の上限 {1} を超えています。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
</root>
|
||||
@@ -372,6 +372,9 @@
|
||||
<data name="Common_Dash" xml:space="preserve">
|
||||
<value>—</value>
|
||||
</data>
|
||||
<data name="Dashboard_Live_Count_Format" xml:space="preserve">
|
||||
<value>{0} games recording</value>
|
||||
</data>
|
||||
<data name="Dashboard_Live_CpuTemp_Format" xml:space="preserve">
|
||||
<value>CPU {0} °C</value>
|
||||
</data>
|
||||
@@ -3183,7 +3186,13 @@ The documents below are the full terms; this summary does not replace them.</val
|
||||
<value>Play through the store that installed the game: Steam or the Epic Games Launcher starts it, GOG GALAXY runs it, the itch app asks first. A game no store installed is started by FrameLedger.</value>
|
||||
</data>
|
||||
<data name="Play_ToolTip_Direct" xml:space="preserve">
|
||||
<value>Play: FrameLedger starts the game itself, recorded from its first frame, with your standard rights.</value>
|
||||
<value>Play: FrameLedger starts the game itself, recorded from its first frame, with your standard rights. A Steam game may hand itself to Steam first; the game Steam then starts is recorded.</value>
|
||||
</data>
|
||||
<data name="Play_Started_Steam_Format" xml:space="preserve">
|
||||
<value>FrameLedger is starting {0}. A Steam game may hand itself to Steam first; the game Steam then starts is recorded.</value>
|
||||
</data>
|
||||
<data name="Play_Elevated_Steam_Format" xml:space="preserve">
|
||||
<value>FrameLedger is running as administrator, so the capture agent is starting {0} with your standard rights instead of its store. A Steam game may hand itself to Steam first; the game Steam then starts is recorded.</value>
|
||||
</data>
|
||||
<data name="Play_Title" xml:space="preserve">
|
||||
<value>Play</value>
|
||||
@@ -3234,7 +3243,7 @@ The documents below are the full terms; this summary does not replace them.</val
|
||||
<value>Play button</value>
|
||||
</data>
|
||||
<data name="Settings_PlayMode_Body" xml:space="preserve">
|
||||
<value>Through the store: Steam and the Epic Games Launcher start the game, GOG GALAXY runs it, the itch app asks first; a game no store installed is started by FrameLedger. Directly: FrameLedger starts the game itself — recorded from its first frame, with your standard rights.</value>
|
||||
<value>Through the store: Steam and the Epic Games Launcher start the game, GOG GALAXY runs it, the itch app asks first; a game no store installed is started by FrameLedger. Directly: FrameLedger starts the game itself — recorded from its first frame, with your standard rights. Some Steam games hand themselves to Steam when started directly — the game Steam then starts is recorded — and a few will not start outside Steam at all: start those through the store.</value>
|
||||
</data>
|
||||
<data name="Settings_PlayMode_Store" xml:space="preserve">
|
||||
<value>Through the store</value>
|
||||
@@ -3380,4 +3389,73 @@ The documents below are the full terms; this summary does not replace them.</val
|
||||
<data name="Fps_Fg_Column_Steady_Format" xml:space="preserve">
|
||||
<value>×{0:0.0} · {1:0}%</value>
|
||||
</data>
|
||||
<data name="Upscaler_Mode_Format" xml:space="preserve">
|
||||
<value>{0} {1}</value>
|
||||
</data>
|
||||
<data name="Upscaler_Mode_App_Format" xml:space="preserve">
|
||||
<value>{0} {1} · NVIDIA App</value>
|
||||
</data>
|
||||
<data name="Upscaler_Override_App_Format" xml:space="preserve">
|
||||
<value>{0} · NVIDIA App override</value>
|
||||
</data>
|
||||
<data name="Nv_Mode_UltraQuality" xml:space="preserve">
|
||||
<value>Ultra Quality</value>
|
||||
</data>
|
||||
<data name="Dlss_Label_Format" xml:space="preserve">
|
||||
<value>{0} ({1})</value>
|
||||
</data>
|
||||
<data name="Dlss_Basis_Factor_Format" xml:space="preserve">
|
||||
<value>a ×{0:0.0} frame-generation state</value>
|
||||
</data>
|
||||
<data name="Dlss_Basis_Library_Format" xml:space="preserve">
|
||||
<value>library {0}</value>
|
||||
</data>
|
||||
<data name="Dlss_Feature_SuperResolution" xml:space="preserve">
|
||||
<value>Super Resolution</value>
|
||||
</data>
|
||||
<data name="Dlss_Feature_RayReconstruction" xml:space="preserve">
|
||||
<value>Ray Reconstruction</value>
|
||||
</data>
|
||||
<data name="Dlss_Feature_FrameGeneration" xml:space="preserve">
|
||||
<value>Frame Generation</value>
|
||||
</data>
|
||||
<data name="Dlss_Library_Format" xml:space="preserve">
|
||||
<value>{0} {1}</value>
|
||||
</data>
|
||||
<data name="Dlss_From_Game" xml:space="preserve">
|
||||
<value>from the game</value>
|
||||
</data>
|
||||
<data name="Dlss_From_GraphicsDriver" xml:space="preserve">
|
||||
<value>from the graphics driver</value>
|
||||
</data>
|
||||
<data name="Dlss_From_Windows" xml:space="preserve">
|
||||
<value>from Windows</value>
|
||||
</data>
|
||||
<data name="Dlss_Preset_Format" xml:space="preserve">
|
||||
<value>preset {0} ({1})</value>
|
||||
</data>
|
||||
<data name="Dlss_Model_Cnn" xml:space="preserve">
|
||||
<value>CNN model</value>
|
||||
</data>
|
||||
<data name="Dlss_Model_Transformer" xml:space="preserve">
|
||||
<value>transformer model</value>
|
||||
</data>
|
||||
<data name="Dlss_Model_SecondGenerationTransformer" xml:space="preserve">
|
||||
<value>2nd-gen transformer model</value>
|
||||
</data>
|
||||
<data name="Dlss_Model_Unknown" xml:space="preserve">
|
||||
<value>model not placed</value>
|
||||
</data>
|
||||
<data name="Dlss_NeuralRendering_Loaded" xml:space="preserve">
|
||||
<value>DLSS 5 runtime loaded</value>
|
||||
</data>
|
||||
<data name="Fsr_Mode_NativeAa" xml:space="preserve">
|
||||
<value>Native AA</value>
|
||||
</data>
|
||||
<data name="Fg_Refusal_BeyondGeneration" xml:space="preserve">
|
||||
<value>the ratio is beyond what any frame generation produces</value>
|
||||
</data>
|
||||
<data name="Fg_RefusalDetail_BeyondGeneration_Format" xml:space="preserve">
|
||||
<value>presents ÷ tokens = {0}, above {1}, the most any frame generation produces.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -367,6 +367,9 @@
|
||||
<data name="Common_Dash" xml:space="preserve">
|
||||
<value>—</value>
|
||||
</data>
|
||||
<data name="Dashboard_Live_Count_Format" xml:space="preserve">
|
||||
<value>Đang ghi {0} game</value>
|
||||
</data>
|
||||
<data name="Dashboard_Live_CpuTemp_Format" xml:space="preserve">
|
||||
<value>CPU {0} °C</value>
|
||||
</data>
|
||||
@@ -3178,7 +3181,13 @@ Các văn bản bên dưới là điều khoản đầy đủ; bản tóm tắt
|
||||
<value>Chơi qua store đã cài game: Steam hoặc Epic Games Launcher sẽ chạy game, GOG GALAXY chạy game, app itch hỏi trước. Game không do store nào cài thì FrameLedger tự chạy.</value>
|
||||
</data>
|
||||
<data name="Play_ToolTip_Direct" xml:space="preserve">
|
||||
<value>Chơi: FrameLedger tự chạy game, ghi lại từ khung hình đầu tiên, với quyền thường của bạn.</value>
|
||||
<value>Chơi: FrameLedger tự chạy game, ghi lại từ khung hình đầu tiên, với quyền thường của bạn. Game Steam có thể tự chuyển sang Steam trước; game do Steam chạy sau đó vẫn được ghi lại.</value>
|
||||
</data>
|
||||
<data name="Play_Started_Steam_Format" xml:space="preserve">
|
||||
<value>FrameLedger đang chạy {0}. Game Steam có thể tự chuyển sang Steam trước; game do Steam chạy sau đó vẫn được ghi lại.</value>
|
||||
</data>
|
||||
<data name="Play_Elevated_Steam_Format" xml:space="preserve">
|
||||
<value>FrameLedger đang chạy với quyền quản trị, nên capture agent sẽ chạy {0} với quyền thường của bạn thay vì qua store. Game Steam có thể tự chuyển sang Steam trước; game do Steam chạy sau đó vẫn được ghi lại.</value>
|
||||
</data>
|
||||
<data name="Play_Title" xml:space="preserve">
|
||||
<value>Chơi</value>
|
||||
@@ -3229,7 +3238,7 @@ Các văn bản bên dưới là điều khoản đầy đủ; bản tóm tắt
|
||||
<value>Nút Chơi</value>
|
||||
</data>
|
||||
<data name="Settings_PlayMode_Body" xml:space="preserve">
|
||||
<value>Qua store: Steam và Epic Games Launcher chạy game, GOG GALAXY chạy game, app itch hỏi trước; game không do store nào cài thì FrameLedger tự chạy. Chạy trực tiếp: FrameLedger tự chạy game — ghi lại từ khung hình đầu tiên, với quyền thường của bạn.</value>
|
||||
<value>Qua store: Steam và Epic Games Launcher chạy game, GOG GALAXY chạy game, app itch hỏi trước; game không do store nào cài thì FrameLedger tự chạy. Chạy trực tiếp: FrameLedger tự chạy game — ghi lại từ khung hình đầu tiên, với quyền thường của bạn. Một số game Steam tự chuyển sang Steam khi được chạy trực tiếp — game do Steam chạy sau đó vẫn được ghi lại — và vài game không chạy được ngoài Steam: hãy chạy chúng qua store.</value>
|
||||
</data>
|
||||
<data name="Settings_PlayMode_Store" xml:space="preserve">
|
||||
<value>Qua store</value>
|
||||
@@ -3375,4 +3384,73 @@ Các văn bản bên dưới là điều khoản đầy đủ; bản tóm tắt
|
||||
<data name="Fps_Fg_Column_Steady_Format" xml:space="preserve">
|
||||
<value>×{0:0.0} · {1:0}%</value>
|
||||
</data>
|
||||
<data name="Upscaler_Mode_Format" xml:space="preserve">
|
||||
<value>{0} {1}</value>
|
||||
</data>
|
||||
<data name="Upscaler_Mode_App_Format" xml:space="preserve">
|
||||
<value>{0} {1} · NVIDIA App</value>
|
||||
</data>
|
||||
<data name="Upscaler_Override_App_Format" xml:space="preserve">
|
||||
<value>{0} · ghi đè từ NVIDIA App</value>
|
||||
</data>
|
||||
<data name="Nv_Mode_UltraQuality" xml:space="preserve">
|
||||
<value>Ultra Quality</value>
|
||||
</data>
|
||||
<data name="Dlss_Label_Format" xml:space="preserve">
|
||||
<value>{0} ({1})</value>
|
||||
</data>
|
||||
<data name="Dlss_Basis_Factor_Format" xml:space="preserve">
|
||||
<value>trạng thái tạo khung hình ×{0:0.0}</value>
|
||||
</data>
|
||||
<data name="Dlss_Basis_Library_Format" xml:space="preserve">
|
||||
<value>thư viện {0}</value>
|
||||
</data>
|
||||
<data name="Dlss_Feature_SuperResolution" xml:space="preserve">
|
||||
<value>Super Resolution</value>
|
||||
</data>
|
||||
<data name="Dlss_Feature_RayReconstruction" xml:space="preserve">
|
||||
<value>Ray Reconstruction</value>
|
||||
</data>
|
||||
<data name="Dlss_Feature_FrameGeneration" xml:space="preserve">
|
||||
<value>Frame Generation</value>
|
||||
</data>
|
||||
<data name="Dlss_Library_Format" xml:space="preserve">
|
||||
<value>{0} {1}</value>
|
||||
</data>
|
||||
<data name="Dlss_From_Game" xml:space="preserve">
|
||||
<value>từ game</value>
|
||||
</data>
|
||||
<data name="Dlss_From_GraphicsDriver" xml:space="preserve">
|
||||
<value>từ driver đồ họa</value>
|
||||
</data>
|
||||
<data name="Dlss_From_Windows" xml:space="preserve">
|
||||
<value>từ Windows</value>
|
||||
</data>
|
||||
<data name="Dlss_Preset_Format" xml:space="preserve">
|
||||
<value>preset {0} ({1})</value>
|
||||
</data>
|
||||
<data name="Dlss_Model_Cnn" xml:space="preserve">
|
||||
<value>mô hình CNN</value>
|
||||
</data>
|
||||
<data name="Dlss_Model_Transformer" xml:space="preserve">
|
||||
<value>mô hình transformer</value>
|
||||
</data>
|
||||
<data name="Dlss_Model_SecondGenerationTransformer" xml:space="preserve">
|
||||
<value>mô hình transformer thế hệ 2</value>
|
||||
</data>
|
||||
<data name="Dlss_Model_Unknown" xml:space="preserve">
|
||||
<value>mô hình chưa xác định</value>
|
||||
</data>
|
||||
<data name="Dlss_NeuralRendering_Loaded" xml:space="preserve">
|
||||
<value>đã nạp runtime DLSS 5</value>
|
||||
</data>
|
||||
<data name="Fsr_Mode_NativeAa" xml:space="preserve">
|
||||
<value>Native AA</value>
|
||||
</data>
|
||||
<data name="Fg_Refusal_BeyondGeneration" xml:space="preserve">
|
||||
<value>tỷ lệ vượt quá mức mọi công nghệ tạo khung có thể sinh ra</value>
|
||||
</data>
|
||||
<data name="Fg_RefusalDetail_BeyondGeneration_Format" xml:space="preserve">
|
||||
<value>presents ÷ tokens = {0}, vượt {1} — mức cao nhất mọi công nghệ tạo khung sinh ra.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -14,7 +14,7 @@ namespace FrameLedger.App.ViewModels;
|
||||
/// <summary>
|
||||
/// The Dashboard (08_UI §Dashboard): the Agent status card (what <c>HelloAck</c> and <c>StatusAck</c> said, every
|
||||
/// value <c>N/A</c> until the Agent answered — never a placeholder that reads as a measurement), the live capture
|
||||
/// card fed by the pipe's events, the recent sessions, and the totals strip.
|
||||
/// cards fed by the pipe's events — one per running session since beta.28 —, the recent sessions, and the totals strip.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>It listens only while its page is on screen (beta.23):</b> <see cref="Attach"/> on Loaded, <see cref="Detach"/> on
|
||||
@@ -22,6 +22,7 @@ namespace FrameLedger.App.ViewModels;
|
||||
/// the root container kept every Dashboard ever opened, each answering every event and reloading its lists on the UI thread
|
||||
/// at every session's end. FR-3.8's notice, which it raised, is <see cref="SessionNotices"/>'s.
|
||||
/// </remarks>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1863:Use 'CompositeFormat'", Justification = "the format strings are resources that follow the UI culture, which changes at runtime")]
|
||||
public sealed partial class DashboardViewModel : ObservableObject
|
||||
{
|
||||
private readonly IAgentLink _agent;
|
||||
@@ -92,7 +93,24 @@ public sealed partial class DashboardViewModel : ObservableObject
|
||||
|
||||
public static string TotalsThisWeek => Strings.Dashboard_Totals_ThisWeek;
|
||||
|
||||
public LiveCaptureViewModel Live { get; } = new();
|
||||
/// <summary>
|
||||
/// The live capture cards: one per session the Agent is running (beta.28 — the owner, 2026-10-20: the Dashboard when two
|
||||
/// or more games run at once), hooked sessions first and each kind in the order it started. Until beta.28 there was one
|
||||
/// card, which a hooked session took from an unhooked one, and a second game showed only as the status card's count.
|
||||
/// </summary>
|
||||
public ObservableCollection<LiveCaptureViewModel> LiveCards { get; } = [];
|
||||
|
||||
/// <summary>No session is running: one card says nothing is being captured.</summary>
|
||||
[ObservableProperty]
|
||||
private bool _liveIdle = true;
|
||||
|
||||
/// <summary>"2 games recording" beside the header from two sessions on; null for one or none.</summary>
|
||||
[ObservableProperty]
|
||||
private string? _liveCountText;
|
||||
|
||||
/// <summary>The cards side by side from two sessions on, two to a row.</summary>
|
||||
[ObservableProperty]
|
||||
private int _liveColumns = 1;
|
||||
|
||||
public ObservableCollection<RecentSessionViewModel> Recent { get; } = [];
|
||||
|
||||
@@ -188,38 +206,58 @@ public sealed partial class DashboardViewModel : ObservableObject
|
||||
});
|
||||
|
||||
/// <summary>
|
||||
/// A session already running takes the idle card (2026-09-23): the Dashboard is rebuilt on every visit, so one that
|
||||
/// started while another page was open had no start event here and read "Nothing is being captured.". A hooked
|
||||
/// session is preferred over one recorded without measuring.
|
||||
/// Every session already running has its card (2026-09-23; one card each since beta.28): the Dashboard is rebuilt on
|
||||
/// every visit, so one that started while another page was open had no start event here and read "Nothing is being
|
||||
/// captured.". A card with no name yet — made by a tick that came before the session was known — gets its name here.
|
||||
/// </summary>
|
||||
private void SeedLive()
|
||||
{
|
||||
if (Live.IsActive || _sessions?.Current is not { Count: > 0 } running)
|
||||
foreach (RunningSession session in _sessions?.Current ?? [])
|
||||
{
|
||||
return;
|
||||
if (Find(session.SessionGuid) is { } card)
|
||||
{
|
||||
if (card.GameName.Length == 0)
|
||||
{
|
||||
card.Seed(session);
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
var seeded = new LiveCaptureViewModel(session.SessionGuid);
|
||||
seeded.Seed(session);
|
||||
LiveCards.Add(seeded);
|
||||
}
|
||||
|
||||
Live.Seed(running.FirstOrDefault(static s => s.Tier == 1) ?? running[0]);
|
||||
Arrange();
|
||||
}
|
||||
|
||||
/// <summary>The three session events drive the live card; a completed session reloads the lists (07_IPC §Client behavior: the row is in SQLite).</summary>
|
||||
/// <summary>The four session events drive the cards, each its own session's; a completed session reloads the lists (07_IPC §Client behavior: the row is in SQLite).</summary>
|
||||
private void Dispatch(IpcEnvelope envelope)
|
||||
{
|
||||
switch (envelope.Type)
|
||||
{
|
||||
case IpcMessageType.SessionStarted when IpcCodec.Payload<SessionStartedEvent>(envelope) is { } started:
|
||||
Live.Start(started);
|
||||
CardFor(started.SessionGuid).Start(started);
|
||||
Arrange();
|
||||
break;
|
||||
case IpcMessageType.SessionProgress when IpcCodec.Payload<SessionProgressEvent>(envelope) is { } progress:
|
||||
Live.Update(progress);
|
||||
// A tick is hooked: a session that attached since it started moves among the hooked ones.
|
||||
CardFor(progress.SessionGuid).Update(progress);
|
||||
Arrange();
|
||||
break;
|
||||
case IpcMessageType.SessionHeld when IpcCodec.Payload<SessionHeldEvent>(envelope) is { } held:
|
||||
Live.Hold(held);
|
||||
CardFor(held.SessionGuid).Hold(held);
|
||||
break;
|
||||
case IpcMessageType.SessionCompleted when IpcCodec.Payload<SessionCompletedEvent>(envelope) is { } completed:
|
||||
// FR-3.8's notice is SessionNotices' (beta.23); the card and the lists are this page's.
|
||||
Live.Stop(completed);
|
||||
SeedLive();
|
||||
// FR-3.8's notice is SessionNotices' (beta.23); the cards and the lists are this page's.
|
||||
if (Find(completed.SessionGuid) is { } ended)
|
||||
{
|
||||
ended.Stop(completed);
|
||||
LiveCards.Remove(ended);
|
||||
}
|
||||
|
||||
Arrange();
|
||||
Pending = LoadAsync();
|
||||
break;
|
||||
default:
|
||||
@@ -227,6 +265,47 @@ public sealed partial class DashboardViewModel : ObservableObject
|
||||
}
|
||||
}
|
||||
|
||||
private LiveCaptureViewModel? Find(Guid sessionGuid) => LiveCards.FirstOrDefault(c => c.SessionGuid == sessionGuid);
|
||||
|
||||
/// <summary>
|
||||
/// The card of <paramref name="sessionGuid"/>, made when its first event arrives: named from the running sessions when
|
||||
/// they know it, else by its seed when they do (<see cref="SeedLive"/>).
|
||||
/// </summary>
|
||||
private LiveCaptureViewModel CardFor(Guid sessionGuid)
|
||||
{
|
||||
if (Find(sessionGuid) is { } card)
|
||||
{
|
||||
return card;
|
||||
}
|
||||
|
||||
card = new LiveCaptureViewModel(sessionGuid);
|
||||
if (_sessions?.Current.FirstOrDefault(s => s.SessionGuid == sessionGuid) is { } running)
|
||||
{
|
||||
card.Seed(running);
|
||||
}
|
||||
|
||||
LiveCards.Add(card);
|
||||
return card;
|
||||
}
|
||||
|
||||
/// <summary>Hooked sessions first, each kind in the order it came — moved, never rebuilt, so a card keeps its bindings.</summary>
|
||||
private void Arrange()
|
||||
{
|
||||
List<LiveCaptureViewModel> ordered = [.. LiveCards.OrderBy(static c => c.Tier == 1 ? 0 : 1)];
|
||||
for (int i = 0; i < ordered.Count; i++)
|
||||
{
|
||||
int at = LiveCards.IndexOf(ordered[i]);
|
||||
if (at != i)
|
||||
{
|
||||
LiveCards.Move(at, i);
|
||||
}
|
||||
}
|
||||
|
||||
LiveIdle = LiveCards.Count == 0;
|
||||
LiveColumns = LiveCards.Count >= 2 ? 2 : 1;
|
||||
LiveCountText = LiveCards.Count >= 2 ? string.Format(CultureInfo.CurrentCulture, Strings.Dashboard_Live_Count_Format, LiveCards.Count) : null;
|
||||
}
|
||||
|
||||
private void Refresh()
|
||||
{
|
||||
AgentState = AgentStatusPresentation.Pill(_agent.State).Text;
|
||||
|
||||
@@ -1252,8 +1252,14 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
}
|
||||
|
||||
MeasuredEmptyText = string.Empty;
|
||||
string upscaler = Formats.Upscaler(lastHooked.Upscaler, lastHooked.UpscalerQuality, lastHooked.UpscalerDriverReported);
|
||||
string upscaler = Formats.UpscalerOf(lastHooked);
|
||||
Measured.Add(upscaler + " · " + Formats.Resolution(lastHooked.RenderW, lastHooked.RenderH, lastHooked.OutputW, lastHooked.OutputH));
|
||||
if (DlssText.Label(lastHooked) is { } dlss)
|
||||
{
|
||||
// beta.24 (D64): a DLSS generation only where the session showed one, with what it rests on.
|
||||
Measured.Add(dlss);
|
||||
}
|
||||
|
||||
Measured.Add(FpsPresentation.FrameGenerationLabel(FpsPresentation.FromRow(lastHooked), lastHooked.FgMode));
|
||||
foreach (TriStateChipModel chip in Chips.Where(static c => !c.IsNotApplicable))
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ using FrameLedger.Shared.Ipc;
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>
|
||||
/// The Dashboard's live capture card (<c>08_UI</c> §Dashboard), fed by <c>SessionStarted</c> / <c>SessionProgress</c> /
|
||||
/// One of the Dashboard's live capture cards (<c>08_UI</c> §Dashboard), fed by <c>SessionStarted</c> / <c>SessionProgress</c> /
|
||||
/// <c>SessionHeld</c> / <c>SessionCompleted</c>. Tier 1 shows measured settings as facts; the readout follows the FPS
|
||||
/// display rule at 1 Hz, qualifier included, and since beta.12 the game's own memory. There is no sparkline: this said it
|
||||
/// was PR-6's, and PR-6 shipped without one (<c>08_UI</c> §Dashboard).
|
||||
@@ -19,7 +19,9 @@ namespace FrameLedger.App.ViewModels;
|
||||
/// <b>A session that is not measured is shown too (2026-09-23).</b> Its name, its tier, how long it has run, the machine's
|
||||
/// temperatures, and why nothing is measured — the same words its summary will use — with no readout at all. Until this
|
||||
/// date the Agent announced only hooked sessions, and a hooking-off or refused game read "Nothing is being captured." for
|
||||
/// as long as it ran. When two sessions run, a hooked one takes the card.
|
||||
/// as long as it ran. <b>A card is one session's (beta.28):</b> the Dashboard keeps one per running session
|
||||
/// (<see cref="DashboardViewModel.LiveCards"/>); until then there was one card, which a hooked session took from an
|
||||
/// unhooked one, and a second game was shown nowhere.
|
||||
/// </remarks>
|
||||
[SuppressMessage("Performance", "CA1863:Use 'CompositeFormat'", Justification = "the format strings are resources that follow the UI culture, which changes at runtime")]
|
||||
public sealed partial class LiveCaptureViewModel : ObservableObject
|
||||
@@ -77,6 +79,14 @@ public sealed partial class LiveCaptureViewModel : ObservableObject
|
||||
[ObservableProperty]
|
||||
private string _memoryText = string.Empty;
|
||||
|
||||
/// <summary>A card for no session yet; its first start, seed or tick says whose it is.</summary>
|
||||
public LiveCaptureViewModel()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>A card for <paramref name="sessionGuid"/> (beta.28): an event of another session leaves it alone.</summary>
|
||||
public LiveCaptureViewModel(Guid sessionGuid) => SessionGuid = sessionGuid;
|
||||
|
||||
public Guid? SessionGuid { get; private set; }
|
||||
|
||||
public static string Header => Strings.Dashboard_Live_Header;
|
||||
@@ -120,8 +130,8 @@ public sealed partial class LiveCaptureViewModel : ObservableObject
|
||||
|
||||
private void Show(Guid sessionGuid, string? gameName, int tier, SessionHold? hold)
|
||||
{
|
||||
// A hooked session takes the card from an unhooked one, never the other way round.
|
||||
if (IsActive && SessionGuid is Guid shown && shown != sessionGuid && (Tier == 1 || tier != 1))
|
||||
// A card is one session's (beta.28): another session has a card of its own.
|
||||
if (SessionGuid is Guid shown && shown != sessionGuid)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -162,7 +172,7 @@ public sealed partial class LiveCaptureViewModel : ObservableObject
|
||||
ElapsedText = string.Format(CultureInfo.CurrentCulture, Strings.Dashboard_Live_Elapsed_Format, Formats.Duration(progress.ElapsedS));
|
||||
Readout = FpsPresentation.FromProgress(progress);
|
||||
ResolutionText = Formats.Resolution(progress.RenderW, progress.RenderH, progress.OutputW, progress.OutputH);
|
||||
UpscalerText = Formats.Upscaler(progress.Upscaler, progress.UpscalerQuality, progress.UpscalerDriverReported);
|
||||
UpscalerText = Formats.UpscalerOf(progress);
|
||||
FgText = FpsPresentation.FrameGenerationLabel(Readout, progress.FgMode);
|
||||
RtActive = progress.RtActive == true;
|
||||
GpuTempText = progress.GpuTempC is double g ? string.Format(CultureInfo.CurrentCulture, Strings.Dashboard_Live_GpuTemp_Format, Math.Round(g)) : string.Empty;
|
||||
|
||||
@@ -38,7 +38,7 @@ public sealed class SessionItemViewModel
|
||||
FpsTooltip = FpsPresentation.ColumnTooltip(row);
|
||||
P1LowText = IsHooked ? Formats.Fps(row.P1LowFps) : Strings.Common_NotAvailable;
|
||||
P01LowText = IsHooked ? Formats.Fps(row.P01LowFps) : Strings.Common_NotAvailable;
|
||||
ResolutionText = IsHooked ? Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH) + " · " + Formats.Upscaler(row.Upscaler, row.UpscalerQuality, row.UpscalerDriverReported) : Strings.Common_NotAvailable;
|
||||
ResolutionText = IsHooked ? Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH) + " · " + Formats.UpscalerOf(row) : Strings.Common_NotAvailable;
|
||||
GpuTempText = Formats.Temperature(row.MaxGpuTemp);
|
||||
// beta.12 (D43), both tiers: the game's own memory, median · peak, the rest in the tooltip.
|
||||
IReadOnlyDictionary<string, Application.Recording.SensorSeriesStats> stats = Application.Recording.SensorSeriesStats.Parse(row.SensorStatsJson);
|
||||
|
||||
@@ -55,6 +55,13 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
[ObservableProperty]
|
||||
private string? _librariesLine;
|
||||
|
||||
/// <summary>
|
||||
/// beta.24 (D64): the DLSS the session ran — a generation only where the session shows one, each DLSS library's version
|
||||
/// and where it was loaded from, the preset the driver reports, DLSS 5's runtime when loaded; null with no DLSS at all.
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private string? _dlssLine;
|
||||
|
||||
/// <summary>
|
||||
/// The NVIDIA driver profile the game ran under and what it overrides (<c>sessions.driver_profile</c>, beta.8) — the
|
||||
/// NVIDIA App's DLSS and frame-generation overrides; null where no NVIDIA driver was there to ask.
|
||||
@@ -411,11 +418,12 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
Readout = FpsPresentation.FromRow(row);
|
||||
Line = string.Format(CultureInfo.CurrentCulture, Strings.Summary_Line_Format,
|
||||
IsHooked ? Formats.Api(row.Api) : Strings.Tier_NotHooked, row.PresentMode ?? Strings.Common_NotAvailable,
|
||||
IsHooked ? Formats.Upscaler(row.Upscaler, row.UpscalerQuality, row.UpscalerDriverReported) : Strings.Common_NotAvailable, Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH));
|
||||
IsHooked ? Formats.UpscalerOf(row) : Strings.Common_NotAvailable, Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH));
|
||||
HardwareLine = _snapshot is null
|
||||
? string.Empty
|
||||
: string.Join(" · ", SystemInfoViewModel.Describe(_snapshot).Where(static l => !string.Equals(l.Value, Strings.Common_NotAvailable, StringComparison.Ordinal)).Select(static l => l.Value));
|
||||
LibrariesLine = LoadedLibraries(row.RuntimeModulesJson, Game.Libraries);
|
||||
DlssLine = IsHooked ? DlssText.Line(row) : null;
|
||||
DriverProfileLine = NvidiaOverrides.ProfileLine(row.DriverProfileJson);
|
||||
DriverStateLine = NvidiaOverrides.DriverLine(row.NgxDriverWordsJson);
|
||||
DisplayLine = DisplayText.Line(DisplayText.Of(row));
|
||||
|
||||
@@ -47,6 +47,9 @@
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" TextWrapping="Wrap" Text="{Binding ViewModel.DisplayLine}"
|
||||
Visibility="{Binding ViewModel.DisplayLine, Converter={StaticResource NullToCollapsed}}" />
|
||||
<ui:TextBlock Style="{StaticResource TertiaryText}" TextWrapping="Wrap" Text="{Binding ViewModel.HardwareLine}" />
|
||||
<!-- beta.24 (D64): the DLSS the session ran, each library with its version and where it was loaded from -->
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" TextWrapping="Wrap" Text="{Binding ViewModel.DlssLine}"
|
||||
Visibility="{Binding ViewModel.DlssLine, Converter={StaticResource NullToCollapsed}}" />
|
||||
<ui:TextBlock Style="{StaticResource TertiaryText}" TextWrapping="Wrap" Text="{Binding ViewModel.LibrariesLine}"
|
||||
Visibility="{Binding ViewModel.LibrariesLine, Converter={StaticResource NullToCollapsed}}" />
|
||||
<ui:TextBlock Style="{StaticResource TertiaryText}" TextWrapping="Wrap" Text="{Binding ViewModel.DriverProfileLine}"
|
||||
|
||||
@@ -557,8 +557,8 @@ public sealed class CaptureSession(
|
||||
|
||||
// ONE LAST SNAPSHOT before the last drain, so a module that loaded after the final scan is
|
||||
// still named; on TargetExited it reads nothing, which the tally counts rather than hides. The last
|
||||
// display sample stands until here (beta.10).
|
||||
state.Loaded.Take(pid);
|
||||
// display sample stands until here (beta.10). The driver is not asked once the game has gone (Take, beta.27).
|
||||
state.Loaded.Take(pid, askDriver: !(alive.HasExited || end == SessionEndReason.TargetExited));
|
||||
state.Display.Finish(state.Paused);
|
||||
|
||||
// ONE LAST DRAIN ON EVERY PATH, including the faulted one — that is the whole point of catching
|
||||
@@ -647,7 +647,14 @@ public sealed class CaptureSession(
|
||||
/// </summary>
|
||||
public List<long> TouchQpc { get; } = [];
|
||||
|
||||
public void Take(int pid)
|
||||
/// <summary>One touch: the module snapshot, and the driver's NGX word unless <paramref name="askDriver"/> is false.</summary>
|
||||
/// <param name="pid">The target.</param>
|
||||
/// <param name="askDriver">
|
||||
/// False once the game has gone (beta.27): the driver still answers for its pid, with the bits that say a feature ran
|
||||
/// cleared, and that answer — the last — replaced every reading taken while the game ran. No session the owner
|
||||
/// stored from 2026-10-04 to 2026-10-20 kept CREATED | EVALUATE.
|
||||
/// </param>
|
||||
public void Take(int pid, bool askDriver = true)
|
||||
{
|
||||
TouchQpc.Add(System.Diagnostics.Stopwatch.GetTimestamp());
|
||||
if (source is not null)
|
||||
@@ -655,7 +662,7 @@ public sealed class CaptureSession(
|
||||
Set = Set.Merge(source.Take(pid));
|
||||
}
|
||||
|
||||
if (ngxSource is not null)
|
||||
if (ngxSource is not null && askDriver)
|
||||
{
|
||||
Ngx = Ngx.Merge(ngxSource.Run(pid));
|
||||
}
|
||||
|
||||
@@ -40,11 +40,19 @@ public static class CensusNames
|
||||
];
|
||||
|
||||
/// <summary>
|
||||
/// Every module FILE name the census can answer for — the <c>a / b</c> pairs above split into
|
||||
/// their members — so a module snapshot asks about exactly the set the census names.
|
||||
/// Modules the snapshot records though the in-process census has no bit for them (beta.24, D64): DLSS's Ray
|
||||
/// Reconstruction and DLSS 5's runtime, Streamline's other plugins, and AMD's FidelityFX loader. The name of DLSS 5's
|
||||
/// runtime, <c>nvngx_dlssnr.dll</c>, is from community sources until owner-only item 20(d) sees it load.
|
||||
/// </summary>
|
||||
private static readonly string[] _snapshotOnly =
|
||||
["sl.dlss_d.dll", "sl.common.dll", "sl.reflex.dll", "amd_fidelityfx_loader_dx12.dll", "nvngx_dlssnr.dll"];
|
||||
|
||||
/// <summary>
|
||||
/// Every module FILE name a snapshot answers for — the census's, the <c>a / b</c> pairs above split into their
|
||||
/// members, then the names only the snapshot records.
|
||||
/// </summary>
|
||||
public static IReadOnlyList<string> ModuleFileNames { get; } =
|
||||
_names.SelectMany(n => n.Name.Split(" / ", StringSplitOptions.RemoveEmptyEntries)).ToArray();
|
||||
[.. _names.SelectMany(n => n.Name.Split(" / ", StringSplitOptions.RemoveEmptyEntries)), .. _snapshotOnly];
|
||||
|
||||
/// <summary>Comma-separated module names for the set family bits; <c>-</c> when none.</summary>
|
||||
public static string Describe(FlRuntimeCensus bits)
|
||||
|
||||
@@ -15,14 +15,24 @@ namespace FrameLedger.Application.Capture;
|
||||
/// (CLAUDE.md rule 4) nor a static hint (<c>05_DETECTION</c>): the driver says a feature was created and
|
||||
/// evaluated in this process, and this host repeats that with the attribution. What it may stand in for is
|
||||
/// the super-resolution IDENTITY on a session where no hook saw an evaluation (<c>03_METRICS</c> §Upscaling,
|
||||
/// the driver-reported rung, owner decision 2026-09-06). What it may not stand in for: a quality, a ratio, a
|
||||
/// render size, a frame-generation mode or a multiplier — measured 2026-09-06 to be override fields or blind.
|
||||
/// the driver-reported rung, owner decision 2026-09-06). What it may not stand in for: a ratio, a render size,
|
||||
/// a frame-generation mode or a multiplier — measured 2026-09-06 to be override fields or blind. Nor a quality the
|
||||
/// GAME chose; but since beta.24 (owner decision D63) the mode an NVIDIA App override set, when the report says the
|
||||
/// override applied in this process, is the session's quality mode, marked as the App's
|
||||
/// (<c>Recording.QualityResolver</c>).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// The last ANSWERED reading is the state; <see cref="Readings"/> counts probe runs, <see cref="Answered"/> the
|
||||
/// ones the driver answered, and <see cref="Changed"/> whether two answered readings disagreed on a mask — a
|
||||
/// title switching DLSS on mid-session would show as a change, and the report prints it rather than averaging.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>Except the two bits that say a feature ran</b> (beta.27): <see cref="NgxOverrideFlags.Created"/> and
|
||||
/// <see cref="NgxOverrideFlags.Evaluate"/>, once an answered reading carried them, stand for the session. The driver clears
|
||||
/// them when the game releases the feature — on its way out, at a settings change —, and the reading taken after a game
|
||||
/// had gone was the last one: Expedition 33 read <c>0x8067F</c> while it ran (2026-09-06) and every stored session of it
|
||||
/// <c>0x8007F</c>, the same word without them.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public sealed record NgxDriverState(
|
||||
NgxProbeOutcome Outcome,
|
||||
@@ -139,6 +149,15 @@ public sealed record NgxDriverState(
|
||||
}
|
||||
|
||||
bool changed = Changed || (Outcome == NgxProbeOutcome.Answered && (Sr != later.Sr || Rr != later.Rr || Fg != later.Fg));
|
||||
return later with { Readings = readings, Answered = answered, Changed = changed };
|
||||
ulong ran = Outcome == NgxProbeOutcome.Answered ? NgxOverrideFlags.CreatedAndEvaluated : 0;
|
||||
return later with
|
||||
{
|
||||
Sr = later.Sr | (Sr & ran),
|
||||
Rr = later.Rr | (Rr & ran),
|
||||
Fg = later.Fg | (Fg & ran),
|
||||
Readings = readings,
|
||||
Answered = answered,
|
||||
Changed = changed,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -10,4 +10,11 @@ namespace FrameLedger.Application.Capture;
|
||||
/// performs on every target before injecting — and the path it names is then opened as a file.
|
||||
/// CLAUDE.md rule 4 is untouched: no game memory, no vendor object, no hook.
|
||||
/// </remarks>
|
||||
public sealed record RuntimeModuleInfo(string FileName, string Path, string? FileVersion, Version? Parsed);
|
||||
public sealed record RuntimeModuleInfo(string FileName, string Path, string? FileVersion, Version? Parsed)
|
||||
{
|
||||
/// <summary>
|
||||
/// Where the file lives, by folder class (beta.24, D64): the game's, the graphics driver's own copy, or Windows'. The
|
||||
/// class is stored with the session; <see cref="Path"/> never is.
|
||||
/// </summary>
|
||||
public RuntimeModuleSource Source { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Application.Capture;
|
||||
|
||||
/// <summary>
|
||||
/// Where a loaded runtime module's file lives, by its folder (beta.24, owner decision D64) — the class is stored, the
|
||||
/// path never is (<c>sessions.runtime_module_sources</c>).
|
||||
/// </summary>
|
||||
public enum RuntimeModuleSource
|
||||
{
|
||||
/// <summary>Not classified: a set read before beta.24, or a module whose path could not be read.</summary>
|
||||
Unknown = 0,
|
||||
|
||||
/// <summary>Anywhere outside Windows' folder and the graphics driver's: the game's own copy, or one beside it.</summary>
|
||||
Game = 1,
|
||||
|
||||
/// <summary>
|
||||
/// The graphics driver's own copy: Windows' driver store, or <c>%ProgramData%\NVIDIA</c> — where the NVIDIA App's
|
||||
/// DLSS override keeps the libraries it substitutes.
|
||||
/// </summary>
|
||||
GraphicsDriver = 2,
|
||||
|
||||
/// <summary>Windows' folder outside the driver store.</summary>
|
||||
Windows = 3,
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Application.Capture;
|
||||
|
||||
/// <summary>
|
||||
/// A module path's folder class (beta.24, D64), and the NVIDIA override folder a snapshot reads by path rather than by
|
||||
/// name. Pure: the two system folders are handed in, so the rules are tested without the machine's.
|
||||
/// </summary>
|
||||
public static class RuntimeModuleSources
|
||||
{
|
||||
/// <summary>The class of <paramref name="path"/>: the driver store and <c>%ProgramData%\NVIDIA</c> first, then Windows, else the game.</summary>
|
||||
public static RuntimeModuleSource Classify(string? path, string windowsDirectory, string programDataDirectory)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(windowsDirectory);
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(programDataDirectory);
|
||||
if (string.IsNullOrWhiteSpace(path))
|
||||
{
|
||||
return RuntimeModuleSource.Unknown;
|
||||
}
|
||||
|
||||
if (Under(path, Path.Combine(windowsDirectory, "System32", "DriverStore")) || Under(path, Path.Combine(programDataDirectory, "NVIDIA")))
|
||||
{
|
||||
return RuntimeModuleSource.GraphicsDriver;
|
||||
}
|
||||
|
||||
return Under(path, windowsDirectory) ? RuntimeModuleSource.Windows : RuntimeModuleSource.Game;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether <paramref name="path"/> is under <c>%ProgramData%\NVIDIA\NGX</c>, where the NVIDIA App's override keeps its
|
||||
/// DLSS libraries under names no census lists — so a snapshot records every module there, whatever its name.
|
||||
/// </summary>
|
||||
public static bool IsNgxOverrideFolder(string? path, string programDataDirectory)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(programDataDirectory);
|
||||
return !string.IsNullOrWhiteSpace(path) && Under(path, Path.Combine(programDataDirectory, "NVIDIA", "NGX"));
|
||||
}
|
||||
|
||||
/// <summary>The stored token for a class; null for <see cref="RuntimeModuleSource.Unknown"/>.</summary>
|
||||
public static string? Token(RuntimeModuleSource source) => source switch
|
||||
{
|
||||
RuntimeModuleSource.Game => "game",
|
||||
RuntimeModuleSource.GraphicsDriver => "graphics_driver",
|
||||
RuntimeModuleSource.Windows => "windows",
|
||||
_ => null,
|
||||
};
|
||||
|
||||
/// <summary>A stored token back; an unknown token is <see cref="RuntimeModuleSource.Unknown"/>.</summary>
|
||||
public static RuntimeModuleSource FromToken(string? token) => token switch
|
||||
{
|
||||
"game" => RuntimeModuleSource.Game,
|
||||
"graphics_driver" => RuntimeModuleSource.GraphicsDriver,
|
||||
"windows" => RuntimeModuleSource.Windows,
|
||||
_ => RuntimeModuleSource.Unknown,
|
||||
};
|
||||
|
||||
private static bool Under(string path, string folder)
|
||||
{
|
||||
string full = Normalize(path);
|
||||
string root = Normalize(folder);
|
||||
return full.Length > root.Length
|
||||
&& full.StartsWith(root, StringComparison.OrdinalIgnoreCase)
|
||||
&& full[root.Length] == Path.DirectorySeparatorChar;
|
||||
}
|
||||
|
||||
private static string Normalize(string path) =>
|
||||
Path.TrimEndingDirectorySeparator(path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar));
|
||||
}
|
||||
@@ -64,8 +64,12 @@ public static class SessionProgressCalculator
|
||||
FgRefusal = usable ? null : fg?.Refusal is { } refusal ? Vocabulary.FgRefusal(refusal.Kind) : null,
|
||||
FgRuntimeCensus = progress.WriterState.RuntimeCensus,
|
||||
Upscaler = upscaler is { } u ? Vocabulary.Upscaler(u) : FgLadder.UpscalerHookRan(progress.Records) ? "unknown" : null,
|
||||
UpscalerQuality = Modal([.. withParams.Where(static s => s.UpscalerQuality != FrameSample.QualityNotTold)])?.ToString(CultureInfo.InvariantCulture),
|
||||
UpscalerQuality = QualityByte.Of(withParams)?.ToString(CultureInfo.InvariantCulture),
|
||||
UpscalerDriverReported = progress.NgxDriver.SrCreatedAndEvaluated ? "dlss" : null,
|
||||
UpscalerQualityOverride = QualityResolver.Token(QualityResolver.Live(
|
||||
upscaler == FlUpscaler.Dlss || (upscaler is null && progress.NgxDriver.SrCreatedAndEvaluated),
|
||||
progress.NgxDriver.Outcome == NgxProbeOutcome.Answered ? progress.NgxDriver.Sr : 0,
|
||||
progress.NgxDriver.PerformanceMode)),
|
||||
RenderW = extent?.RenderW,
|
||||
RenderH = extent?.RenderH,
|
||||
OutputW = extent?.OutputW,
|
||||
@@ -116,11 +120,6 @@ public static class SessionProgressCalculator
|
||||
return null;
|
||||
}
|
||||
|
||||
private static int? Modal(IReadOnlyList<FrameSample> samples) =>
|
||||
samples.Count == 0
|
||||
? null
|
||||
: samples.GroupBy(static s => s.UpscalerQuality).OrderByDescending(static g => g.Count()).ThenBy(static g => g.Key).First().Key;
|
||||
|
||||
/// <summary>The last <see cref="WindowSeconds"/> of records, and the dominant stream within them with its gaps.</summary>
|
||||
private sealed class Window
|
||||
{
|
||||
|
||||
@@ -147,6 +147,12 @@ public sealed record SessionRow
|
||||
/// </summary>
|
||||
public string? FgMixJson { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// <c>runtime_module_sources</c> (schema 0021, beta.24, D64): each loaded runtime module's folder class —
|
||||
/// <c>game</c>, <c>graphics_driver</c> or <c>windows</c> — as <c>{file: class}</c>; never a path. Null before.
|
||||
/// </summary>
|
||||
public string? RuntimeModuleSourcesJson { get; init; }
|
||||
|
||||
public double? PresentedFps { get; init; }
|
||||
|
||||
public string? PresentedQualifier { get; init; }
|
||||
|
||||
@@ -19,6 +19,15 @@ public sealed record FgMixRecord(IReadOnlyList<FgMixRecordRow> Rows)
|
||||
: JsonSerializer.Serialize(new FgMixRecord([.. mix.Rows.Select(FgMixRecordRow.From)]), RecordingJsonContext.Default.FgMixRecord);
|
||||
|
||||
/// <summary>The column's text back, or null for a null/empty/unparsable column (a writer that predates it, or a hand edit).</summary>
|
||||
/// <remarks>
|
||||
/// <b>Read by today's rule</b> (beta.26): a stored state no window of this build would form — a factor above
|
||||
/// <see cref="FgWindow.GenerationCeiling"/>, windows that averaged fewer than <see cref="FgWindow.MinPerBucket"/>
|
||||
/// application frames, or since beta.27 a factor between two whole multipliers (Silent Hill 2, 2026-10-20: ×2.52) — is
|
||||
/// time no state claims, and joins the not-classified row. beta.24 and beta.25 stored such a
|
||||
/// row for a stretch presented through with one token per window (Silent Hill 2, 2026-10-19: ×1336.0,
|
||||
/// 0.20 → 267.20 FPS), and the summary listed it and the DLSS line cited it. Every other row is as stored, and the
|
||||
/// shares still add up to the whole.
|
||||
/// </remarks>
|
||||
public static FgMixRecord? Parse(string? json)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(json))
|
||||
@@ -28,11 +37,45 @@ public sealed record FgMixRecord(IReadOnlyList<FgMixRecordRow> Rows)
|
||||
|
||||
try
|
||||
{
|
||||
return JsonSerializer.Deserialize(json, RecordingJsonContext.Default.FgMixRecord);
|
||||
FgMixRecord? record = JsonSerializer.Deserialize(json, RecordingJsonContext.Default.FgMixRecord);
|
||||
return record is null ? null : Readable(record);
|
||||
}
|
||||
catch (JsonException)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private static FgMixRecord Readable(FgMixRecord record)
|
||||
{
|
||||
if (record.Rows is null || !record.Rows.Any(IsUnreadableState))
|
||||
{
|
||||
return record;
|
||||
}
|
||||
|
||||
var kept = new List<FgMixRecordRow>();
|
||||
double seconds = 0;
|
||||
double share = 0;
|
||||
int windows = 0;
|
||||
foreach (FgMixRecordRow row in record.Rows)
|
||||
{
|
||||
if (IsUnreadableState(row) || FgMixRecordRow.KindOf(row.Kind) == FgMixKind.Unclassified)
|
||||
{
|
||||
seconds += row.Seconds;
|
||||
share += row.Share;
|
||||
windows += row.Windows;
|
||||
continue;
|
||||
}
|
||||
|
||||
kept.Add(row);
|
||||
}
|
||||
|
||||
kept.Add(new FgMixRecordRow(FgMixRecordRow.Token(FgMixKind.Unclassified), null, null, null, seconds, share, windows));
|
||||
return new FgMixRecord(kept);
|
||||
}
|
||||
|
||||
private static bool IsUnreadableState(FgMixRecordRow row) =>
|
||||
FgMixRecordRow.KindOf(row.Kind) == FgMixKind.Generated
|
||||
&& (row.Factor is not double factor || factor > FgWindow.GenerationCeiling || !FgWindow.IsNearWholeMultiplier(factor)
|
||||
|| row.NativeFps is not double native || native * FgSteadyState.WindowSeconds < FgWindow.MinPerBucket);
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Text.Json;
|
||||
|
||||
namespace FrameLedger.Application.Recording;
|
||||
|
||||
/// <summary>What <c>sessions.ngx_driver_words</c> stores: the driver's raw words as probed, plus how the probing went.</summary>
|
||||
@@ -22,7 +24,11 @@ public sealed record NgxDriverWords
|
||||
/// <summary>The scaling ratio the driver reports for super resolution.</summary>
|
||||
public float? Ratio { get; init; }
|
||||
|
||||
/// <summary>The performance mode the driver reports (<c>NGX_DLSS_SR_MODE</c>'s numbering when an override set it).</summary>
|
||||
/// <summary>
|
||||
/// The performance mode the driver reports, in NGX's own numbering (0 Performance … 3 Ultra Performance, 5 DLAA —
|
||||
/// <c>UpscalerNames.FromDriverReport</c>), filled when an override set it. This said <c>NGX_DLSS_SR_MODE</c>'s numbering
|
||||
/// until beta.24: Silent Hill 2 under the NVIDIA App's Ultra Performance (profile value 5) was reported as 3.
|
||||
/// </summary>
|
||||
public uint? Mode { get; init; }
|
||||
|
||||
/// <summary>The render preset for super resolution / ray reconstruction (1 = A … 15 = O).</summary>
|
||||
@@ -44,4 +50,22 @@ public sealed record NgxDriverWords
|
||||
public bool Changed { get; init; }
|
||||
|
||||
public string? Detail { get; init; }
|
||||
|
||||
/// <summary>The column read back; null for NULL and for a value this build cannot read.</summary>
|
||||
public static NgxDriverWords? Parse(string? json)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(json))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
return JsonSerializer.Deserialize(json, RecordingJsonContext.Default.NgxDriverWords);
|
||||
}
|
||||
catch (JsonException)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Globalization;
|
||||
using FrameLedger.Application.Capture;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
using S = FrameLedger.Application.Capture.NvidiaDriverSettings;
|
||||
|
||||
namespace FrameLedger.Application.Recording;
|
||||
|
||||
/// <summary>
|
||||
/// Which quality mode a session ran DLSS at, and on whose authority (beta.24, owner decision D63; <c>03_METRICS</c>
|
||||
/// §Upscaling). Read at display time from what every session already stores, so a session recorded before reads alike.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <b>The NVIDIA App's override is the standard — when the driver confirms it applied.</b> The override is configuration
|
||||
/// until the driver's per-process report (<c>ngx_driver_words</c>) says it took effect in the game's process: the
|
||||
/// override ENABLED and its mode, DLAA or ratio bit set, on a session where DLSS super resolution itself ran (a hook named
|
||||
/// it, or the driver reports the feature created and evaluated). The mode is then the profile's (<c>NGX_DLSS_SR_MODE</c>,
|
||||
/// documented), checked against the driver's own report where both say something. When they disagree, or the report
|
||||
/// alone carries a value its numbering does not settle, the session reads as overridden with no mode — never the game's
|
||||
/// own value, which the override replaced.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>Otherwise the mode the game passed to a hooked call</b> (the Streamline byte, <see cref="UpscalerNames.Mode"/>; a
|
||||
/// value no table names is kept as stored), and otherwise none. Nothing here infers a mode from the render scale
|
||||
/// (<c>HANDOFF</c> §7a).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static class QualityResolver
|
||||
{
|
||||
/// <summary>The live card's token for an override whose mode the driver's report alone does not settle.</summary>
|
||||
public const string OverrideToken = "override";
|
||||
|
||||
/// <summary>A stored session's mode, or null when none is known.</summary>
|
||||
/// <param name="upscaler">The row's upscaler token (what a hook named).</param>
|
||||
/// <param name="quality">The row's hooked quality byte.</param>
|
||||
/// <param name="driverReported">The row's driver-reported upscaler (<c>dlss</c> when the driver saw the feature run).</param>
|
||||
/// <param name="ngxDriverWordsJson">The row's <c>ngx_driver_words</c>.</param>
|
||||
/// <param name="driverProfileJson">The row's <c>driver_profile</c>.</param>
|
||||
public static ResolvedQuality? Of(string? upscaler, string? quality, string? driverReported, string? ngxDriverWordsJson, string? driverProfileJson)
|
||||
{
|
||||
bool hookNamed = upscaler is { Length: > 0 } and not "unknown";
|
||||
NgxDriverWords? words = NgxDriverWords.Parse(ngxDriverWordsJson);
|
||||
if (DlssRan(upscaler, driverReported) && words is { Outcome: nameof(NgxProbeOutcome.Answered) } && Applied(Mask(words.Sr)))
|
||||
{
|
||||
return Override(Mask(words.Sr), words.Mode, DriverProfileRecord.Parse(driverProfileJson));
|
||||
}
|
||||
|
||||
if (!hookNamed || string.IsNullOrWhiteSpace(quality))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return UpscalerNames.Mode(upscaler, quality) is { } mode
|
||||
? new ResolvedQuality(mode, QualitySource.Game)
|
||||
: new ResolvedQuality(null, QualitySource.Game, Stored: quality);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The live card's override from the driver's report alone — the profile is read once per session by the recorder and
|
||||
/// does not travel with a progress event — so it names what the report settles by itself and marks the rest as an
|
||||
/// override with no mode until the stored session resolves it. Null unless DLSS ran and the override applied.
|
||||
/// </summary>
|
||||
public static ResolvedQuality? Live(bool dlssRan, ulong srMask, uint performanceMode) =>
|
||||
dlssRan && Applied(srMask) ? Override(srMask, performanceMode, profile: null) : null;
|
||||
|
||||
/// <summary>
|
||||
/// The wire token for an override (<c>SessionProgressEvent.UpscalerQualityOverride</c>): the mode's, or
|
||||
/// <see cref="OverrideToken"/> when its mode is not settled; null for no override.
|
||||
/// </summary>
|
||||
public static string? Token(ResolvedQuality? resolved) =>
|
||||
resolved is { Source: QualitySource.NvidiaApp } ? ModeToken(resolved.Mode) ?? OverrideToken : null;
|
||||
|
||||
/// <summary>A mode's invariant token — the wire's and the export's —, or null for none.</summary>
|
||||
public static string? ModeToken(UpscalerQualityMode? mode) => mode switch
|
||||
{
|
||||
UpscalerQualityMode.Performance => "performance",
|
||||
UpscalerQualityMode.Balanced => "balanced",
|
||||
UpscalerQualityMode.Quality => "quality",
|
||||
UpscalerQualityMode.UltraPerformance => "ultra_performance",
|
||||
UpscalerQualityMode.UltraQuality => "ultra_quality",
|
||||
UpscalerQualityMode.Dlaa => "dlaa",
|
||||
UpscalerQualityMode.Custom => "custom",
|
||||
UpscalerQualityMode.NativeAa => "native_aa",
|
||||
_ => null,
|
||||
};
|
||||
|
||||
/// <summary>A wire token back as the override it names; null for none and for a token this build does not know.</summary>
|
||||
public static ResolvedQuality? FromToken(string? token)
|
||||
{
|
||||
UpscalerQualityMode? mode = token switch
|
||||
{
|
||||
"performance" => UpscalerQualityMode.Performance,
|
||||
"balanced" => UpscalerQualityMode.Balanced,
|
||||
"quality" => UpscalerQualityMode.Quality,
|
||||
"ultra_performance" => UpscalerQualityMode.UltraPerformance,
|
||||
"ultra_quality" => UpscalerQualityMode.UltraQuality,
|
||||
"dlaa" => UpscalerQualityMode.Dlaa,
|
||||
"custom" => UpscalerQualityMode.Custom,
|
||||
"native_aa" => UpscalerQualityMode.NativeAa,
|
||||
_ => null,
|
||||
};
|
||||
return mode is not null || string.Equals(token, OverrideToken, StringComparison.Ordinal) ? new ResolvedQuality(mode, QualitySource.NvidiaApp) : null;
|
||||
}
|
||||
|
||||
/// <summary>DLSS super resolution ran in the session: a hook named it, or — where no hook named anything — the driver saw it.</summary>
|
||||
private static bool DlssRan(string? upscaler, string? driverReported) => upscaler is { Length: > 0 } and not "unknown"
|
||||
? string.Equals(upscaler, "dlss", StringComparison.Ordinal)
|
||||
: string.Equals(driverReported, "dlss", StringComparison.Ordinal);
|
||||
|
||||
/// <summary>The driver says the override is on in this process and set the mode (or DLAA, or a ratio) there.</summary>
|
||||
private static bool Applied(ulong sr) =>
|
||||
(sr & NgxOverrideFlags.Enabled) != 0 && (sr & (NgxOverrideFlags.PerfMode | NgxOverrideFlags.SrDlaaMode | NgxOverrideFlags.ScalingRatio)) != 0;
|
||||
|
||||
private static ResolvedQuality Override(ulong sr, uint? reported, DriverProfileRecord? profile)
|
||||
{
|
||||
if ((sr & NgxOverrideFlags.SrDlaaMode) != 0)
|
||||
{
|
||||
return new ResolvedQuality(UpscalerQualityMode.Dlaa, QualitySource.NvidiaApp);
|
||||
}
|
||||
|
||||
UpscalerQualityMode? fromReport = (sr & NgxOverrideFlags.PerfMode) != 0 ? UpscalerNames.FromDriverReport(reported) : null;
|
||||
UpscalerQualityMode? fromProfile = profile is not null && IsRead(profile) ? UpscalerNames.FromProfile(profile.ValueOf(S.DlssSrMode)) : null;
|
||||
if (fromProfile == UpscalerQualityMode.Custom)
|
||||
{
|
||||
uint? ratio = profile!.ValueOf(S.DlssSrScalingRatio);
|
||||
return new ResolvedQuality(UpscalerQualityMode.Custom, QualitySource.NvidiaApp, ratio is >= 33 and <= 100 ? ratio : null);
|
||||
}
|
||||
|
||||
// Two NVIDIA sources that disagree about one setting: the override stands, its mode is not shown.
|
||||
UpscalerQualityMode? mode = fromProfile is not null && fromReport is not null && fromProfile != fromReport ? null : fromProfile ?? fromReport;
|
||||
return new ResolvedQuality(mode, QualitySource.NvidiaApp);
|
||||
}
|
||||
|
||||
private static bool IsRead(DriverProfileRecord profile) =>
|
||||
profile.Outcome is nameof(DriverProfileOutcome.Application) or nameof(DriverProfileOutcome.Global);
|
||||
|
||||
private static ulong Mask(string? hex) =>
|
||||
hex is { Length: > 2 } && ulong.TryParse(hex.AsSpan(2), NumberStyles.HexNumber, CultureInfo.InvariantCulture, out ulong value) ? value : 0;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Application.Recording;
|
||||
|
||||
/// <summary>Where a session's quality mode came from (beta.24, D63).</summary>
|
||||
public enum QualitySource
|
||||
{
|
||||
/// <summary>Nobody named a source. The zero value, so a default is not a claim.</summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>The mode the game passed to a hooked call.</summary>
|
||||
Game = 1,
|
||||
|
||||
/// <summary>The NVIDIA App's override, which the driver reported applied in the game's process.</summary>
|
||||
NvidiaApp = 2,
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using FrameLedger.Domain.Metrics;
|
||||
|
||||
namespace FrameLedger.Application.Recording;
|
||||
|
||||
/// <summary>A session's quality mode as <see cref="QualityResolver"/> settled it (beta.24, D63).</summary>
|
||||
/// <param name="Mode">The mode, by its menu name; null only for a hooked value no table names (<paramref name="Stored"/>).</param>
|
||||
/// <param name="Source">Whose it is: the game's own call, or the NVIDIA App's override the driver confirmed.</param>
|
||||
/// <param name="CustomPercent">An override's custom render-scale percentage (33–100), when it set one.</param>
|
||||
/// <param name="Stored">A hooked value no table names, as stored: still what was measured, so it is shown as it is.</param>
|
||||
public sealed record ResolvedQuality(UpscalerQualityMode? Mode, QualitySource Source, uint? CustomPercent = null, string? Stored = null);
|
||||
@@ -183,11 +183,10 @@ public static class SessionAggregator
|
||||
FlUpscaler? identity = FgLadder.UpscalerIdentity(c.Input.Records);
|
||||
bool hookRan = FgLadder.UpscalerHookRan(c.Input.Records);
|
||||
IReadOnlyList<FrameSample> withParams = [.. c.Dominant.Where(static s => s.Claims(MeasuredFields.UpscalerParams))];
|
||||
IReadOnlyList<FrameSample> withQuality = [.. withParams.Where(static s => s.UpscalerQuality != FrameSample.QualityNotTold)];
|
||||
return row with
|
||||
{
|
||||
Upscaler = identity is { } u ? Vocabulary.Upscaler(u) : hookRan ? "unknown" : null,
|
||||
UpscalerQuality = Modal(withQuality, static s => s.UpscalerQuality)?.ToString(CultureInfo.InvariantCulture),
|
||||
UpscalerQuality = QualityByte.Of(withParams)?.ToString(CultureInfo.InvariantCulture),
|
||||
UpscalerSharpness = Modal(withParams, static s => s.UpscalerSharpness),
|
||||
UpscalerDriverReported = c.Input.Ngx.SrCreatedAndEvaluated ? "dlss" : null,
|
||||
RenderW = extent?.RenderW,
|
||||
@@ -360,6 +359,11 @@ public static class SessionAggregator
|
||||
RuntimeModulesJson = c.Input.Modules.Snapshots == 0 ? null : JsonSerializer.Serialize(
|
||||
c.Input.Modules.Modules.ToDictionary(static m => m.FileName, static m => m.FileVersion, StringComparer.OrdinalIgnoreCase),
|
||||
RecordingJsonContext.Default.DictionaryStringString),
|
||||
// beta.24 (D64): where each module's file lived, by class — never the path.
|
||||
RuntimeModuleSourcesJson = c.Input.Modules.Snapshots == 0 ? null : JsonSerializer.Serialize(
|
||||
c.Input.Modules.Modules.Where(static m => RuntimeModuleSources.Token(m.Source) is not null)
|
||||
.ToDictionary(static m => m.FileName, static m => RuntimeModuleSources.Token(m.Source)!, StringComparer.OrdinalIgnoreCase),
|
||||
RecordingJsonContext.Default.DictionaryStringString),
|
||||
ExecutableMarkersJson = !c.Input.Markers.Scanned ? null : JsonSerializer.Serialize(
|
||||
c.Input.Markers.Markers.ToDictionary(static m => m.Name, static m => m.Hits, StringComparer.Ordinal),
|
||||
RecordingJsonContext.Default.DictionaryStringInt32),
|
||||
@@ -414,8 +418,7 @@ public static class SessionAggregator
|
||||
OutputW = seg.OutputW == 0 ? null : seg.OutputW,
|
||||
OutputH = seg.OutputH == 0 ? null : seg.OutputH,
|
||||
Upscaler = upscaler is { } u && u != UpscalerKind.NotReported ? Vocabulary.Upscaler(u) : null,
|
||||
UpscalerQuality = Modal([.. seg.Samples.Where(static s => s.Claims(MeasuredFields.UpscalerParams) && s.UpscalerQuality != FrameSample.QualityNotTold)], static s => s.UpscalerQuality)
|
||||
?.ToString(CultureInfo.InvariantCulture),
|
||||
UpscalerQuality = QualityByte.Of([.. seg.Samples.Where(static s => s.Claims(MeasuredFields.UpscalerParams))])?.ToString(CultureInfo.InvariantCulture),
|
||||
FgMode = null,
|
||||
NativeFps = null,
|
||||
DisplayedFps = series.AverageFps,
|
||||
|
||||
@@ -65,6 +65,7 @@ public static class Vocabulary
|
||||
FgRefusalKind.NonUniform => "non_uniform",
|
||||
FgRefusalKind.AmbiguousBand => "ambiguous_band",
|
||||
FgRefusalKind.NoBatches => "no_batches",
|
||||
FgRefusalKind.BeyondGeneration => "beyond_generation",
|
||||
_ => null,
|
||||
};
|
||||
|
||||
|
||||
@@ -290,7 +290,7 @@ public sealed class CaptureOrchestrator
|
||||
}
|
||||
|
||||
var running = new Running(Guid.NewGuid(), game.Id);
|
||||
running.Task = RunLaunchAsync(game, arguments, running.SessionGuid, running.Stop.Token, ct);
|
||||
running.Task = RunLaunchAsync(game, arguments, running, ct);
|
||||
_running[path] = running;
|
||||
return new LaunchResult(LaunchOutcome.Accepted, running.SessionGuid);
|
||||
}
|
||||
@@ -433,8 +433,9 @@ public sealed class CaptureOrchestrator
|
||||
private static string SessionId(RecordRequest request) => request.SessionGuid?.ToString("N") ?? "(unnamed)";
|
||||
|
||||
/// <summary>Launch mode on its own task: the environment, the session, the election, each reported.</summary>
|
||||
private async Task RunLaunchAsync(GameRow game, string arguments, Guid sessionGuid, CancellationToken stop, CancellationToken ct)
|
||||
private async Task RunLaunchAsync(GameRow game, string arguments, Running running, CancellationToken ct)
|
||||
{
|
||||
Guid sessionGuid = running.SessionGuid;
|
||||
try
|
||||
{
|
||||
string path = game.Fingerprint.ExePath;
|
||||
@@ -449,7 +450,7 @@ public sealed class CaptureOrchestrator
|
||||
Arguments = arguments,
|
||||
GameName = game.Name,
|
||||
SessionGuid = sessionGuid,
|
||||
StopToken = stop,
|
||||
StopToken = running.Stop.Token,
|
||||
};
|
||||
RecordedSession r = await Task.Run(() => launch.Recorder.RecordAsync(request, ct), ct).ConfigureAwait(false);
|
||||
Report(r, game.Name);
|
||||
@@ -459,6 +460,13 @@ public sealed class CaptureOrchestrator
|
||||
{
|
||||
Report(elected, $"elected after {game.Name}");
|
||||
}
|
||||
|
||||
// beta.27: what Reap needs to record a game started again when this launch ends — that it ended on its own, and
|
||||
// the processes it recorded. Until now a launch never said so, and a process turned away while it ran was never
|
||||
// recorded: Lies of P (2026-10-19), started directly, handed itself to Steam within seconds, and the game Steam
|
||||
// started went unrecorded, twice.
|
||||
running.Targets = elected is null ? [r.Outcome.TargetPid] : [r.Outcome.TargetPid, elected.Outcome.TargetPid];
|
||||
running.Recorded = elected ?? r;
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
@@ -553,13 +561,15 @@ public sealed class CaptureOrchestrator
|
||||
/// only if the session ended on its own (a cancelled or faulted one — the host stopping — starts nothing), the process
|
||||
/// is still the same one (pid and start time), and it is then the executable's ONLY process: a game started again has
|
||||
/// replaced the old one, where a helper of a multi-process game (NW.js, Electron — one executable, many processes)
|
||||
/// still has the game beside it, or several of its kind.
|
||||
/// still has the game beside it, or several of its kind. Never a process the session itself recorded (beta.27): the one
|
||||
/// a launch started appears to the watcher after the launch began, and is turned away like any other — a launch the user
|
||||
/// stopped must not start again on the game it stopped recording.
|
||||
/// </summary>
|
||||
private sealed record Deferred(TrackedProcessAppeared Appeared, DateTimeOffset? StartedAt)
|
||||
{
|
||||
public bool StartsAfter(Running ended, IReadOnlyList<ProcessSnapshot> snapshot)
|
||||
{
|
||||
if (ended.Recorded is null)
|
||||
if (ended.Recorded is null || ended.Targets.Contains(Appeared.Pid))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -584,6 +594,9 @@ public sealed class CaptureOrchestrator
|
||||
/// <summary>The session as recorded; null until it ended, and for one cancelled or faulted. Written before <see cref="Task"/> completes.</summary>
|
||||
public RecordedSession? Recorded { get; set; }
|
||||
|
||||
/// <summary>The processes a launch and its election recorded (beta.27); written with <see cref="Recorded"/>, empty for a watched session.</summary>
|
||||
public IReadOnlyCollection<int> Targets { get; set; } = [];
|
||||
|
||||
public void Dispose() => Stop.Dispose();
|
||||
}
|
||||
}
|
||||
@@ -63,6 +63,10 @@ internal static class FgRefusalText
|
||||
+ $"cadence threshold ({FgWindow.ActiveThreshold.ToString("0.0", CultureInfo.InvariantCulture)}) — not "
|
||||
+ "a configuration this consumer can name",
|
||||
FgRefusalKind.NoBatches => "no present drained a Streamline batch, so there is no ratio to read",
|
||||
FgRefusalKind.BeyondGeneration =>
|
||||
$"presents/tokens = {refusal.Overall.ToString("0.00", CultureInfo.InvariantCulture)} is above "
|
||||
+ $"{FgWindow.GenerationCeiling.ToString("0.0", CultureInfo.InvariantCulture)}, more presents per application "
|
||||
+ "frame than any frame generation produces — the count does not describe these presents",
|
||||
_ => refusal.Kind.ToString(),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Detection;
|
||||
|
||||
/// <summary>What established a <see cref="DlssGeneration"/>.</summary>
|
||||
public enum DlssBasis
|
||||
{
|
||||
/// <summary>Nothing. The zero value, so a default is not a claim.</summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>The render preset the NVIDIA driver reported applied.</summary>
|
||||
Preset = 1,
|
||||
|
||||
/// <summary>A measured DLSS Frame Generation state's factor.</summary>
|
||||
FrameGenerationFactor = 2,
|
||||
|
||||
/// <summary>A loaded library's major version.</summary>
|
||||
LibraryVersion = 3,
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Detection;
|
||||
|
||||
/// <summary>What a session observed about DLSS, for <see cref="DlssGeneration.Of"/> (beta.24, D64).</summary>
|
||||
/// <param name="SuperResolution">The loaded <c>nvngx_dlss.dll</c>'s file version.</param>
|
||||
/// <param name="FrameGeneration">The loaded <c>nvngx_dlssg.dll</c>'s file version.</param>
|
||||
/// <param name="Preset">The super-resolution render preset the NVIDIA driver reports applied in a session where it ran (1 = A …).</param>
|
||||
/// <param name="LargestFrameGenerationFactor">The largest DLSS Frame Generation state the session measured.</param>
|
||||
public sealed record DlssEvidence(Version? SuperResolution, Version? FrameGeneration, uint? Preset, double? LargestFrameGenerationFactor);
|
||||
@@ -0,0 +1,74 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Detection;
|
||||
|
||||
/// <summary>
|
||||
/// Which DLSS generation a session's evidence establishes (beta.24, owner decision D64; <c>05_DETECTION</c> §DLSS
|
||||
/// generation) — and on what — or nothing. Evidence-bound: a label is given only from something the session observed,
|
||||
/// strongest first; a library version is shown as a version and names a generation only where its major number does.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <b>The table, and where each row comes from.</b> A render preset the NVIDIA driver reports applied to super
|
||||
/// resolution: L or M are DLSS 4.5's second-generation transformer (added with DLL 310.5.0), J or K DLSS 4's transformer;
|
||||
/// A–F are the CNN model and name no generation. A DLSS Frame Generation state measured at ×5 or more is DLSS 4.5's
|
||||
/// multi-frame generation, ×3 or ×4 DLSS 4's. A super-resolution library 2.x is DLSS 2; 3.x, or a frame-generation
|
||||
/// library 1.x–3.x, is DLSS 3. A 310.x library alone names nothing: DLSS 4 and 4.5 ship the same major number, and the
|
||||
/// model it runs is the preset's to say. Never a default preset inferred from a version.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// DLSS 5's neural rendering is not a generation of these features and is not in this table: a session states only that
|
||||
/// its runtime was loaded.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <param name="Kind">The generation established.</param>
|
||||
/// <param name="Basis">What established it.</param>
|
||||
public sealed record DlssGeneration(DlssGenerationKind Kind, DlssBasis Basis)
|
||||
{
|
||||
/// <summary>The generation the evidence establishes, or null when it establishes none.</summary>
|
||||
public static DlssGeneration? Of(DlssEvidence evidence)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(evidence);
|
||||
if (evidence.Preset is 12 or 13)
|
||||
{
|
||||
return new DlssGeneration(DlssGenerationKind.Dlss45, DlssBasis.Preset);
|
||||
}
|
||||
|
||||
if (evidence.LargestFrameGenerationFactor is >= 4.5)
|
||||
{
|
||||
return new DlssGeneration(DlssGenerationKind.Dlss45, DlssBasis.FrameGenerationFactor);
|
||||
}
|
||||
|
||||
if (evidence.Preset is 10 or 11)
|
||||
{
|
||||
return new DlssGeneration(DlssGenerationKind.Dlss4, DlssBasis.Preset);
|
||||
}
|
||||
|
||||
if (evidence.LargestFrameGenerationFactor is >= 2.5)
|
||||
{
|
||||
return new DlssGeneration(DlssGenerationKind.Dlss4, DlssBasis.FrameGenerationFactor);
|
||||
}
|
||||
|
||||
if (evidence.SuperResolution is { Major: 2 })
|
||||
{
|
||||
return new DlssGeneration(DlssGenerationKind.Dlss2, DlssBasis.LibraryVersion);
|
||||
}
|
||||
|
||||
return evidence.SuperResolution is { Major: 3 } || evidence.FrameGeneration is { Major: >= 1 and <= 3 }
|
||||
? new DlssGeneration(DlssGenerationKind.Dlss3, DlssBasis.LibraryVersion)
|
||||
: null;
|
||||
}
|
||||
|
||||
/// <summary>A render preset as its letter (1 = A … 26 = Z), or null.</summary>
|
||||
public static char? PresetLetter(uint? preset) => preset is >= 1 and <= 26 ? (char)('A' + (int)preset.Value - 1) : null;
|
||||
|
||||
/// <summary>The model a render preset selects, or null for one this table does not place.</summary>
|
||||
public static DlssModel? ModelOf(uint? preset) => preset switch
|
||||
{
|
||||
>= 1 and <= 6 => DlssModel.Cnn,
|
||||
10 or 11 => DlssModel.Transformer,
|
||||
12 or 13 => DlssModel.SecondGenerationTransformer,
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Detection;
|
||||
|
||||
/// <summary>A DLSS generation, as <see cref="DlssGeneration"/> names one.</summary>
|
||||
public enum DlssGenerationKind
|
||||
{
|
||||
/// <summary>None established. The zero value, so a default is not a claim.</summary>
|
||||
None = 0,
|
||||
Dlss2 = 2,
|
||||
Dlss3 = 3,
|
||||
Dlss4 = 4,
|
||||
|
||||
/// <summary>DLSS 4.5.</summary>
|
||||
Dlss45 = 45,
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Detection;
|
||||
|
||||
/// <summary>The super-resolution model a render preset selects (beta.24, D64).</summary>
|
||||
public enum DlssModel
|
||||
{
|
||||
/// <summary>Not placed. The zero value, so a default is not a claim.</summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>Presets A–F: the convolutional model.</summary>
|
||||
Cnn = 1,
|
||||
|
||||
/// <summary>Presets J and K: DLSS 4's transformer.</summary>
|
||||
Transformer = 2,
|
||||
|
||||
/// <summary>Presets L and M: DLSS 4.5's second-generation transformer.</summary>
|
||||
SecondGenerationTransformer = 3,
|
||||
}
|
||||
@@ -22,7 +22,15 @@ public sealed class DisplayTally
|
||||
{
|
||||
long ms = Math.Max(0, elapsedMs);
|
||||
_ms[observation.Mode] = _ms.GetValueOrDefault(observation.Mode) + ms;
|
||||
_last[observation.Mode] = observation;
|
||||
|
||||
// The sizes are those of the mode's last sample that SAW the window (beta.27). A game leaving exclusive fullscreen
|
||||
// destroys its window while its swap chain's last word is still fresh, and those last samples — exclusive, no
|
||||
// window — replaced every size: five Lies of P and Dark Souls III sessions (2026-10-18 to 20) stored none.
|
||||
if (observation.Client is not null || !_last.TryGetValue(observation.Mode, out DisplayObservation kept) || kept.Client is null)
|
||||
{
|
||||
_last[observation.Mode] = observation;
|
||||
}
|
||||
|
||||
if (DisplaySource.Strength(observation.Source) > DisplaySource.Strength(_source))
|
||||
{
|
||||
_source = observation.Source;
|
||||
|
||||
@@ -24,6 +24,11 @@ namespace FrameLedger.Domain.Metrics;
|
||||
/// denominator — and every window lands in exactly one row. States come first, by rising factor, then
|
||||
/// <see cref="FgMixKind.None"/>, then <see cref="FgMixKind.Unclassified"/>.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>A window the count does not describe is not classified</b> (beta.26): fewer than <see cref="FgWindow.MinPerBucket"/>
|
||||
/// application frames, or a ratio above <see cref="FgWindow.GenerationCeiling"/> (<see cref="FgSlices.Slice.IsReadable"/>,
|
||||
/// <see cref="FgSlices.Slice.IsActive"/>).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public sealed record FgMix(IReadOnlyList<FgMixRow> Rows)
|
||||
{
|
||||
@@ -61,7 +66,7 @@ public sealed record FgMix(IReadOnlyList<FgMixRow> Rows)
|
||||
foreach (FgSlices.Slice s in slices)
|
||||
{
|
||||
List<FgSlices.Slice> into = s.IsActive ? active
|
||||
: noneAllowed && s.Samples >= FgWindow.MinPerBucket && s.Tokens > 0 && s.Factor <= FgWindow.NoneCeiling ? none
|
||||
: noneAllowed && s.IsReadable && s.Factor <= FgWindow.NoneCeiling ? none
|
||||
: unclassified;
|
||||
into.Add(s);
|
||||
}
|
||||
|
||||
@@ -38,4 +38,10 @@ public enum FgRefusalKind
|
||||
|
||||
/// <summary>No present drained a Streamline batch, so there is no presents-per-batch ratio to read.</summary>
|
||||
NoBatches,
|
||||
|
||||
/// <summary>
|
||||
/// The ratio is above <see cref="FgWindow.GenerationCeiling"/> — more presents per application frame than any frame
|
||||
/// generation produces: the count does not describe these presents (beta.26).
|
||||
/// </summary>
|
||||
BeyondGeneration,
|
||||
}
|
||||
@@ -19,8 +19,21 @@ internal static class FgSlices
|
||||
/// <summary>Read only on windows that have tokens.</summary>
|
||||
public double Factor => Displayed / (double)Tokens;
|
||||
|
||||
/// <summary>Generating: enough samples to judge, tokens counted, and at least <see cref="FgWindow.ActiveThreshold"/>.</summary>
|
||||
public bool IsActive => Samples >= FgWindow.MinPerBucket && Tokens > 0 && Displayed >= Tokens * FgWindow.ActiveThreshold;
|
||||
/// <summary>
|
||||
/// A window a ratio can be read from: <see cref="FgWindow.MinPerBucket"/> presents AND as many application frames
|
||||
/// (beta.26). Presents alone let a window with ONE token through, and its ratio was the presents themselves: Silent
|
||||
/// Hill 2's ten seconds at one token a window read ×1336.0, a state the mix listed and the DLSS line cited.
|
||||
/// </summary>
|
||||
public bool IsReadable => Samples >= FgWindow.MinPerBucket && Tokens >= FgWindow.MinPerBucket;
|
||||
|
||||
/// <summary>
|
||||
/// Generating: readable, at least <see cref="FgWindow.ActiveThreshold"/>, no more than
|
||||
/// <see cref="FgWindow.GenerationCeiling"/> — above it the ratio is no frame generation's — and near a whole
|
||||
/// multiplier (<see cref="FgWindow.IsNearWholeMultiplier"/>, beta.27): a window between two changed state inside
|
||||
/// itself, and is no state's.
|
||||
/// </summary>
|
||||
public bool IsActive => IsReadable && Displayed >= Tokens * FgWindow.ActiveThreshold && Factor <= FgWindow.GenerationCeiling
|
||||
&& FgWindow.IsNearWholeMultiplier(Factor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -19,8 +19,9 @@ namespace FrameLedger.Domain.Metrics;
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>What it is.</b> The claimed span cut into <see cref="WindowSeconds"/>-second windows — the live card's own window —
|
||||
/// each classified by its own <c>presents ÷ tokens</c>; the ACTIVE windows (≥ <see cref="FgWindow.ActiveThreshold"/>)
|
||||
/// that agree with one another within <see cref="StateTolerance"/> form a state, and the state holding the most time
|
||||
/// each classified by its own <c>presents ÷ tokens</c>; the ACTIVE windows (≥ <see cref="FgWindow.ActiveThreshold"/>,
|
||||
/// ≤ <see cref="FgWindow.GenerationCeiling"/>, with at least <see cref="FgWindow.MinPerBucket"/> application frames since
|
||||
/// beta.26) that agree with one another within <see cref="StateTolerance"/> form a state, and the state holding the most time
|
||||
/// is this record, with the share of the presenting time it covers. ×3 and ×4 are 25 % apart and never pool; a
|
||||
/// factor that wanders (a dynamic multiplier) forms no state long enough and the refusal stands alone.
|
||||
/// </para>
|
||||
|
||||
@@ -174,6 +174,30 @@ public sealed record FgWindow
|
||||
/// </summary>
|
||||
public const double NoneCeiling = 1.05;
|
||||
|
||||
/// <summary>
|
||||
/// Above this, a ratio is not frame generation. No shipping technology generates more than five frames per application
|
||||
/// frame (DLSS 4.5 multi frame generation, ×6; measured ×6.06 with DXGI's count, 2026-10-19), and ×8 leaves room for a
|
||||
/// window's edges. A ratio above it is a stretch the title presented through with almost no application-frame token —
|
||||
/// shaders compiling, a loading screen or a menu, drawn outside the vendor's frame count: Silent Hill 2 (2026-10-19)
|
||||
/// presented 1,336 times per token for the first ten seconds of the session, compiling its shaders, under the NVIDIA
|
||||
/// App's Dynamic multi frame generation, and the mix listed it as a ×1336.0 state. Raised only with a title measured above it (beta.26).
|
||||
/// </summary>
|
||||
public const double GenerationCeiling = 8.0;
|
||||
|
||||
/// <summary>
|
||||
/// Whether <paramref name="factor"/> sits within <see cref="BucketTolerance"/> of a whole multiplier of two or more
|
||||
/// (beta.27). Every frame generation that ships multiplies by a whole number — ×2 for FSR, XeSS and DLSS 3, ×2 to ×4
|
||||
/// for DLSS 4, up to ×6 for DLSS 4.5 —, and its windows read 1.98, 3.01, 6.06. A five-second window that reads
|
||||
/// between two changed state inside itself: Silent Hill 2 (2026-10-20) read ×2.53 where the NVIDIA App's Dynamic
|
||||
/// multiplier stepped from ×2 to ×3 — half its application frames followed by one generated frame, half by two —,
|
||||
/// and three such windows formed a ×2.52 "state" nobody held.
|
||||
/// </summary>
|
||||
public static bool IsNearWholeMultiplier(double factor)
|
||||
{
|
||||
double whole = Math.Max(2, Math.Round(factor, MidpointRounding.AwayFromZero));
|
||||
return Math.Abs(factor - whole) <= (whole * BucketTolerance) + 1e-9; // the edge is in: 2.2 - 2 is 0.2000000000000002
|
||||
}
|
||||
|
||||
/// <summary><c>none</c>, reached by counting: a published factor at or below <see cref="NoneCeiling"/>.</summary>
|
||||
public bool IsNone => Factor is double f && f <= NoneCeiling;
|
||||
|
||||
@@ -428,7 +452,7 @@ public sealed record FgWindow
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>The refusals that need the ratio itself: uniformity, then the unnameable band.</summary>
|
||||
/// <summary>The refusals that need the ratio itself: uniformity, then a ratio no frame generation produces, then the unnameable band.</summary>
|
||||
private static FgRefusal? RefusalForRatio(FgWindow w)
|
||||
{
|
||||
double factor = w.DisplayedPresents / (double)w.Evaluations;
|
||||
@@ -438,6 +462,14 @@ public sealed record FgWindow
|
||||
return nonUniform;
|
||||
}
|
||||
|
||||
// AFTER uniformity (beta.26): a session that changed state is refused as non-uniform and keeps its steady state
|
||||
// and its mix; only a ratio that held throughout and is no configuration is refused here — the live card's five
|
||||
// seconds of a loading screen, or a session that never left one.
|
||||
if (factor > GenerationCeiling)
|
||||
{
|
||||
return new FgRefusal(FgRefusalKind.BeyondGeneration, FgRefusalSubject.Factor, Overall: factor);
|
||||
}
|
||||
|
||||
// A ratio near 1 is publishable since 2026-09-04 (20_OPEN_QUESTIONS §S31 row P1): 1.0 means every
|
||||
// present carried an application frame — `none`, reached by COUNTING. What is still refused is the
|
||||
// band between: a steady 1.05–1.5 is not a configuration any vendor ships, and naming it would be
|
||||
|
||||
@@ -53,7 +53,8 @@ public readonly record struct FrameSample
|
||||
|
||||
/// <summary>
|
||||
/// <see cref="UpscalerQuality"/>'s "a hook ran and could not tell" (<c>fl_shm.h</c> <c>upscalerQuality</c>): not a preset,
|
||||
/// so it is never a value in a row. Every AMD dispatch carries it, because that call has no preset.
|
||||
/// so it is never a value in a row. An AMD dispatch carries it unless the vendor's own query answer names the size it
|
||||
/// was handed (beta.25, D65; <see cref="QualityByte"/>), because that call has no preset.
|
||||
/// </summary>
|
||||
public const byte QualityNotTold = 0xFF;
|
||||
|
||||
|
||||
@@ -23,4 +23,7 @@ public enum HookFamilies
|
||||
ColorSpace = 1 << 8,
|
||||
Reflex = 1 << 9,
|
||||
Vram = 1 << 10,
|
||||
|
||||
/// <summary>The FidelityFX quality query (beta.25, D65).</summary>
|
||||
UpscalerQuality = 1 << 11,
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Metrics;
|
||||
|
||||
/// <summary>
|
||||
/// The quality byte a run of params records names — a session's, a segment's or the live card's window — so the three
|
||||
/// read one rule (beta.25, D65). The most common byte that is not <see cref="FrameSample.QualityNotTold"/>, a tie going
|
||||
/// to the lower; and for FSR's bytes, none when the game rendered at a size no FSR-named record has.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <b>Why FSR's byte needs the second condition.</b> FSR's dispatch carries no mode: the Overlay names one per frame
|
||||
/// only when the size the frame was upscaled from is the size the vendor's query gave for that mode (<c>dllmain.cpp</c>
|
||||
/// <c>FfxQualityOf</c>). At a dynamic resolution most frames are at sizes no answer gave and carry "not told", while the
|
||||
/// frames at the top of the range still match — so the plain modal would name a mode for a session that mostly did not
|
||||
/// render at it. <c>legal/ACCURACY.md</c> promises the opposite: "FSR at a dynamic resolution among them — no mode is
|
||||
/// shown". An FSR record at a size no named record has is that evidence, and it withholds the mode.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>What is not evidence.</b> A "not told" record at a named size — a present that drained a frame-generation PREPARE
|
||||
/// alone, or a frame before the title asked — and a record of another upscaler (its sizes are its own).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static class QualityByte
|
||||
{
|
||||
/// <summary>FSR's NativeAA: <c>0x10</c> plus <c>FFX_UPSCALE_QUALITY_MODE_NATIVEAA</c> (<c>fl_shm.h</c>).</summary>
|
||||
public const byte FsrFirst = 0x10;
|
||||
|
||||
/// <summary>FSR's Ultra Performance: <c>0x10</c> plus <c>FFX_UPSCALE_QUALITY_MODE_ULTRA_PERFORMANCE</c>.</summary>
|
||||
public const byte FsrLast = 0x14;
|
||||
|
||||
/// <summary>Whether a byte is one of FSR's five.</summary>
|
||||
public static bool IsFsr(byte value) => value is >= FsrFirst and <= FsrLast;
|
||||
|
||||
/// <summary>The byte the records name, or null when none is told or an FSR mode is withheld.</summary>
|
||||
/// <param name="withParams">The records that claim the params bit; the caller filters, as it does today.</param>
|
||||
public static byte? Of(IReadOnlyList<FrameSample> withParams)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(withParams);
|
||||
byte? modal = withParams
|
||||
.Where(static s => s.UpscalerQuality != FrameSample.QualityNotTold)
|
||||
.GroupBy(static s => s.UpscalerQuality)
|
||||
.OrderByDescending(static g => g.Count())
|
||||
.ThenBy(static g => g.Key)
|
||||
.Select(static g => (byte?)g.Key)
|
||||
.FirstOrDefault();
|
||||
if (modal is not { } named || !IsFsr(named))
|
||||
{
|
||||
return modal;
|
||||
}
|
||||
|
||||
HashSet<(ushort W, ushort H)> namedSizes = [.. withParams.Where(static s => IsFsr(s.UpscalerQuality)).Select(static s => (s.RenderW, s.RenderH))];
|
||||
return withParams.Any(s => IsFsrRecord(s) && !namedSizes.Contains((s.RenderW, s.RenderH))) ? null : named;
|
||||
}
|
||||
|
||||
private static bool IsFsrRecord(FrameSample s) =>
|
||||
s.Claims(MeasuredFields.Upscaler) && s.Upscaler is UpscalerKind.Fsr2 or UpscalerKind.Fsr3 or UpscalerKind.Fsr4 or UpscalerKind.FsrUnversioned;
|
||||
}
|
||||
@@ -4,54 +4,110 @@
|
||||
namespace FrameLedger.Domain.Metrics;
|
||||
|
||||
/// <summary>
|
||||
/// The vendor's own quality value as the name the vendor's menu uses (<c>03_METRICS</c> §Upscaling promised this type
|
||||
/// from the start; until 2026-09-21 the UI printed the raw integer beside the upscaler).
|
||||
/// The vendors' own quality values as modes (<c>03_METRICS</c> §Upscaling promised this type from the start; until
|
||||
/// 2026-09-21 the UI printed the raw integer beside the upscaler). Four numberings reach this build, one table each:
|
||||
/// the hooked byte for DLSS (Streamline's <c>sl::DLSSMode</c>) and for FSR (<c>0x10</c> plus
|
||||
/// <c>FfxApiUpscaleQualityMode</c>, since beta.25), the NVIDIA driver's per-process report (NGX's own
|
||||
/// <c>PerfQuality</c> values) and the NVIDIA App's override as the driver profile stores it (<c>NGX_DLSS_SR_MODE</c>).
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <b>One producer exists, so one table exists.</b> The only writer of <c>upscalerQuality</c> is the Streamline route:
|
||||
/// <c>sl::DLSSMode</c> as the title chained it into <c>slEvaluateFeature</c> (<c>fl_sl_inputs.h</c>
|
||||
/// <c>QualityFromMode</c>), where <c>eOff</c> and anything at or past <c>eCount</c> are already folded to "not told" and
|
||||
/// never reach a row. The ffx-api dispatch carries no quality mode, and XeSS has no hook, so their bytes are always
|
||||
/// "not told" and no table for them would have a row to name.
|
||||
/// <b>The hooked byte.</b> Two writers. The Streamline route: <c>sl::DLSSMode</c> as the title chained it into
|
||||
/// <c>slEvaluateFeature</c> (<c>fl_sl_inputs.h</c> <c>QualityFromMode</c>), where <c>eOff</c> and anything at or past
|
||||
/// <c>eCount</c> are already folded to "not told" and never reach a row. And since beta.25 (D65) the FidelityFX route:
|
||||
/// <c>0x10</c> plus the mode whose <c>ffxQuery</c> answer is the size the UPSCALE dispatch was handed, offset so that
|
||||
/// FSR's NativeAA (0) can never be read as Streamline's <c>eOff</c>, and withheld for a session at a dynamic resolution
|
||||
/// (<see cref="QualityByte"/>). A value this table does not know is not named —
|
||||
/// the App prints the stored number, because a number nobody can name is still what was measured.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// A value this table does not know is returned as it is stored: a number nobody can name is still what was measured,
|
||||
/// and dropping it would turn a newer SDK's preset into "nothing was told".
|
||||
/// <b>The two NVIDIA numberings disagree from 3 up</b>, which is why each has its own table and neither is read through
|
||||
/// the other (beta.24, D63). Measured on the owner's ledger: Silent Hill 2 under the App's <i>Ultra Performance</i>
|
||||
/// (profile value 5) was reported by the driver as 3 — NGX's numbering, not the profile's, where 3 is "the game's own".
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This is the MEASURED byte. A label derived from the render/output ratio is a different thing and an owner decision
|
||||
/// not taken (<c>HANDOFF</c> §7a); nothing here infers.
|
||||
/// This decodes what was stored. A label derived from the render/output ratio is a different thing and an owner
|
||||
/// decision not taken (<c>HANDOFF</c> §7a); nothing here infers.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static class UpscalerNames
|
||||
{
|
||||
/// <summary>
|
||||
/// The preset's name, the stored value when it has none, or null when the row stores no quality at all.
|
||||
/// </summary>
|
||||
/// <summary>The hooked byte as a mode, or null when the row stores none or a value this table does not know.</summary>
|
||||
/// <param name="upscaler">The row's upscaler token (<c>dlss</c>, <c>fsr3</c>, …).</param>
|
||||
/// <param name="quality">The row's quality value: the vendor's integer, invariant.</param>
|
||||
public static string? Quality(string? upscaler, string? quality)
|
||||
public static UpscalerQualityMode? Mode(string? upscaler, string? quality)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(quality))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (upscaler is "fsr" or "fsr3" or "fsr4")
|
||||
{
|
||||
return FromFsrByte(quality);
|
||||
}
|
||||
|
||||
if (!string.Equals(upscaler, "dlss", StringComparison.Ordinal))
|
||||
{
|
||||
return quality;
|
||||
return null;
|
||||
}
|
||||
|
||||
return quality switch
|
||||
{
|
||||
"1" => "Performance",
|
||||
"2" => "Balanced",
|
||||
"3" => "Quality",
|
||||
"4" => "Ultra Performance",
|
||||
"5" => "Ultra Quality",
|
||||
"6" => "DLAA",
|
||||
_ => quality,
|
||||
"1" => UpscalerQualityMode.Performance,
|
||||
"2" => UpscalerQualityMode.Balanced,
|
||||
"3" => UpscalerQualityMode.Quality,
|
||||
"4" => UpscalerQualityMode.UltraPerformance,
|
||||
"5" => UpscalerQualityMode.UltraQuality,
|
||||
"6" => UpscalerQualityMode.Dlaa,
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FSR's byte (beta.25, D65): <c>0x10</c> plus <c>FfxApiUpscaleQualityMode</c> — the mode whose <c>ffxQuery</c>
|
||||
/// answer is the size the title's UPSCALE dispatch was handed (NativeAA 16, Quality 17, Balanced 18, Performance 19,
|
||||
/// Ultra Performance 20). Offset at the writer because FSR's NativeAA is 0 and 0 is "nobody looked".
|
||||
/// </summary>
|
||||
private static UpscalerQualityMode? FromFsrByte(string quality) => quality switch
|
||||
{
|
||||
"16" => UpscalerQualityMode.NativeAa,
|
||||
"17" => UpscalerQualityMode.Quality,
|
||||
"18" => UpscalerQualityMode.Balanced,
|
||||
"19" => UpscalerQualityMode.Performance,
|
||||
"20" => UpscalerQualityMode.UltraPerformance,
|
||||
_ => null,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The NVIDIA driver's per-process report (<c>NvAPI_NGX_GetNGXOverrideState</c>'s <c>performanceMode</c>) in NGX's own
|
||||
/// numbering: 0 Performance, 1 Balanced, 2 Quality, 3 Ultra Performance, 4 Ultra Quality, 5 DLAA. 0–2 agree with the
|
||||
/// profile's numbering and 3 is measured (the remarks above); 4 and 5 are NGX's documented values, not yet measured.
|
||||
/// </summary>
|
||||
public static UpscalerQualityMode? FromDriverReport(uint? performanceMode) => performanceMode switch
|
||||
{
|
||||
0 => UpscalerQualityMode.Performance,
|
||||
1 => UpscalerQualityMode.Balanced,
|
||||
2 => UpscalerQualityMode.Quality,
|
||||
3 => UpscalerQualityMode.UltraPerformance,
|
||||
4 => UpscalerQualityMode.UltraQuality,
|
||||
5 => UpscalerQualityMode.Dlaa,
|
||||
_ => null,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The NVIDIA App's Super Resolution Mode as the driver profile stores it (<c>NGX_DLSS_SR_MODE</c>, NVIDIA's
|
||||
/// <c>NvApiDriverSettings.h</c>): 0 Performance, 1 Balanced, 2 Quality, 4 DLAA, 5 Ultra Performance, 6 a custom ratio;
|
||||
/// 3 is "the game's own" — no override — and is null, as is anything else.
|
||||
/// </summary>
|
||||
public static UpscalerQualityMode? FromProfile(uint? srMode) => srMode switch
|
||||
{
|
||||
0 => UpscalerQualityMode.Performance,
|
||||
1 => UpscalerQualityMode.Balanced,
|
||||
2 => UpscalerQualityMode.Quality,
|
||||
4 => UpscalerQualityMode.Dlaa,
|
||||
5 => UpscalerQualityMode.UltraPerformance,
|
||||
6 => UpscalerQualityMode.Custom,
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Metrics;
|
||||
|
||||
/// <summary>
|
||||
/// An upscaler's quality mode by the name its menu gives it (beta.24, owner decision D63): the mode a hooked call carried
|
||||
/// and the mode an NVIDIA App override set are the same names, so every surface says a mode alike whoever chose it. Each
|
||||
/// source numbers them its own way, and <see cref="UpscalerNames"/> decodes each where it is read.
|
||||
/// </summary>
|
||||
/// <remarks>A mode nobody decoded is a null; the zero member exists so a default is not a claim, never Performance.</remarks>
|
||||
public enum UpscalerQualityMode
|
||||
{
|
||||
/// <summary>Nobody named a mode. The zero value, so a default is not a claim; never stored or shown.</summary>
|
||||
None = 0,
|
||||
|
||||
Performance = 1,
|
||||
Balanced = 2,
|
||||
Quality = 3,
|
||||
UltraPerformance = 4,
|
||||
UltraQuality = 5,
|
||||
Dlaa = 6,
|
||||
|
||||
/// <summary>An override's custom render-scale ratio; its percentage travels beside it.</summary>
|
||||
Custom = 7,
|
||||
|
||||
/// <summary>FSR at a per-dimension ratio of 1.0: anti-aliasing at native resolution (beta.25, D65).</summary>
|
||||
NativeAa = 8,
|
||||
}
|
||||
@@ -20,6 +20,12 @@ namespace FrameLedger.Infrastructure.Capture;
|
||||
/// list through documented PSAPI, plus <see cref="FileVersionInfo"/> on the path it names.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>And, since beta.24 (D64), where each file lives</b> — the game's folder, the graphics driver's own copy, or
|
||||
/// Windows' (<see cref="RuntimeModuleSources"/>) — and every module under <c>%ProgramData%\NVIDIA\NGX</c>, whatever its
|
||||
/// name: the NVIDIA App's DLSS override loads its libraries from there, and on the owner's Silent Hill 2 session (×6
|
||||
/// frame generation through the override, 2026-10-13) none of them carried a census name.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>Never throws.</b> A target that is protected, elevated, or already gone yields an
|
||||
/// unreadable snapshot with whatever was collected before the failure; the loop records that
|
||||
/// rather than ending the session over a diagnostic.
|
||||
@@ -36,10 +42,17 @@ public sealed class RuntimeModuleSnapshot : IRuntimeModuleSnapshot
|
||||
/// <inheritdoc />
|
||||
RuntimeModuleSet IRuntimeModuleSnapshot.Take(int pid) => Take(pid, _fileNames);
|
||||
|
||||
public static RuntimeModuleSet Take(int pid, IReadOnlyCollection<string> fileNames)
|
||||
public static RuntimeModuleSet Take(int pid, IReadOnlyCollection<string> fileNames) =>
|
||||
Take(pid, fileNames, Environment.GetFolderPath(Environment.SpecialFolder.Windows), Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData));
|
||||
|
||||
/// <summary>The same with the two system folders handed in (tests).</summary>
|
||||
public static RuntimeModuleSet Take(int pid, IReadOnlyCollection<string> fileNames, string windowsDirectory, string programDataDirectory)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(fileNames);
|
||||
var found = new List<RuntimeModuleInfo>();
|
||||
|
||||
// A folder Windows did not name classifies nothing and catches nothing by path; the names are still answered.
|
||||
bool folders = !string.IsNullOrWhiteSpace(windowsDirectory) && !string.IsNullOrWhiteSpace(programDataDirectory);
|
||||
try
|
||||
{
|
||||
using Process target = Process.GetProcessById(pid);
|
||||
@@ -52,12 +65,15 @@ public sealed class RuntimeModuleSnapshot : IRuntimeModuleSnapshot
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!fileNames.Contains(name, StringComparer.OrdinalIgnoreCase))
|
||||
if (!fileNames.Contains(name, StringComparer.OrdinalIgnoreCase) && !(folders && RuntimeModuleSources.IsNgxOverrideFolder(path, programDataDirectory)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
found.Add(Describe(name, path));
|
||||
found.Add(Describe(name, path) with
|
||||
{
|
||||
Source = folders ? RuntimeModuleSources.Classify(path, windowsDirectory, programDataDirectory) : RuntimeModuleSource.Unknown,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
-- 0021 (2026-10-19, beta.24, owner decision D64): where each loaded runtime module's file lived, by class.
|
||||
--
|
||||
-- One JSON column beside runtime_modules ({file: version}, P2): {file: "game" | "graphics_driver" | "windows"}, from the
|
||||
-- path the module snapshot read through the loader's list (Application.Capture.RuntimeModuleSources) - the class is
|
||||
-- stored, the path never is (a path names a user folder; the Privacy Policy says the folder is not kept). It is what
|
||||
-- tells the NVIDIA App's DLSS override, which loads the driver's own copy from %ProgramData%\NVIDIA, from the library the
|
||||
-- game ships (05_DETECTION section DLSS generation). Written by the Agent only (06_DATA_MODEL section Writer ownership);
|
||||
-- ADD COLUMN only. A session written before has none; a session recovered from its crash file has neither column.
|
||||
|
||||
ALTER TABLE sessions ADD COLUMN runtime_module_sources TEXT;
|
||||
@@ -19,10 +19,10 @@ namespace FrameLedger.Infrastructure.Persistence;
|
||||
internal static class SessionRowColumns
|
||||
{
|
||||
public const string Insert =
|
||||
"INSERT INTO sessions (session_guid, game_id, snapshot_id, started_at, ended_at, duration_s, qpc_epoch, qpc_frequency, capture_tier, capture_mode, capture_notes, ac_exception_family, late_attach, telemetry_source, overlay_build_id, exit_status, drain_ticks, foreground_ticks, records_before_attach, dxgi_presents_before_hook, gap_count, guard_ticks_published, launch_wait_ms, api, present_mode, swap_effect, hdr_flag, hdr_source, sync_interval_mode, upscaler, upscaler_quality, upscaler_sharpness, upscaler_driver_reported, render_w, render_h, output_w, output_h, upscale_ratio, settings_changed_midsession, fg_mode, fg_source, fg_factor, fg_driver_reported, fg_runtime_census, fg_none_withheld_reason, fg_refusal, fg_refusal_detail, fg_factor_scope, fg_steady_share, presented_fps, presented_qualifier, dxgi_unseen_total, dxgi_present_samples, displayed_counted_by, sl_tag_census, sl_interposer_version, runtime_modules, driver_profile, executable_markers, ngx_driver_words, rt_flag, rt_source, pt_flag, pt_source, pt_confidence, rr_flag, rr_source, rt_frame_pct, rays_per_pixel, rt_pso_count, rt_tier, hooks_installed_mask, raster_pso_count, frame_count, app_frame_count, displayed_frame_count, dropped_frames, native_fps, displayed_fps, median_fps, p1_low_fps, p01_low_fps, displayed_p1_low_fps, min_fps, max_fps, frametime_stddev_ms, stutter_count, stutter_time_pct, pso_stutter_pct, reflex_active, latency_avg_us, latency_p95_us, dropped_records, fault_count, data_quality_warnings, writer_status_at_end, early_stop_family, loader_signals, vram_proc_avg_mb, vram_proc_max_mb, vram_budget_exceeded_pct, vram_adapter_max_mb, avg_cpu_temp, max_cpu_temp, avg_gpu_temp, max_gpu_temp, max_gpu_hotspot, avg_gpu_load, avg_cpu_load, avg_ram_mb, avg_gpu_power_w, throttle_pct, display_exclusive_ms, display_borderless_ms, display_windowed_ms, display_covers_ms, display_minimized_ms, display_nowindow_ms, display_changes, display_source, display_window_w, display_window_h, display_buffer_w, display_buffer_h, display_monitor_w, display_monitor_h, display_monitor_hz, game_vram_dedicated_avg_mb, game_vram_dedicated_median_mb, game_vram_dedicated_max_mb, game_vram_shared_max_mb, game_ram_private_avg_mb, game_ram_private_median_mb, game_ram_private_max_mb, game_ram_ws_max_mb, game_commit_max_mb, game_memory_processes, game_memory_source, sensor_stats_json, time_below_30_pct, time_below_60_pct, time_below_refresh_pct, frametime_delta_mean_ms, vsync_present_pct, tearing_allowed_pct, avg_gpu_core_clock_mhz, avg_gpu_mem_clock_mhz, avg_gpu_fan_rpm, max_gpu_mem_temp, power_limit_pct, thermal_limit_pct, app_frames_per_joule, fg_mix) "
|
||||
+ "VALUES (@session_guid, @game_id, @snapshot_id, @started_at, @ended_at, @duration_s, @qpc_epoch, @qpc_frequency, @capture_tier, @capture_mode, @capture_notes, @ac_exception_family, @late_attach, @telemetry_source, @overlay_build_id, @exit_status, @drain_ticks, @foreground_ticks, @records_before_attach, @dxgi_presents_before_hook, @gap_count, @guard_ticks_published, @launch_wait_ms, @api, @present_mode, @swap_effect, @hdr_flag, @hdr_source, @sync_interval_mode, @upscaler, @upscaler_quality, @upscaler_sharpness, @upscaler_driver_reported, @render_w, @render_h, @output_w, @output_h, @upscale_ratio, @settings_changed_midsession, @fg_mode, @fg_source, @fg_factor, @fg_driver_reported, @fg_runtime_census, @fg_none_withheld_reason, @fg_refusal, @fg_refusal_detail, @fg_factor_scope, @fg_steady_share, @presented_fps, @presented_qualifier, @dxgi_unseen_total, @dxgi_present_samples, @displayed_counted_by, @sl_tag_census, @sl_interposer_version, @runtime_modules, @driver_profile, @executable_markers, @ngx_driver_words, @rt_flag, @rt_source, @pt_flag, @pt_source, @pt_confidence, @rr_flag, @rr_source, @rt_frame_pct, @rays_per_pixel, @rt_pso_count, @rt_tier, @hooks_installed_mask, @raster_pso_count, @frame_count, @app_frame_count, @displayed_frame_count, @dropped_frames, @native_fps, @displayed_fps, @median_fps, @p1_low_fps, @p01_low_fps, @displayed_p1_low_fps, @min_fps, @max_fps, @frametime_stddev_ms, @stutter_count, @stutter_time_pct, @pso_stutter_pct, @reflex_active, @latency_avg_us, @latency_p95_us, @dropped_records, @fault_count, @data_quality_warnings, @writer_status_at_end, @early_stop_family, @loader_signals, @vram_proc_avg_mb, @vram_proc_max_mb, @vram_budget_exceeded_pct, @vram_adapter_max_mb, @avg_cpu_temp, @max_cpu_temp, @avg_gpu_temp, @max_gpu_temp, @max_gpu_hotspot, @avg_gpu_load, @avg_cpu_load, @avg_ram_mb, @avg_gpu_power_w, @throttle_pct, @display_exclusive_ms, @display_borderless_ms, @display_windowed_ms, @display_covers_ms, @display_minimized_ms, @display_nowindow_ms, @display_changes, @display_source, @display_window_w, @display_window_h, @display_buffer_w, @display_buffer_h, @display_monitor_w, @display_monitor_h, @display_monitor_hz, @game_vram_dedicated_avg_mb, @game_vram_dedicated_median_mb, @game_vram_dedicated_max_mb, @game_vram_shared_max_mb, @game_ram_private_avg_mb, @game_ram_private_median_mb, @game_ram_private_max_mb, @game_ram_ws_max_mb, @game_commit_max_mb, @game_memory_processes, @game_memory_source, @sensor_stats_json, @time_below_30_pct, @time_below_60_pct, @time_below_refresh_pct, @frametime_delta_mean_ms, @vsync_present_pct, @tearing_allowed_pct, @avg_gpu_core_clock_mhz, @avg_gpu_mem_clock_mhz, @avg_gpu_fan_rpm, @max_gpu_mem_temp, @power_limit_pct, @thermal_limit_pct, @app_frames_per_joule, @fg_mix) RETURNING id";
|
||||
"INSERT INTO sessions (session_guid, game_id, snapshot_id, started_at, ended_at, duration_s, qpc_epoch, qpc_frequency, capture_tier, capture_mode, capture_notes, ac_exception_family, late_attach, telemetry_source, overlay_build_id, exit_status, drain_ticks, foreground_ticks, records_before_attach, dxgi_presents_before_hook, gap_count, guard_ticks_published, launch_wait_ms, api, present_mode, swap_effect, hdr_flag, hdr_source, sync_interval_mode, upscaler, upscaler_quality, upscaler_sharpness, upscaler_driver_reported, render_w, render_h, output_w, output_h, upscale_ratio, settings_changed_midsession, fg_mode, fg_source, fg_factor, fg_driver_reported, fg_runtime_census, fg_none_withheld_reason, fg_refusal, fg_refusal_detail, fg_factor_scope, fg_steady_share, presented_fps, presented_qualifier, dxgi_unseen_total, dxgi_present_samples, displayed_counted_by, sl_tag_census, sl_interposer_version, runtime_modules, driver_profile, executable_markers, ngx_driver_words, rt_flag, rt_source, pt_flag, pt_source, pt_confidence, rr_flag, rr_source, rt_frame_pct, rays_per_pixel, rt_pso_count, rt_tier, hooks_installed_mask, raster_pso_count, frame_count, app_frame_count, displayed_frame_count, dropped_frames, native_fps, displayed_fps, median_fps, p1_low_fps, p01_low_fps, displayed_p1_low_fps, min_fps, max_fps, frametime_stddev_ms, stutter_count, stutter_time_pct, pso_stutter_pct, reflex_active, latency_avg_us, latency_p95_us, dropped_records, fault_count, data_quality_warnings, writer_status_at_end, early_stop_family, loader_signals, vram_proc_avg_mb, vram_proc_max_mb, vram_budget_exceeded_pct, vram_adapter_max_mb, avg_cpu_temp, max_cpu_temp, avg_gpu_temp, max_gpu_temp, max_gpu_hotspot, avg_gpu_load, avg_cpu_load, avg_ram_mb, avg_gpu_power_w, throttle_pct, display_exclusive_ms, display_borderless_ms, display_windowed_ms, display_covers_ms, display_minimized_ms, display_nowindow_ms, display_changes, display_source, display_window_w, display_window_h, display_buffer_w, display_buffer_h, display_monitor_w, display_monitor_h, display_monitor_hz, game_vram_dedicated_avg_mb, game_vram_dedicated_median_mb, game_vram_dedicated_max_mb, game_vram_shared_max_mb, game_ram_private_avg_mb, game_ram_private_median_mb, game_ram_private_max_mb, game_ram_ws_max_mb, game_commit_max_mb, game_memory_processes, game_memory_source, sensor_stats_json, time_below_30_pct, time_below_60_pct, time_below_refresh_pct, frametime_delta_mean_ms, vsync_present_pct, tearing_allowed_pct, avg_gpu_core_clock_mhz, avg_gpu_mem_clock_mhz, avg_gpu_fan_rpm, max_gpu_mem_temp, power_limit_pct, thermal_limit_pct, app_frames_per_joule, fg_mix, runtime_module_sources) "
|
||||
+ "VALUES (@session_guid, @game_id, @snapshot_id, @started_at, @ended_at, @duration_s, @qpc_epoch, @qpc_frequency, @capture_tier, @capture_mode, @capture_notes, @ac_exception_family, @late_attach, @telemetry_source, @overlay_build_id, @exit_status, @drain_ticks, @foreground_ticks, @records_before_attach, @dxgi_presents_before_hook, @gap_count, @guard_ticks_published, @launch_wait_ms, @api, @present_mode, @swap_effect, @hdr_flag, @hdr_source, @sync_interval_mode, @upscaler, @upscaler_quality, @upscaler_sharpness, @upscaler_driver_reported, @render_w, @render_h, @output_w, @output_h, @upscale_ratio, @settings_changed_midsession, @fg_mode, @fg_source, @fg_factor, @fg_driver_reported, @fg_runtime_census, @fg_none_withheld_reason, @fg_refusal, @fg_refusal_detail, @fg_factor_scope, @fg_steady_share, @presented_fps, @presented_qualifier, @dxgi_unseen_total, @dxgi_present_samples, @displayed_counted_by, @sl_tag_census, @sl_interposer_version, @runtime_modules, @driver_profile, @executable_markers, @ngx_driver_words, @rt_flag, @rt_source, @pt_flag, @pt_source, @pt_confidence, @rr_flag, @rr_source, @rt_frame_pct, @rays_per_pixel, @rt_pso_count, @rt_tier, @hooks_installed_mask, @raster_pso_count, @frame_count, @app_frame_count, @displayed_frame_count, @dropped_frames, @native_fps, @displayed_fps, @median_fps, @p1_low_fps, @p01_low_fps, @displayed_p1_low_fps, @min_fps, @max_fps, @frametime_stddev_ms, @stutter_count, @stutter_time_pct, @pso_stutter_pct, @reflex_active, @latency_avg_us, @latency_p95_us, @dropped_records, @fault_count, @data_quality_warnings, @writer_status_at_end, @early_stop_family, @loader_signals, @vram_proc_avg_mb, @vram_proc_max_mb, @vram_budget_exceeded_pct, @vram_adapter_max_mb, @avg_cpu_temp, @max_cpu_temp, @avg_gpu_temp, @max_gpu_temp, @max_gpu_hotspot, @avg_gpu_load, @avg_cpu_load, @avg_ram_mb, @avg_gpu_power_w, @throttle_pct, @display_exclusive_ms, @display_borderless_ms, @display_windowed_ms, @display_covers_ms, @display_minimized_ms, @display_nowindow_ms, @display_changes, @display_source, @display_window_w, @display_window_h, @display_buffer_w, @display_buffer_h, @display_monitor_w, @display_monitor_h, @display_monitor_hz, @game_vram_dedicated_avg_mb, @game_vram_dedicated_median_mb, @game_vram_dedicated_max_mb, @game_vram_shared_max_mb, @game_ram_private_avg_mb, @game_ram_private_median_mb, @game_ram_private_max_mb, @game_ram_ws_max_mb, @game_commit_max_mb, @game_memory_processes, @game_memory_source, @sensor_stats_json, @time_below_30_pct, @time_below_60_pct, @time_below_refresh_pct, @frametime_delta_mean_ms, @vsync_present_pct, @tearing_allowed_pct, @avg_gpu_core_clock_mhz, @avg_gpu_mem_clock_mhz, @avg_gpu_fan_rpm, @max_gpu_mem_temp, @power_limit_pct, @thermal_limit_pct, @app_frames_per_joule, @fg_mix, @runtime_module_sources) RETURNING id";
|
||||
|
||||
public const string Select = "SELECT id, session_guid, game_id, snapshot_id, started_at, ended_at, duration_s, qpc_epoch, qpc_frequency, capture_tier, capture_mode, capture_notes, ac_exception_family, late_attach, telemetry_source, overlay_build_id, exit_status, drain_ticks, foreground_ticks, records_before_attach, dxgi_presents_before_hook, gap_count, guard_ticks_published, launch_wait_ms, api, present_mode, swap_effect, hdr_flag, hdr_source, sync_interval_mode, upscaler, upscaler_quality, upscaler_sharpness, upscaler_driver_reported, render_w, render_h, output_w, output_h, upscale_ratio, settings_changed_midsession, fg_mode, fg_source, fg_factor, fg_driver_reported, fg_runtime_census, fg_none_withheld_reason, fg_refusal, fg_refusal_detail, fg_factor_scope, fg_steady_share, presented_fps, presented_qualifier, dxgi_unseen_total, dxgi_present_samples, displayed_counted_by, sl_tag_census, sl_interposer_version, runtime_modules, driver_profile, executable_markers, ngx_driver_words, rt_flag, rt_source, pt_flag, pt_source, pt_confidence, rr_flag, rr_source, rt_frame_pct, rays_per_pixel, rt_pso_count, rt_tier, hooks_installed_mask, raster_pso_count, frame_count, app_frame_count, displayed_frame_count, dropped_frames, native_fps, displayed_fps, median_fps, p1_low_fps, p01_low_fps, displayed_p1_low_fps, min_fps, max_fps, frametime_stddev_ms, stutter_count, stutter_time_pct, pso_stutter_pct, reflex_active, latency_avg_us, latency_p95_us, dropped_records, fault_count, data_quality_warnings, writer_status_at_end, early_stop_family, loader_signals, vram_proc_avg_mb, vram_proc_max_mb, vram_budget_exceeded_pct, vram_adapter_max_mb, avg_cpu_temp, max_cpu_temp, avg_gpu_temp, max_gpu_temp, max_gpu_hotspot, avg_gpu_load, avg_cpu_load, avg_ram_mb, avg_gpu_power_w, throttle_pct, display_exclusive_ms, display_borderless_ms, display_windowed_ms, display_covers_ms, display_minimized_ms, display_nowindow_ms, display_changes, display_source, display_window_w, display_window_h, display_buffer_w, display_buffer_h, display_monitor_w, display_monitor_h, display_monitor_hz, game_vram_dedicated_avg_mb, game_vram_dedicated_median_mb, game_vram_dedicated_max_mb, game_vram_shared_max_mb, game_ram_private_avg_mb, game_ram_private_median_mb, game_ram_private_max_mb, game_ram_ws_max_mb, game_commit_max_mb, game_memory_processes, game_memory_source, sensor_stats_json, time_below_30_pct, time_below_60_pct, time_below_refresh_pct, frametime_delta_mean_ms, vsync_present_pct, tearing_allowed_pct, avg_gpu_core_clock_mhz, avg_gpu_mem_clock_mhz, avg_gpu_fan_rpm, max_gpu_mem_temp, power_limit_pct, thermal_limit_pct, app_frames_per_joule, fg_mix FROM sessions";
|
||||
public const string Select = "SELECT id, session_guid, game_id, snapshot_id, started_at, ended_at, duration_s, qpc_epoch, qpc_frequency, capture_tier, capture_mode, capture_notes, ac_exception_family, late_attach, telemetry_source, overlay_build_id, exit_status, drain_ticks, foreground_ticks, records_before_attach, dxgi_presents_before_hook, gap_count, guard_ticks_published, launch_wait_ms, api, present_mode, swap_effect, hdr_flag, hdr_source, sync_interval_mode, upscaler, upscaler_quality, upscaler_sharpness, upscaler_driver_reported, render_w, render_h, output_w, output_h, upscale_ratio, settings_changed_midsession, fg_mode, fg_source, fg_factor, fg_driver_reported, fg_runtime_census, fg_none_withheld_reason, fg_refusal, fg_refusal_detail, fg_factor_scope, fg_steady_share, presented_fps, presented_qualifier, dxgi_unseen_total, dxgi_present_samples, displayed_counted_by, sl_tag_census, sl_interposer_version, runtime_modules, driver_profile, executable_markers, ngx_driver_words, rt_flag, rt_source, pt_flag, pt_source, pt_confidence, rr_flag, rr_source, rt_frame_pct, rays_per_pixel, rt_pso_count, rt_tier, hooks_installed_mask, raster_pso_count, frame_count, app_frame_count, displayed_frame_count, dropped_frames, native_fps, displayed_fps, median_fps, p1_low_fps, p01_low_fps, displayed_p1_low_fps, min_fps, max_fps, frametime_stddev_ms, stutter_count, stutter_time_pct, pso_stutter_pct, reflex_active, latency_avg_us, latency_p95_us, dropped_records, fault_count, data_quality_warnings, writer_status_at_end, early_stop_family, loader_signals, vram_proc_avg_mb, vram_proc_max_mb, vram_budget_exceeded_pct, vram_adapter_max_mb, avg_cpu_temp, max_cpu_temp, avg_gpu_temp, max_gpu_temp, max_gpu_hotspot, avg_gpu_load, avg_cpu_load, avg_ram_mb, avg_gpu_power_w, throttle_pct, display_exclusive_ms, display_borderless_ms, display_windowed_ms, display_covers_ms, display_minimized_ms, display_nowindow_ms, display_changes, display_source, display_window_w, display_window_h, display_buffer_w, display_buffer_h, display_monitor_w, display_monitor_h, display_monitor_hz, game_vram_dedicated_avg_mb, game_vram_dedicated_median_mb, game_vram_dedicated_max_mb, game_vram_shared_max_mb, game_ram_private_avg_mb, game_ram_private_median_mb, game_ram_private_max_mb, game_ram_ws_max_mb, game_commit_max_mb, game_memory_processes, game_memory_source, sensor_stats_json, time_below_30_pct, time_below_60_pct, time_below_refresh_pct, frametime_delta_mean_ms, vsync_present_pct, tearing_allowed_pct, avg_gpu_core_clock_mhz, avg_gpu_mem_clock_mhz, avg_gpu_fan_rpm, max_gpu_mem_temp, power_limit_pct, thermal_limit_pct, app_frames_per_joule, fg_mix, runtime_module_sources FROM sessions";
|
||||
|
||||
public static Dictionary<string, object?> Parameters(SessionRow s)
|
||||
{
|
||||
@@ -407,9 +407,19 @@ internal static class SessionRowColumns
|
||||
};
|
||||
|
||||
// Schema 0020 (beta.24, D62): every frame-generation state the session held, with its share (FgMixRecord's JSON).
|
||||
private static void Parameters7(Dictionary<string, object?> d, SessionRow s) => d["fg_mix"] = s.FgMixJson;
|
||||
private static void Parameters7(Dictionary<string, object?> d, SessionRow s)
|
||||
{
|
||||
d["fg_mix"] = s.FgMixJson;
|
||||
|
||||
private static SessionRow Read7(SessionRow row, DbDataReader r) => row with { FgMixJson = S(r, "fg_mix") };
|
||||
// Schema 0021 (beta.24, D64): each runtime module's folder class.
|
||||
d["runtime_module_sources"] = s.RuntimeModuleSourcesJson;
|
||||
}
|
||||
|
||||
private static SessionRow Read7(SessionRow row, DbDataReader r) => row with
|
||||
{
|
||||
FgMixJson = S(r, "fg_mix"),
|
||||
RuntimeModuleSourcesJson = S(r, "runtime_module_sources"),
|
||||
};
|
||||
|
||||
public static string ExitStatusText(ExitStatus status) => Vocabulary.ExitStatusText(status);
|
||||
|
||||
|
||||
@@ -260,6 +260,14 @@ public sealed record SessionProgressEvent
|
||||
/// </summary>
|
||||
public string? UpscalerDriverReported { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The quality mode an NVIDIA App override set, when the driver reports it applied in the target and DLSS super
|
||||
/// resolution ran there (beta.24, D63): <c>performance</c>, <c>balanced</c>, <c>quality</c>, <c>ultra_performance</c>,
|
||||
/// <c>ultra_quality</c> or <c>dlaa</c>. From the driver's report alone — the profile is the stored session's — so a
|
||||
/// value the report cannot settle is absent here and named by the summary. An older client ignores it (<c>07_IPC</c> §C).
|
||||
/// </summary>
|
||||
public string? UpscalerQualityOverride { get; init; }
|
||||
|
||||
public int? RenderW { get; init; }
|
||||
|
||||
public int? RenderH { get; init; }
|
||||
|
||||
@@ -255,6 +255,9 @@ public enum FlHookFamily : uint
|
||||
ColorSpace = 1u << 8,
|
||||
Reflex = 1u << 9,
|
||||
Vram = 1u << 10,
|
||||
|
||||
/// <summary>The FidelityFX quality query, <c>ffxQuery</c> (beta.25, D65): what lets a dispatch's size name its mode.</summary>
|
||||
UpscalerQuality = 1u << 11,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -117,7 +117,8 @@ inline constexpr uint32_t kFamiliesEvaluateFeatureDoesNotImplement =
|
||||
static_cast<uint32_t>(fl::FL_HOOK_FG_EVALUATIONS) | static_cast<uint32_t>(fl::FL_HOOK_RT_DISPATCH) |
|
||||
static_cast<uint32_t>(fl::FL_HOOK_RT_AS_BUILD) | static_cast<uint32_t>(fl::FL_HOOK_RT_PSO) |
|
||||
static_cast<uint32_t>(fl::FL_HOOK_PSO) | static_cast<uint32_t>(fl::FL_HOOK_COLOR_SPACE) |
|
||||
static_cast<uint32_t>(fl::FL_HOOK_REFLEX) | static_cast<uint32_t>(fl::FL_HOOK_VRAM);
|
||||
static_cast<uint32_t>(fl::FL_HOOK_REFLEX) | static_cast<uint32_t>(fl::FL_HOOK_VRAM) |
|
||||
static_cast<uint32_t>(fl::FL_HOOK_UPSCALER_QUALITY);
|
||||
|
||||
static_assert((kFamilyEvaluateFeature & kFamiliesEvaluateFeatureDoesNotImplement) == 0u,
|
||||
"the slEvaluateFeature row claims a family its detour does not implement -- hookinventory-check "
|
||||
@@ -188,7 +189,8 @@ inline constexpr uint32_t kFamiliesFfxDispatchDoesNotImplement =
|
||||
static_cast<uint32_t>(fl::FL_HOOK_PRESENT) | static_cast<uint32_t>(fl::FL_HOOK_RT_DISPATCH) |
|
||||
static_cast<uint32_t>(fl::FL_HOOK_RT_AS_BUILD) | static_cast<uint32_t>(fl::FL_HOOK_RT_PSO) |
|
||||
static_cast<uint32_t>(fl::FL_HOOK_PSO) | static_cast<uint32_t>(fl::FL_HOOK_COLOR_SPACE) |
|
||||
static_cast<uint32_t>(fl::FL_HOOK_REFLEX) | static_cast<uint32_t>(fl::FL_HOOK_VRAM);
|
||||
static_cast<uint32_t>(fl::FL_HOOK_REFLEX) | static_cast<uint32_t>(fl::FL_HOOK_VRAM) |
|
||||
static_cast<uint32_t>(fl::FL_HOOK_UPSCALER_QUALITY);
|
||||
|
||||
static_assert((kFamilyFfxDispatch & kFamiliesFfxDispatchDoesNotImplement) == 0u,
|
||||
"the ffxDispatch rows claim a family their detour does not implement -- hookinventory-check reads "
|
||||
@@ -237,6 +239,28 @@ static_assert(kFamilyFsr3Host == kFamilyFfxDispatch,
|
||||
"one family, one publish point, one live latch: the host row shares the ffx-api rows' drain word and "
|
||||
"must share their claims, or fgEvaluations would be fed by a row that does not claim FG_EVALUATIONS");
|
||||
|
||||
// --- AMD FidelityFX: ffxQuery on the same four modules (beta.25, owner decision D65) ---
|
||||
//
|
||||
// THE QUALITY MODE IS AN ARGUMENT OF A QUERY, NEVER OF THE DISPATCH. FfxApiUpscaleQualityMode reaches the vendor
|
||||
// only through ffxQuery -- "what render size (or ratio) does this mode give at this display size?" -- which a title
|
||||
// asks before it sizes its targets; the UPSCALE dispatch then carries the size alone. So the answers the vendor
|
||||
// returned are kept, and the dispatch arm names the mode whose answer is the size it was handed (dllmain.cpp). The
|
||||
// rows are the four modules ffxDispatch is hooked on, for the reason those rows give -- whatever module the game
|
||||
// calls -- and a query a loader passed on to a leaf's export would only refresh one kept answer twice: nothing is
|
||||
// counted, so nothing can be counted twice.
|
||||
//
|
||||
// ITS OWN BIT, NOT A SHARE OF kFamilyFfxDispatch. The query entitles no measured field by itself -- the mode rides
|
||||
// in the byte FL_MEASURED_UPSCALER_PARAMS already covers, from the dispatch arm -- and the bit says only that the
|
||||
// query was hooked, so "the title never asked" can be told from "nobody could have seen it ask".
|
||||
inline constexpr uint32_t kFamilyFfxQuery = static_cast<uint32_t>(fl::FL_HOOK_UPSCALER_QUALITY);
|
||||
static_assert(kFamilyFfxQuery != kFamilyFfxDispatch && kFamilyFfxQuery != kFamilyEvaluateFeature &&
|
||||
kFamilyFfxQuery != static_cast<uint32_t>(fl::FL_HOOK_UPSCALER_PARAMS) &&
|
||||
kFamilyFfxQuery != static_cast<uint32_t>(fl::FL_HOOK_FG_EVALUATIONS),
|
||||
"InstallByFamily binds a row by EQUALITY on this value -- a collision would hand the query's detour "
|
||||
"body to a dispatch export, whose signature it does not share");
|
||||
static_assert((kFamilyFfxDispatch & kFamilyFfxQuery) == 0u,
|
||||
"the dispatch rows must not claim the query's bit: they do not hook ffxQuery");
|
||||
|
||||
// The leaves, in the order dllmain's per-leaf trampoline and latch arrays are indexed.
|
||||
enum FfxLeaf : uint32_t {
|
||||
kFfxLeafMonolith = 0, // amd_fidelityfx_dx12.dll -- SDK 1.1.x, FSR 3.1 only
|
||||
@@ -336,6 +360,10 @@ inline int FfxLeafOf(const wchar_t* moduleName) noexcept {
|
||||
X(L"amd_fidelityfx_upscaler_dx12.dll", "ffxDispatch", fl::inventory::kFamilyFfxDispatch) \
|
||||
X(L"amd_fidelityfx_framegeneration_dx12.dll", "ffxDispatch", fl::inventory::kFamilyFfxDispatch) \
|
||||
X(L"amd_fidelityfx_loader_dx12.dll", "ffxDispatch", fl::inventory::kFamilyFfxDispatch) \
|
||||
X(L"amd_fidelityfx_dx12.dll", "ffxQuery", fl::inventory::kFamilyFfxQuery) \
|
||||
X(L"amd_fidelityfx_upscaler_dx12.dll", "ffxQuery", fl::inventory::kFamilyFfxQuery) \
|
||||
X(L"amd_fidelityfx_framegeneration_dx12.dll", "ffxQuery", fl::inventory::kFamilyFfxQuery) \
|
||||
X(L"amd_fidelityfx_loader_dx12.dll", "ffxQuery", fl::inventory::kFamilyFfxQuery) \
|
||||
X(L"ffx_fsr3_x64.dll", "ffxFsr3ContextDispatchUpscale", fl::inventory::kFamilyFsr3Host)
|
||||
|
||||
// The FSR 3.0 host module and the one symbol dllmain's ffx arm keys on for it. Named
|
||||
@@ -425,6 +453,39 @@ static_assert(FfxLeafOfExact(kModuleFfxFsr3Host) < 0,
|
||||
static_assert(!FfxDispatchRowExistsFor(kModuleFfxFsr3Host),
|
||||
"the host exports no ffxDispatch; a row claiming one would resolve nothing and install nothing");
|
||||
|
||||
// The ffxQuery rows, bound to the leaf table the same way (beta.25, D65): a leaf without its query row is a
|
||||
// trampoline slot nothing installs into; a query row on a module the table does not know would install nothing.
|
||||
inline constexpr const char* kSymbolFfxQuery = "ffxQuery";
|
||||
|
||||
constexpr bool FfxQueryRowExistsFor(const wchar_t* moduleName) noexcept {
|
||||
#define FL_FFX_QUERY_ROW_FOR(mod, sym, family) \
|
||||
if (SameW(mod, moduleName) && SameA(sym, kSymbolFfxQuery)) { \
|
||||
return true; \
|
||||
}
|
||||
FL_HOOK_INVENTORY(FL_FFX_QUERY_ROW_FOR)
|
||||
#undef FL_FFX_QUERY_ROW_FOR
|
||||
return false;
|
||||
}
|
||||
constexpr bool EveryFfxQueryRowIsALeaf() noexcept {
|
||||
#define FL_FFX_QUERY_ROW_IS_LEAF(mod, sym, family) \
|
||||
if (SameA(sym, kSymbolFfxQuery) && FfxLeafOfExact(mod) < 0) { \
|
||||
return false; \
|
||||
}
|
||||
FL_HOOK_INVENTORY(FL_FFX_QUERY_ROW_IS_LEAF)
|
||||
#undef FL_FFX_QUERY_ROW_IS_LEAF
|
||||
return true;
|
||||
}
|
||||
static_assert(FfxQueryRowExistsFor(kFfxLeafModules[kFfxLeafMonolith]) &&
|
||||
FfxQueryRowExistsFor(kFfxLeafModules[kFfxLeafUpscaler]) &&
|
||||
FfxQueryRowExistsFor(kFfxLeafModules[kFfxLeafFrameGeneration]) &&
|
||||
FfxQueryRowExistsFor(kFfxLeafModules[kFfxLeafLoader]),
|
||||
"every ffx leaf needs its ffxQuery row, spelled identically -- the query reaches whatever module the "
|
||||
"game calls, as the dispatch does");
|
||||
static_assert(EveryFfxQueryRowIsALeaf(),
|
||||
"an ffxQuery row names a module the leaf table does not know -- InstallByFamily would find no slot");
|
||||
static_assert(!FfxQueryRowExistsFor(kModuleFfxFsr3Host),
|
||||
"the FSR 3.0 host has its own query API, not ffxQuery; a row claiming one would resolve nothing");
|
||||
|
||||
// Does this module speak the Streamline 2 ABI the vendored headers describe?
|
||||
//
|
||||
// MEASURED 2026-08-14, and it cost an access violation to find. The Witcher 3
|
||||
|
||||
@@ -94,8 +94,9 @@ struct ScanResult {
|
||||
|
||||
// The vendor's own DLSSMode value, or 0xFF for "a hook ran and could not
|
||||
// tell". NEVER 0: fl_shm.h has no in-band "not measured" for
|
||||
// upscalerQuality, so 0 would publish DLSSMode::eMaxPerformance -- "DLSS
|
||||
// Performance" -- as a measurement.
|
||||
// upscalerQuality, and 0 is DLSSMode::eOff -- "DLSS is off", not a quality
|
||||
// -- so 0 would publish a mode nobody measured. (Until beta.24 this said 0
|
||||
// was eMaxPerformance; that is 1 in the numbering this byte carries.)
|
||||
uint8_t quality = 0xFFu;
|
||||
bool qualityFound = false;
|
||||
};
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <d3d12.h>
|
||||
#include <dxgi1_2.h>
|
||||
|
||||
#include <bit>
|
||||
#include <cstddef>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
@@ -1150,6 +1151,61 @@ PFN_FfxDispatch g_origFfxDispatch[fl::inventory::kFfxLeafCount] = {};
|
||||
std::atomic<uint32_t> g_ffxPatched[fl::inventory::kFfxLeafCount] = {};
|
||||
std::atomic<uint32_t> g_ffxLive{0};
|
||||
|
||||
// --- The FidelityFX quality query: ffxQuery on the same four modules (beta.25, owner decision D65) ---------------
|
||||
//
|
||||
// THE DISPATCH CARRIES NO QUALITY MODE, AND THE QUERY IS WHERE A TITLE NAMES ONE. FfxApiUpscaleQualityMode is an input
|
||||
// to a query the title makes -- "what render size (or ratio) does this mode give at this display size?" -- before it
|
||||
// sizes its targets; the per-frame UPSCALE dispatch then carries the size alone. So every answer the vendor returned
|
||||
// is kept, one slot per mode, and an UPSCALE dispatch whose renderSize (and upscaleSize, where the title states it)
|
||||
// fits exactly ONE kept answer names that answer's mode. A title that sizes its targets without asking, a title that
|
||||
// asked before this DLL was loaded (attach), and a dynamic-resolution title dispatching sizes no answer gave all keep
|
||||
// 0xFF -- "a hook ran and could not tell" -- which is the answer, not a gap.
|
||||
//
|
||||
// WHAT IS READ (CLAUDE.md rule 4): the descriptor the title passed to a hooked export -- its type, the display size
|
||||
// and the mode -- and, after the original returned FFX_API_RETURN_OK, the values the vendor wrote through the title's
|
||||
// own out pointers, which are arguments of the hooked call. Under the hook's SEH guard like every other argument;
|
||||
// nothing of the title's is written, and nothing beyond those fields is read.
|
||||
constexpr uint32_t kFfxQualityModes = 5; // FFX_UPSCALE_QUALITY_MODE_NATIVEAA .. _ULTRA_PERFORMANCE
|
||||
constexpr uint32_t kFfxQualityNone = 0xFFu;
|
||||
constexpr uint32_t kFfxQualityBase = 0x10u; // the byte FSR's mode is published as: 0x10 + mode (fl_shm.h)
|
||||
// displayW | displayH << 16 | renderW << 32 | renderH << 48; 0 = no answer (every field is non-zero when kept).
|
||||
std::atomic<uint64_t> g_ffxQualitySizes[kFfxQualityModes] = {};
|
||||
// A ratio answer's float bits; 0 = no answer (a kept ratio is at least 1.0).
|
||||
std::atomic<uint32_t> g_ffxQualityRatios[kFfxQualityModes] = {};
|
||||
// The last UPSCALE dispatch's mode, as the byte publishes it. RecordPresent reads it only on a present that drained an
|
||||
// UPSCALE, so it cannot outlive the frame it describes -- g_ffxExtent's rule.
|
||||
std::atomic<uint32_t> g_ffxQuality{kFfxQualityNone};
|
||||
|
||||
using PFN_FfxQuery = ::PfnFfxQuery;
|
||||
PFN_FfxQuery g_origFfxQuery[fl::inventory::kFfxLeafCount] = {};
|
||||
// Per leaf, patched; the family is published once every loaded leaf is (PublishFfxQueryFamilyIfWhole), for the reason
|
||||
// g_ffxPatched gives.
|
||||
std::atomic<uint32_t> g_ffxQueryPatched[fl::inventory::kFfxLeafCount] = {};
|
||||
std::atomic<uint32_t> g_ffxQueryLive{0};
|
||||
|
||||
// THE VALUES AND LAYOUTS THE QUERY ARM READS, PINNED TO LITERALS. Identical at FidelityFX SDK v1.1.4 (the monolith's
|
||||
// generation) and v2.3.0 (the vendored headers), checked against both on 2026-10-19: the two type ids, the mode enum,
|
||||
// and both query descriptors -- a re-vendoring that moved a field fails here, not on a title's own descriptor.
|
||||
static_assert(FFX_API_QUERY_DESC_TYPE_UPSCALE_GETUPSCALERATIOFROMQUALITYMODE == 0x00010002u,
|
||||
"the ratio query's type id (SDK 1.1.4 and 2.3.0)");
|
||||
static_assert(FFX_API_QUERY_DESC_TYPE_UPSCALE_GETRENDERRESOLUTIONFROMQUALITYMODE == 0x00010003u,
|
||||
"the render-size query's type id (SDK 1.1.4 and 2.3.0)");
|
||||
static_assert(FFX_UPSCALE_QUALITY_MODE_NATIVEAA == 0 && FFX_UPSCALE_QUALITY_MODE_ULTRA_PERFORMANCE == 4 &&
|
||||
kFfxQualityModes == FFX_UPSCALE_QUALITY_MODE_ULTRA_PERFORMANCE + 1,
|
||||
"one slot per vendor quality mode, NativeAA (0) through Ultra Performance (4)");
|
||||
static_assert(offsetof(ffxQueryDescUpscaleGetRenderResolutionFromQualityMode, displayWidth) == 16u &&
|
||||
offsetof(ffxQueryDescUpscaleGetRenderResolutionFromQualityMode, displayHeight) == 20u &&
|
||||
offsetof(ffxQueryDescUpscaleGetRenderResolutionFromQualityMode, qualityMode) == 24u &&
|
||||
offsetof(ffxQueryDescUpscaleGetRenderResolutionFromQualityMode, pOutRenderWidth) == 32u &&
|
||||
offsetof(ffxQueryDescUpscaleGetRenderResolutionFromQualityMode, pOutRenderHeight) == 40u,
|
||||
"the render-size query's layout after its 16-byte header");
|
||||
static_assert(offsetof(ffxQueryDescUpscaleGetUpscaleRatioFromQualityMode, qualityMode) == 16u &&
|
||||
offsetof(ffxQueryDescUpscaleGetUpscaleRatioFromQualityMode, pOutUpscaleRatio) == 24u,
|
||||
"the ratio query's layout after its 16-byte header");
|
||||
static_assert(offsetof(ffxDispatchDescUpscale, upscaleSize) ==
|
||||
offsetof(ffxDispatchDescUpscale, renderSize) + sizeof(FfxApiDimensions2D),
|
||||
"upscaleSize follows renderSize in the UPSCALE descriptor (SDK 1.1.4 and 2.3.0)");
|
||||
|
||||
// --- The FSR 3.0 HOST API: ffx_fsr3_x64.dll!ffxFsr3ContextDispatchUpscale ----------
|
||||
//
|
||||
// The fifth AMD target, and NOT a leaf: a different export with a different signature,
|
||||
@@ -1731,6 +1787,82 @@ void NoteFfxExtent(const FfxApiDimensions2D& size) noexcept {
|
||||
NoteFfxExtent(size.width, size.height);
|
||||
}
|
||||
|
||||
// The answer one query returned, kept for the dispatch arm. Read only after the vendor answered OK; a mode, a size or a
|
||||
// ratio the byte or the match cannot carry is not kept.
|
||||
void ObserveFfxQuery(const ffxQueryDescHeader* desc) noexcept {
|
||||
if (desc == nullptr) {
|
||||
return;
|
||||
}
|
||||
if (desc->type == FFX_API_QUERY_DESC_TYPE_UPSCALE_GETRENDERRESOLUTIONFROMQUALITYMODE) {
|
||||
const auto* q = reinterpret_cast<const ffxQueryDescUpscaleGetRenderResolutionFromQualityMode*>(desc);
|
||||
if (q->qualityMode >= kFfxQualityModes || q->pOutRenderWidth == nullptr || q->pOutRenderHeight == nullptr) {
|
||||
return;
|
||||
}
|
||||
const uint64_t dw = q->displayWidth;
|
||||
const uint64_t dh = q->displayHeight;
|
||||
const uint64_t rw = *q->pOutRenderWidth;
|
||||
const uint64_t rh = *q->pOutRenderHeight;
|
||||
if (dw == 0u || dh == 0u || rw == 0u || rh == 0u || dw > 0xFFFFu || dh > 0xFFFFu || rw > 0xFFFFu ||
|
||||
rh > 0xFFFFu) {
|
||||
return;
|
||||
}
|
||||
g_ffxQualitySizes[q->qualityMode].store(dw | (dh << 16) | (rw << 32) | (rh << 48), std::memory_order_release);
|
||||
return;
|
||||
}
|
||||
if (desc->type == FFX_API_QUERY_DESC_TYPE_UPSCALE_GETUPSCALERATIOFROMQUALITYMODE) {
|
||||
const auto* q = reinterpret_cast<const ffxQueryDescUpscaleGetUpscaleRatioFromQualityMode*>(desc);
|
||||
if (q->qualityMode >= kFfxQualityModes || q->pOutUpscaleRatio == nullptr) {
|
||||
return;
|
||||
}
|
||||
const float ratio = *q->pOutUpscaleRatio;
|
||||
if (!(ratio >= 1.0f && ratio <= 16.0f)) { // a NaN fails both
|
||||
return;
|
||||
}
|
||||
g_ffxQualityRatios[q->qualityMode].store(std::bit_cast<uint32_t>(ratio), std::memory_order_release);
|
||||
}
|
||||
}
|
||||
|
||||
// Whether a ratio answer gives this render dimension at this display dimension: the vendor truncates
|
||||
// display / ratio, and a title sizing its own targets from the ratio may round instead -- one pixel either way.
|
||||
bool RatioFits(uint32_t display, float ratio, uint32_t render) noexcept {
|
||||
const auto expected = static_cast<int64_t>(static_cast<float>(display) / ratio);
|
||||
const int64_t diff = expected - static_cast<int64_t>(render);
|
||||
return diff >= -1 && diff <= 1;
|
||||
}
|
||||
|
||||
// The byte an UPSCALE dispatch's sizes name: 0x10 + the ONE mode whose kept answer fits them, else 0xFF. A size
|
||||
// answer fits when its render size is the dispatched one and its display size the dispatched upscaleSize (or the
|
||||
// title stated none -- the field is optional); a ratio answer fits within RatioFits, and only with a stated
|
||||
// upscaleSize, which it needs to be a size at all. Two modes that fit name nothing.
|
||||
uint32_t FfxQualityOf(uint32_t renderW, uint32_t renderH, uint32_t displayW, uint32_t displayH) noexcept {
|
||||
if (renderW == 0u || renderH == 0u) {
|
||||
return kFfxQualityNone;
|
||||
}
|
||||
const bool displayStated = displayW != 0u && displayH != 0u;
|
||||
uint32_t found = kFfxQualityNone;
|
||||
for (uint32_t mode = 0; mode < kFfxQualityModes; ++mode) {
|
||||
bool fits = false;
|
||||
const uint64_t sizes = g_ffxQualitySizes[mode].load(std::memory_order_acquire);
|
||||
if (sizes != 0u) {
|
||||
const bool sameDisplay =
|
||||
!displayStated || ((sizes & 0xFFFFu) == displayW && ((sizes >> 16) & 0xFFFFu) == displayH);
|
||||
fits = sameDisplay && ((sizes >> 32) & 0xFFFFu) == renderW && ((sizes >> 48) & 0xFFFFu) == renderH;
|
||||
}
|
||||
const uint32_t bits = g_ffxQualityRatios[mode].load(std::memory_order_acquire);
|
||||
if (!fits && bits != 0u && displayStated) {
|
||||
const float ratio = std::bit_cast<float>(bits);
|
||||
fits = RatioFits(displayW, ratio, renderW) && RatioFits(displayH, ratio, renderH);
|
||||
}
|
||||
if (fits) {
|
||||
if (found != kFfxQualityNone) {
|
||||
return kFfxQualityNone; // two modes fit these sizes: neither is named
|
||||
}
|
||||
found = kFfxQualityBase + mode;
|
||||
}
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
void ObserveFfxDispatch(uint32_t leaf, const ffxDispatchDescHeader* desc) noexcept {
|
||||
if (desc == nullptr) {
|
||||
return;
|
||||
@@ -1739,6 +1871,10 @@ void ObserveFfxDispatch(uint32_t leaf, const ffxDispatchDescHeader* desc) noexce
|
||||
case FFX_API_DISPATCH_DESC_TYPE_UPSCALE: {
|
||||
const auto* up = reinterpret_cast<const ffxDispatchDescUpscale*>(desc);
|
||||
NoteFfxExtent(up->renderSize);
|
||||
// beta.25 (D65): the mode a kept query answer names for these sizes, or 0xFF.
|
||||
g_ffxQuality.store(
|
||||
FfxQualityOf(up->renderSize.width, up->renderSize.height, up->upscaleSize.width, up->upscaleSize.height),
|
||||
std::memory_order_release);
|
||||
g_ffxUpscaleLeaf.store(leaf + 1u, std::memory_order_relaxed);
|
||||
g_ffxSeen.fetch_add(fl::slseen::kCountOne, std::memory_order_relaxed);
|
||||
break;
|
||||
@@ -1820,6 +1956,35 @@ void* FfxDispatchDetour(uint32_t leaf) noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
// The query's trampolines, one per leaf for the reason Hook_FfxDispatchT gives. The ORIGINAL RUNS FIRST, exactly once,
|
||||
// on every path: the answer is read from what it wrote, and only when it said OK. Every argument forwarded untouched.
|
||||
template <uint32_t Leaf>
|
||||
ffxReturnCode_t Hook_FfxQueryT(ffxContext* context, ffxQueryDescHeader* desc) {
|
||||
static_assert(Leaf < fl::inventory::kFfxLeafCount, "a trampoline per leaf, and no more");
|
||||
const ffxReturnCode_t rc = g_origFfxQuery[Leaf](context, desc);
|
||||
FL_HOOK_GUARD({
|
||||
if (rc == FFX_API_RETURN_OK && MayObserve()) {
|
||||
ObserveFfxQuery(desc);
|
||||
}
|
||||
})
|
||||
return rc;
|
||||
}
|
||||
|
||||
void* FfxQueryDetour(uint32_t leaf) noexcept {
|
||||
switch (leaf) {
|
||||
case fl::inventory::kFfxLeafMonolith:
|
||||
return reinterpret_cast<void*>(&Hook_FfxQueryT<fl::inventory::kFfxLeafMonolith>);
|
||||
case fl::inventory::kFfxLeafUpscaler:
|
||||
return reinterpret_cast<void*>(&Hook_FfxQueryT<fl::inventory::kFfxLeafUpscaler>);
|
||||
case fl::inventory::kFfxLeafFrameGeneration:
|
||||
return reinterpret_cast<void*>(&Hook_FfxQueryT<fl::inventory::kFfxLeafFrameGeneration>);
|
||||
case fl::inventory::kFfxLeafLoader:
|
||||
return reinterpret_cast<void*>(&Hook_FfxQueryT<fl::inventory::kFfxLeafLoader>);
|
||||
default:
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Ray tracing (docs/HANDOFF.md item 4, 03_METRICS §RT/PT/RR).
|
||||
//
|
||||
@@ -2162,6 +2327,27 @@ bool InstallByFamily(const wchar_t* moduleName, const char* symbol, uint32_t fam
|
||||
g_ffxPatched[slot].store(1, std::memory_order_release);
|
||||
return true;
|
||||
}
|
||||
if (family == fl::inventory::kFamilyFfxQuery) {
|
||||
// FOUR ROWS, ONE ARM, the dispatch arm's shape: the row's MODULE picks the trampoline and the latch slot.
|
||||
// Published in PublishFfxQueryFamilyIfWhole, once every loaded leaf is in.
|
||||
const int leaf = fl::inventory::FfxLeafOf(moduleName);
|
||||
if (leaf < 0) {
|
||||
return false; // the static_asserts make this unreachable for the rows as written
|
||||
}
|
||||
const auto slot = static_cast<uint32_t>(leaf);
|
||||
if (g_ffxQueryPatched[slot].load(std::memory_order_acquire) != 0) {
|
||||
return true;
|
||||
}
|
||||
void* target = fl::inventory::ResolveScoped(moduleName, symbol);
|
||||
if (target == nullptr) {
|
||||
return false; // not loaded, or a module of the name that does not speak ffx-api
|
||||
}
|
||||
if (!PatchTarget(target, FfxQueryDetour(slot), reinterpret_cast<void**>(&g_origFfxQuery[slot]))) {
|
||||
return false;
|
||||
}
|
||||
g_ffxQueryPatched[slot].store(1, std::memory_order_release);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2201,6 +2387,28 @@ void PublishFfxFamilyIfWhole() noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
// Publish kFamilyFfxQuery once every ffx leaf the process has loaded has its query patched, and at least one does --
|
||||
// PublishFfxFamilyIfWhole's rule, for its reason: a family published on the first leaf would claim a hook the second
|
||||
// leaf does not have yet.
|
||||
void PublishFfxQueryFamilyIfWhole() noexcept {
|
||||
if (g_ffxQueryLive.load(std::memory_order_acquire) != 0) {
|
||||
return;
|
||||
}
|
||||
bool anyPatched = false;
|
||||
for (uint32_t i = 0; i < fl::inventory::kFfxLeafCount; ++i) {
|
||||
if (g_ffxQueryPatched[i].load(std::memory_order_acquire) != 0) {
|
||||
anyPatched = true;
|
||||
continue;
|
||||
}
|
||||
if (fl::inventory::IsModuleLoaded(fl::inventory::kFfxLeafModules[i])) {
|
||||
return; // loaded and not yet patched: the family is not whole
|
||||
}
|
||||
}
|
||||
if (anyPatched) {
|
||||
PublishHookFamily(fl::inventory::kFamilyFfxQuery, g_ffxQueryLive);
|
||||
}
|
||||
}
|
||||
|
||||
// Publish FL_HOOK_UPSCALER_PARAMS once EVERY TAG EXPORT THE LOADED INTERPOSER HAS is
|
||||
// patched, and at least one is. "Has" is the export table, not the module list: a
|
||||
// 2.7 interposer exports slSetTag alone and is whole with that one row patched; a
|
||||
@@ -2239,6 +2447,7 @@ bool InstallUpscalerHooks() noexcept {
|
||||
#undef FL_INSTALL_ROW
|
||||
PublishParamsFamilyIfWhole();
|
||||
PublishFfxFamilyIfWhole();
|
||||
PublishFfxQueryFamilyIfWhole();
|
||||
return any;
|
||||
}
|
||||
|
||||
@@ -2779,9 +2988,11 @@ void RecordPresent(IDXGISwapChain* sc, UINT syncInterval, UINT flags) noexcept {
|
||||
rec.renderH = static_cast<uint16_t>((tag >> 16) & 0xFFFFu);
|
||||
|
||||
// 0xFF, NEVER 0, and for two different reasons that land on the same
|
||||
// byte. upscalerQuality has no in-band "not measured" sentinel -- 0 is
|
||||
// NGX MaxPerf, a real preset -- so 0 here would publish "DLSS
|
||||
// Performance" as a measurement (fl_shm.h §FL_MEASURED_UPSCALER_PARAMS).
|
||||
// byte. upscalerQuality has no in-band "not measured" sentinel, and 0
|
||||
// in the numbering it carries (sl::DLSSMode) is eOff -- not a quality --
|
||||
// so 0 here would publish a mode nobody measured (fl_shm.h
|
||||
// §FL_MEASURED_UPSCALER_PARAMS). Until beta.24 this said "NGX MaxPerf":
|
||||
// NGX's own numbering, which this byte does not use.
|
||||
// 0xFF is the defined "a hook ran and could not tell", and it stays
|
||||
// the value for the many titles that set the preset out of band
|
||||
// through slDLSSSetOptions and never pass sl::DLSSOptions to us.
|
||||
@@ -2812,13 +3023,16 @@ void RecordPresent(IDXGISwapChain* sc, UINT syncInterval, UINT flags) noexcept {
|
||||
if ((ext & kTagValid) != 0u) {
|
||||
rec.renderW = static_cast<uint16_t>(ext & 0xFFFFu);
|
||||
rec.renderH = static_cast<uint16_t>((ext >> 16) & 0xFFFFu);
|
||||
// 0xFF for both, and for this vendor it is the TRUE value rather than a
|
||||
// gap: the ffx-api dispatch carries no quality mode at all -- the
|
||||
// FfxApiUpscaleQualityMode enum is an input to a QUERY the title makes
|
||||
// before creating its context, never to the per-frame dispatch -- and no
|
||||
// sharpness travels here either. A preset label derived from the measured
|
||||
// ratio is HANDOFF item 7a's owner decision, not this byte's.
|
||||
rec.upscalerQuality = 0xFFu;
|
||||
// The ffx-api dispatch carries no quality mode at all -- the
|
||||
// FfxApiUpscaleQualityMode enum is an input to a QUERY the title makes,
|
||||
// never to the per-frame dispatch. Since beta.25 (D65) the query's kept
|
||||
// answers name it: the mode whose answer is the size this present's
|
||||
// UPSCALE dispatched, as 0x10 + mode -- else 0xFF, the TRUE value for a
|
||||
// title that never asked, and the only value on a present that drained a
|
||||
// PREPARE alone. A label derived from the measured ratio is HANDOFF item
|
||||
// 7a's owner decision, not this byte's; no sharpness travels here either.
|
||||
rec.upscalerQuality =
|
||||
ffxUpscales != 0u ? static_cast<uint8_t>(g_ffxQuality.load(std::memory_order_acquire)) : 0xFFu;
|
||||
rec.upscalerSharpness = 0xFFu;
|
||||
rec.measuredMask = static_cast<uint16_t>(rec.measuredMask | FL_MEASURED_UPSCALER_PARAMS);
|
||||
}
|
||||
|
||||
@@ -375,6 +375,10 @@ enum FlHookFamily : uint32_t {
|
||||
FL_HOOK_COLOR_SPACE = 1u << 8,
|
||||
FL_HOOK_REFLEX = 1u << 9,
|
||||
FL_HOOK_VRAM = 1u << 10,
|
||||
// The FidelityFX quality QUERY (beta.25, owner decision D65): ffxQuery on the modules ffxDispatch is hooked on.
|
||||
// It measures nothing by itself; it is what lets an UPSCALE dispatch's renderSize name the mode the title asked
|
||||
// for, so "hooked, and the title never asked" can be told from "not hooked".
|
||||
FL_HOOK_UPSCALER_QUALITY = 1u << 11,
|
||||
};
|
||||
|
||||
// FlWriterState::runtimeCensus -- which vendor RUNTIME MODULES the loader reported
|
||||
@@ -552,7 +556,13 @@ enum FlMeasured : uint16_t {
|
||||
// exports only the parameter-object FACTORIES -- so a writer hooking
|
||||
// CreateFeature/EvaluateFeature knows WHICH upscaler ran and nothing about
|
||||
// quality, sharpness or render size. One bit for both published
|
||||
// upscalerQuality = 0 -- NGX MaxPerf, "DLSS Performance" -- as a measurement.
|
||||
// upscalerQuality = 0 as a measurement -- in the byte's numbering
|
||||
// (sl::DLSSMode) 0 is eOff, not a quality; "NGX MaxPerf" until beta.24 named
|
||||
// NGX's own numbering, which the byte does not use.
|
||||
//
|
||||
// THE BYTE'S NUMBERING IS THE VENDOR'S, PER UPSCALER: sl::DLSSMode (1..6) for DLSS; for FSR since beta.25,
|
||||
// 0x10 plus FfxApiUpscaleQualityMode (0x10..0x14) -- offset, because FSR's NativeAA is 0 and 0 is "nobody
|
||||
// looked" (D65: the mode whose ffxQuery answer is the size the UPSCALE dispatch was handed).
|
||||
FL_MEASURED_UPSCALER_PARAMS = 1u << 8,
|
||||
|
||||
// syncInterval + presentFlags.
|
||||
|
||||
Loaded 100 of 138 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user