Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1bb67eb0b
|
||
|
|
24a87159f4 | ||
|
|
ea3a8d3ee0 | ||
|
|
c14340e4f9 | ||
|
|
6b07eb2dc8 | ||
|
|
e35b971f27 |
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
|
||||
|
||||
+3
-16
@@ -35,28 +35,15 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### 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.
|
||||
|
||||
## Releases
|
||||
|
||||
Newest first. Each file holds that release's section exactly as it stood here.
|
||||
|
||||
| Version | Date | Notes |
|
||||
|---|---|---|
|
||||
| `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) |
|
||||
|
||||
@@ -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>
|
||||
|
||||
<!--
|
||||
|
||||
+22
-7
@@ -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.24.*
|
||||
*Beta software: this page describes version 0.1.0-beta.27.*
|
||||
|
||||
## 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
|
||||
@@ -96,7 +101,9 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
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). ([Metrics](docs/03_METRICS.md))
|
||||
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
|
||||
@@ -131,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
|
||||
|
||||
@@ -196,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.24`** (2026-10-19), an unsigned installer built from that tag with its
|
||||
> **pre-release is `0.1.0-beta.27`** (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
|
||||
@@ -174,7 +174,7 @@ Elevation is **optional — for everything.** Hooked capture is the normal path
|
||||
|
||||
## Install
|
||||
|
||||
> **The latest pre-release is `v0.1.0-beta.24` (2026-10-19); before it `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`.
|
||||
> **The latest pre-release is `v0.1.0-beta.27` (2026-10-20); before it `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**.
|
||||
|
||||
+43
-2
@@ -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
|
||||
@@ -614,6 +638,9 @@ carries the three shapes.
|
||||
> *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:
|
||||
|
||||
@@ -726,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
|
||||
@@ -855,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
|
||||
|
||||
@@ -445,7 +445,9 @@ App's DLSS override loads the driver's `nvngx_dlss.dll` from the driver store un
|
||||
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.)* The session summary prints the loaded list and names such a
|
||||
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.
|
||||
|
||||
|
||||
@@ -252,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
|
||||
@@ -336,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
|
||||
);
|
||||
@@ -688,7 +689,9 @@ 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
|
||||
|
||||
@@ -557,6 +557,16 @@ 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.
|
||||
@@ -568,6 +578,13 @@ Stat cards (Avg uses `FpsReadout`, Median, 1% Low, 0.1% Low, Min/Max, σ, stutte
|
||||
> *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
|
||||
|
||||
+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)
|
||||
|
||||
@@ -197,7 +197,7 @@ 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 |
|
||||
@@ -481,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) — 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) |
|
||||
| **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,
|
||||
|
||||
+85
-65
@@ -63,6 +63,9 @@ owner-only items stay below; the history of every train, the passed owner-only i
|
||||
| `§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) |
|
||||
| `§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) |
|
||||
@@ -70,72 +73,51 @@ owner-only items stay below; the history of every train, the passed owner-only i
|
||||
|
||||
---
|
||||
|
||||
## **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
|
||||
## **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.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.
|
||||
*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.
|
||||
|
||||
**Decisions:**
|
||||
**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.
|
||||
|
||||
- **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.
|
||||
**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.
|
||||
|
||||
**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`.
|
||||
**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:**
|
||||
|
||||
- **`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).
|
||||
- **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, added to the list below:** item 20.
|
||||
**Owner-only:** items 20 and 21 annotated (§23); item 22 added.
|
||||
|
||||
|
||||
## Owner-only — no PR can close these
|
||||
@@ -243,7 +225,45 @@ override (Expedition 33's `0x8067F`) and bit 1 with no override at all (`0x60F`)
|
||||
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`.
|
||||
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.
|
||||
**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 —
|
||||
@@ -319,12 +339,12 @@ Where each owner decision is recorded — the file and its section, and a label
|
||||
| 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 | [`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 | this file, §START HERE | the mix: every frame-generation state a session held, with its share, never averaged |
|
||||
| D63 | this file, §START HERE | the NVIDIA App's override is the quality mode where the driver reports it applied |
|
||||
| D64 | this file, §START HERE | DLSS labels are evidence-bound: versions and folder class, DLSS 4/4.5 only when shown, 5 only loaded |
|
||||
| D65 | this file, §START HERE | FSR's quality mode through ffxQuery — deferred to the next beta |
|
||||
| D66 | this file, §START HERE | the long documents are split; every original path stays as the index of its parts |
|
||||
| D67 | this file, §START HERE | SonarCloud stays on Automatic Analysis with .sonarcloud.properties; the owner marks in its UI |
|
||||
| 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,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,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.
|
||||
@@ -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.
|
||||
@@ -21,7 +21,7 @@ A value FrameLedger could not measure reads **N/A** — never 0, and never an es
|
||||
- **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.
|
||||
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,
|
||||
|
||||
@@ -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). |
|
||||
|
||||
|
||||
+1
-1
@@ -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.24`** (2026-10-19), an unsigned installer built from that tag with its
|
||||
> **pre-release is `0.1.0-beta.27`** (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
|
||||
|
||||
+1
-1
@@ -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.24`** (2026-10-19), an unsigned installer built from that tag with its
|
||||
> **pre-release is `0.1.0-beta.27`** (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
|
||||
|
||||
@@ -46,7 +46,10 @@ public static class DlssText
|
||||
/// <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.
|
||||
/// 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)
|
||||
{
|
||||
@@ -61,7 +64,8 @@ public static class DlssText
|
||||
}
|
||||
|
||||
DlssEvidence evidence = Evidence(row);
|
||||
var parts = new List<string> { DlssGeneration.Of(evidence) is { } generation ? LabelOf(generation, evidence) : "DLSS" };
|
||||
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);
|
||||
@@ -75,7 +79,7 @@ public static class DlssText
|
||||
parts.Add(Strings.Dlss_NeuralRendering_Loaded);
|
||||
}
|
||||
|
||||
return string.Join(" · ", parts);
|
||||
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>
|
||||
|
||||
@@ -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,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);
|
||||
@@ -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
+12
@@ -374,6 +374,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),
|
||||
@@ -385,6 +386,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),
|
||||
@@ -765,6 +767,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),
|
||||
@@ -776,6 +779,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),
|
||||
@@ -1857,6 +1861,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);
|
||||
@@ -1879,6 +1885,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);
|
||||
@@ -2639,6 +2647,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);
|
||||
@@ -2661,6 +2671,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);
|
||||
|
||||
@@ -4230,7 +4230,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 +4306,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">
|
||||
@@ -4577,4 +4585,12 @@
|
||||
<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>
|
||||
@@ -3183,7 +3183,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 +3240,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>
|
||||
@@ -3443,4 +3449,10 @@ The documents below are the full terms; this summary does not replace them.</val
|
||||
<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>
|
||||
@@ -3178,7 +3178,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 +3235,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>
|
||||
@@ -3438,4 +3444,10 @@ Các văn bản bên dưới là điều khoản đầy đủ; bản tóm tắt
|
||||
<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>
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -26,6 +26,13 @@ namespace FrameLedger.Application.Capture;
|
||||
/// 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,
|
||||
@@ -142,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,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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(),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -127,12 +127,18 @@ public sealed class AgentEndToEndTests : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
private Process StartHarness(string arguments)
|
||||
private async Task<Process> StartHarnessAsync(string arguments)
|
||||
{
|
||||
StageTarget();
|
||||
File.Exists(Agent).Should().BeTrue("the Agent must be built and copied beside this test");
|
||||
var p = Process.Start(new ProcessStartInfo(ConsentedExecutable, arguments) { UseShellExecute = false, CreateNoWindow = true, RedirectStandardOutput = true })!;
|
||||
Thread.Sleep(800);
|
||||
bool presenting = await HarnessReady.WaitUntilPresentingAsync(p, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
if (!presenting && !p.HasExited)
|
||||
{
|
||||
p.Kill(entireProcessTree: true);
|
||||
}
|
||||
|
||||
presenting.Should().BeTrue("the harness must reach its present loop before anything looks for it or is injected into it (HarnessReady)");
|
||||
p.HasExited.Should().BeFalse("the harness must be running before the Agent looks for it");
|
||||
return p;
|
||||
}
|
||||
@@ -181,7 +187,7 @@ public sealed class AgentEndToEndTests : IDisposable
|
||||
// THE MILESTONE'S TECHNICAL HALF, from outside the process: the shipped Agent, our harness, one row.
|
||||
(await GrantConsentAsync()).Should().Be(ConsentWriteOutcome.Written);
|
||||
|
||||
Process harness = StartHarness("--real --hold-presenting 40");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 40");
|
||||
try
|
||||
{
|
||||
using Process agent = StartAgent("capture", "--exe", ConsentedExecutable, "--seconds", "8");
|
||||
@@ -225,7 +231,7 @@ public sealed class AgentEndToEndTests : IDisposable
|
||||
(await GrantConsentAsync()).Should().Be(ConsentWriteOutcome.Written);
|
||||
await SetKillSwitchAsync(engaged: true);
|
||||
|
||||
Process harness = StartHarness("--real --hold-presenting 20");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 20");
|
||||
try
|
||||
{
|
||||
using Process agent = StartAgent("capture", "--exe", ConsentedExecutable, "--seconds", "3");
|
||||
@@ -255,7 +261,7 @@ public sealed class AgentEndToEndTests : IDisposable
|
||||
{
|
||||
(await GrantConsentAsync()).Should().Be(ConsentWriteOutcome.Written);
|
||||
Process stranger = Process.Start(new ProcessStartInfo(Harness, "--real --hold-presenting 30") { UseShellExecute = false, CreateNoWindow = true, RedirectStandardOutput = true })!;
|
||||
Process harness = StartHarness("--real --hold-presenting 30");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 30");
|
||||
try
|
||||
{
|
||||
using Process agent = StartAgent("capture", "--exe", ConsentedExecutable, "--seconds", "3");
|
||||
|
||||
@@ -129,11 +129,17 @@ public sealed class PartialRecoveryEndToEndTests : IDisposable
|
||||
File.Copy(Harness, ConsentedExecutable);
|
||||
}
|
||||
|
||||
private Process StartHarness(string arguments)
|
||||
private async Task<Process> StartHarnessAsync(string arguments)
|
||||
{
|
||||
StageTarget();
|
||||
var p = Process.Start(new ProcessStartInfo(ConsentedExecutable, arguments) { UseShellExecute = false, CreateNoWindow = true, RedirectStandardOutput = true })!;
|
||||
Thread.Sleep(800);
|
||||
bool presenting = await HarnessReady.WaitUntilPresentingAsync(p, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
if (!presenting && !p.HasExited)
|
||||
{
|
||||
p.Kill(entireProcessTree: true);
|
||||
}
|
||||
|
||||
presenting.Should().BeTrue("the harness must reach its present loop before anything looks for it or is injected into it (HarnessReady)");
|
||||
p.HasExited.Should().BeFalse("the harness must be running before the Agent looks for it");
|
||||
return p;
|
||||
}
|
||||
@@ -220,7 +226,7 @@ public sealed class PartialRecoveryEndToEndTests : IDisposable
|
||||
await GrantConsentAsync().ConfigureAwait(true);
|
||||
|
||||
// Long enough to outlive the 30 s threshold, the flush after it and the kill.
|
||||
Process harness = StartHarness("--real --hold-presenting 90");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 90").ConfigureAwait(true);
|
||||
try
|
||||
{
|
||||
// Disposed by the using even after Kill disposes it: Process.Dispose is idempotent, and the
|
||||
|
||||
@@ -107,7 +107,7 @@ public sealed class DlssTextTests
|
||||
DlssText.Line(Row("{\"nvngx_dlss.dll\":\"310.9.1.0\",\"nvngx_dlssnr.dll\":\"1.0.0.0\"}", upscaler: "dlss"))
|
||||
.Should().Be("DLSS · Super Resolution 310.9.1 · DLSS 5 runtime loaded");
|
||||
DlssText.Line(Row("{\"sl.interposer.dll\":\"2,8,0,0\"}", upscaler: "fsr3")).Should().BeNull("no DLSS at all");
|
||||
DlssText.Line(Row("{broken", upscaler: "dlss")).Should().Be("DLSS", "an unreadable module list still says DLSS ran");
|
||||
DlssText.Line(Row("{broken", upscaler: "dlss")).Should().BeNull("a line that would say only DLSS says nothing the header does not (beta.27)");
|
||||
DlssText.ExportLine(Row()).Should().Be("N/A");
|
||||
DlssText.Parse("310,9,1,0").Should().Be(new Version(310, 9, 1, 0));
|
||||
DlssText.Parse("3.7").Should().Be(new Version(3, 7));
|
||||
@@ -117,6 +117,27 @@ public sealed class DlssTextTests
|
||||
return 0;
|
||||
});
|
||||
|
||||
/// <summary>
|
||||
/// beta.27: Witcher 3 under the NVIDIA App's override (2026-10-20) loaded the driver's libraries under names no census
|
||||
/// lists, so its DLSS line said only "DLSS" beneath a header that already did; the loaded-libraries line prints them.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ALineThatWouldSayOnlyDlssIsNotShown() => InEnglish(() =>
|
||||
{
|
||||
SessionRow witcher = Row(
|
||||
"{\"160_E658700.bin\":\"310,9,16,0\",\"1B0_E658700.dll\":\"2,14,16,0\",\"_nvngx.dll\":\"32.0.16.1742\",\"sl.interposer.dll\":\"2,14,1,0\"}",
|
||||
"{\"160_E658700.bin\":\"graphics_driver\",\"1B0_E658700.dll\":\"graphics_driver\",\"_nvngx.dll\":\"graphics_driver\",\"sl.interposer.dll\":\"game\"}",
|
||||
upscaler: "dlss",
|
||||
words: "{\"Outcome\":\"Answered\",\"Sr\":\"0x1F\",\"Rr\":\"0x3F\",\"Fg\":\"0xA03F\",\"Driver\":61742,\"Ratio\":0,\"Mode\":0,\"Preset\":6,\"FgCount\":5,\"FgPreset\":2,\"FgMode\":1,\"Readings\":17,\"Answered\":16,\"Changed\":true,\"Detail\":null}",
|
||||
fgMode: "dlssg",
|
||||
factor: 2.0);
|
||||
|
||||
DlssText.Line(witcher).Should().BeNull();
|
||||
DlssText.Line(Row("{\"160_E658700.bin\":\"310,9,16,0\"}", upscaler: "dlss", fgMode: "dlssg", factor: 3.0))
|
||||
.Should().Be("DLSS 4 (a ×3.0 frame-generation state)", "a label is something to say");
|
||||
return 0;
|
||||
});
|
||||
|
||||
[Fact]
|
||||
public void TheLargestStateOfTheMixIsTheEvidence() => InEnglish(() =>
|
||||
{
|
||||
@@ -130,4 +151,22 @@ public sealed class DlssTextTests
|
||||
DlssText.Label(Row(upscaler: "dlss", fgMode: "fsrfg", factor: 4.0)).Should().BeNull("only DLSS Frame Generation names a DLSS generation");
|
||||
return 0;
|
||||
});
|
||||
|
||||
/// <summary>
|
||||
/// beta.26: the owner's Silent Hill 2 session (2026-10-19) stored a ×1336.0 "state" — ten seconds at one token
|
||||
/// per window — and the line read "DLSS 4.5 (a ×1336.0 frame-generation state)". Read by today's rule, the evidence is
|
||||
/// the ×6.1 state the session really held.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AStoredStateNoFrameGenerationProducesIsNotTheEvidence() => InEnglish(() =>
|
||||
{
|
||||
const string mix = "{\"Rows\":[" +
|
||||
"{\"Kind\":\"generated\",\"Factor\":2.999266324284666,\"NativeFps\":95.75,\"DisplayedFps\":287.18,\"Seconds\":42.7,\"Share\":0.5,\"Windows\":9}," +
|
||||
"{\"Kind\":\"generated\",\"Factor\":6.057471264367816,\"NativeFps\":23.2,\"DisplayedFps\":140.53,\"Seconds\":15,\"Share\":0.3,\"Windows\":3}," +
|
||||
"{\"Kind\":\"generated\",\"Factor\":1336,\"NativeFps\":0.2,\"DisplayedFps\":267.2,\"Seconds\":10,\"Share\":0.2,\"Windows\":2}]}";
|
||||
SessionRow silentHill2 = Row("{\"sl.interposer.dll\":\"2,4,0,0\"}", upscaler: "unknown", fgMode: "dlssg", factor: 2.999266324284666, mix: mix);
|
||||
|
||||
DlssText.Label(silentHill2).Should().Be("DLSS 4.5 (a ×6.1 frame-generation state)");
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
@@ -211,6 +211,15 @@ public sealed class FpsPresentationTests
|
||||
InEnglish(() => FpsPresentation.IdentifiedTooltip("DLSS-G", "non_uniform", "not json")).Should().Be(InEnglish(() => FpsPresentation.IdentifiedTooltip("DLSS-G", "non_uniform")), "an unparsable detail is the old tooltip, never an exception");
|
||||
}
|
||||
|
||||
/// <summary>beta.26: a ratio above what any frame generation produces has its own words, and its numbers in the tooltip.</summary>
|
||||
[Fact]
|
||||
public void ARatioBeyondAnyFrameGenerationIsSaidSo()
|
||||
{
|
||||
InEnglish(() => FpsPresentation.RefusalText("beyond_generation")).Should().Be("the ratio is beyond what any frame generation produces");
|
||||
InEnglish(() => FpsPresentation.IdentifiedTooltip("DLSS-G", "beyond_generation", "{\"Kind\":\"beyond_generation\",\"Subject\":\"factor\",\"Count\":0,\"BucketIndex\":0,\"BucketCount\":0,\"BucketValue\":null,\"Overall\":1336}"))
|
||||
.Should().Contain("presents ÷ tokens = 1336.00, above 8.00, the most any frame generation produces.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 2026-09-17: a steady-state factor (<c>fg_factor_scope = steady</c>) is the generated shape — Native, Displayed and
|
||||
/// the factor together, as rule 6 asks — and its chip ALWAYS says how much of the session it describes; the tooltip
|
||||
|
||||
@@ -164,8 +164,8 @@ public sealed class GamePlayerTests
|
||||
|
||||
var shell = new Shell();
|
||||
var agent = new Agent();
|
||||
(await Player(s, shell, agent, steam).PlayAsync(game, Ct)).Should().Be(new PlayResult(PlayOutcome.StartedByAgent));
|
||||
shell.Opened.Should().BeEmpty("direct never asks the store, even for a store's game");
|
||||
(await Player(s, shell, agent, steam).PlayAsync(game, Ct)).Should().Be(new PlayResult(PlayOutcome.StartedByAgent, SteamGame: true));
|
||||
shell.Opened.Should().BeEmpty("direct never asks the store's app to start it, even for a store's game");
|
||||
|
||||
(await Player(s, new Shell(), new Agent(connected: false), steam).PlayAsync(game, Ct)).Outcome.Should().Be(PlayOutcome.AgentUnavailable);
|
||||
(await Player(s, new Shell(), new Agent(outcome: "RecordingOff"), steam).PlayAsync(game, Ct)).Outcome.Should().Be(PlayOutcome.RecordingOff);
|
||||
@@ -213,7 +213,7 @@ public sealed class GamePlayerTests
|
||||
// A Steam record whose id is not a Steam id builds no link — and is not "GOG GALAXY is not installed".
|
||||
var odd = new Stores(new StoreGame("steam", "not-an-app-id", "W", _steam, null, null));
|
||||
PlayResult noLink = await Player(s, new Shell(), new Agent(), odd).PlayAsync(Game(_steam + @"\game.exe", null), Ct);
|
||||
noLink.Should().Be(new PlayResult(PlayOutcome.StartedByAgent, Fallback: PlayFallback.NoLink));
|
||||
noLink.Should().Be(new PlayResult(PlayOutcome.StartedByAgent, Fallback: PlayFallback.NoLink, SteamGame: true));
|
||||
GamePlayer.Describe(noLink, "W").Text.Should().NotContain("GOG").And.NotContain("store");
|
||||
|
||||
// The store mode fell back and recording is off: switching Play to the store is no advice.
|
||||
@@ -230,6 +230,37 @@ public sealed class GamePlayerTests
|
||||
GamePlayer.Describe(new PlayResult(PlayOutcome.AgentUnavailable, Fallback: PlayFallback.NoStore), "W").Text.Should().NotContain("its store");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.27: a game Steam installed may hand itself to Steam when the agent starts it (Lies of P, 2026-10-19: its process
|
||||
/// left within seconds and Steam started the game again), and the notice says so — started directly, or by an App
|
||||
/// running as administrator. Any other game's notice is unchanged.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task ASteamGameTheAgentStartsSaysItMayHandItselfToSteam()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
var steam = new Stores(new StoreGame("steam", "1627720", "Lies of P", _steam, null, null));
|
||||
GameRow game = Game(_steam + @"\game.exe", "1627720");
|
||||
|
||||
PlayResult elevated = await Player(s, new Shell(), new Agent(), steam, elevated: true).PlayAsync(game, Ct);
|
||||
elevated.Should().Be(new PlayResult(PlayOutcome.StartedByAgent, Fallback: PlayFallback.Elevated, SteamGame: true));
|
||||
GamePlayer.Describe(elevated, "Lies of P").Text.Should().Contain("administrator").And.Contain("hand itself to Steam");
|
||||
|
||||
await new RegisteredSettings(new SqliteSettingsStore(s.Db)).SetAsync(SettingsRegistry.UiPlayMode, PlayMode.Direct, Ct);
|
||||
PlayResult direct = await Player(s, new Shell(), new Agent(), steam).PlayAsync(game, Ct);
|
||||
direct.SteamGame.Should().BeTrue();
|
||||
GamePlayer.Describe(direct, "Lies of P").Should().Be(
|
||||
("FrameLedger is starting Lies of P. A Steam game may hand itself to Steam first; the game Steam then starts is recorded.", false));
|
||||
|
||||
PlayResult loose = await Player(s, new Shell(), new Agent(), steam).PlayAsync(Game(@"D:\Games\Loose\game.exe", null), Ct);
|
||||
loose.SteamGame.Should().BeFalse("no store's records name its folder");
|
||||
GamePlayer.Describe(loose, "W").Text.Should().Be("FrameLedger is starting W.");
|
||||
|
||||
var gog = new Stores(new StoreGame("gog", "1125815775", "A Space for the Unbound", @"D:\another\gog\A Space", null, null));
|
||||
(await Player(s, new Shell(), new Agent(), gog).PlayAsync(Game(@"D:\another\gog\A Space\game.exe", "1125815775"), Ct))
|
||||
.SteamGame.Should().BeFalse("only Steam's games hand themselves to their store");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AStoreAppWindowsWillNotOpenIsAFailureNamedAsSuch()
|
||||
{
|
||||
|
||||
@@ -667,4 +667,50 @@ public sealed partial class PagesLoadTests
|
||||
drawn.Should().BeGreaterThan(0).And.BeLessThanOrEqualTo(Decimator.DefaultBuckets * 2 + 2100, "FR-5.3: decimated per draw (the series, the markers, the sensors)");
|
||||
series.Stutter!.Count(static f => f).Should().Be(7);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.27: the owner opened one session twice from the dashboard and had two summary windows of it side by side
|
||||
/// (2026-10-20). A session has one summary window — opening it again brings that one forward —, another session gets
|
||||
/// its own, and a closed window lets the next open build a new one.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task OpeningAnOpenSessionAgainBringsItsOneWindowForward()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Silent Hill 2");
|
||||
long first = await s.SessionWithFramesAsync(game.Id, DateTimeOffset.UtcNow.AddMinutes(-10), frames: 120, spikeEvery: 60);
|
||||
long second = await s.SessionWithFramesAsync(game.Id, DateTimeOffset.UtcNow, frames: 120, spikeEvery: 60);
|
||||
await using ServiceProvider services = new ServiceCollection()
|
||||
.AddSingleton<ISessionRepository>(s.Sessions)
|
||||
.AddSingleton<IGameRepository>(s.Games)
|
||||
.AddSingleton<ISessionAnnotationRepository>(s.Annotations)
|
||||
.AddSingleton<IHardwareSnapshotRepository>(new SqliteHardwareSnapshotRepository(s.Db))
|
||||
.AddSingleton(new SessionSeriesLoader(s.Sessions))
|
||||
.AddSingleton<IFileSaver>(new NoSaver())
|
||||
.AddSingleton<IMessageStrip>(new NoStrip())
|
||||
.AddSingleton<IThemeApplier>(new NoTheme())
|
||||
.AddSingleton(new AppearanceSettings(new MemorySettings()))
|
||||
.BuildServiceProvider();
|
||||
|
||||
(IReadOnlyList<long> Twice, int Windows, IReadOnlyList<long> AfterClose) seen = await OnStaAsync(() =>
|
||||
{
|
||||
var shell = new ShellHost(new ServiceCollection().BuildServiceProvider(), null!, null!, new WindowClosePolicy());
|
||||
var opener = new SessionSummaryOpener(services, shell, new SessionSelection());
|
||||
opener.Open(first);
|
||||
opener.Open(first);
|
||||
opener.Open(second);
|
||||
opener.Open(first);
|
||||
IReadOnlyList<long> twice = opener.OpenSessions;
|
||||
List<Windows.SessionSummaryWindow> shown = [.. System.Windows.Application.Current.Windows.OfType<Windows.SessionSummaryWindow>()];
|
||||
shown.ForEach(static w => w.Close());
|
||||
opener.Open(first);
|
||||
IReadOnlyList<long> afterClose = opener.OpenSessions;
|
||||
System.Windows.Application.Current.Windows.OfType<Windows.SessionSummaryWindow>().ToList().ForEach(static w => w.Close());
|
||||
return (twice, shown.Count, afterClose);
|
||||
});
|
||||
|
||||
seen.Twice.Should().Equal([first, second], "a session's second open brings its window forward instead of a copy");
|
||||
seen.Windows.Should().Be(2);
|
||||
seen.AfterClose.Should().Equal([first], "a closed window is forgotten, and the next open builds a new one");
|
||||
}
|
||||
}
|
||||
@@ -672,6 +672,49 @@ public sealed class CaptureSessionTests : IAsyncDisposable
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.27: the driver still answers for a pid whose game has gone, with the bits that say a feature ran cleared. Read
|
||||
/// before the last drain, that answer replaced every reading taken while the game ran, and no session the owner stored
|
||||
/// from 2026-10-04 to 2026-10-20 kept CREATED | EVALUATE. The driver is not asked after the game left, and a reading
|
||||
/// that clears the two bits — a game releasing its features on its way out — does not unsay them.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task TheDriverIsNotAskedAfterTheGameLeftAndAFeatureThatRanStaysRun()
|
||||
{
|
||||
var guard = new CountingGuard();
|
||||
using var sink = new FakeSink();
|
||||
using var liveness = new FakeLiveness { ExitAfterChecks = 30 };
|
||||
int probes = 0;
|
||||
var loop = new CaptureSession(
|
||||
await StoreWithAsync(), new HookedCaptureGate(guard), guard, new FixedResolver(_pid, SessionEndReason.Running),
|
||||
new DelegateLivenessSource(_ => liveness),
|
||||
new DelegateRingAttacher(_ => (sink, ShmAttachRefusal.Ok)),
|
||||
new CaptureOptions
|
||||
{
|
||||
DrainInterval = TimeSpan.FromMilliseconds(1),
|
||||
ScanInterval = TimeSpan.FromMilliseconds(1),
|
||||
AttachBudget = TimeSpan.FromMilliseconds(50),
|
||||
MaxDuration = TimeSpan.FromSeconds(30),
|
||||
HoldInterval = TimeSpan.FromMilliseconds(1),
|
||||
LogFlushGrace = TimeSpan.FromMilliseconds(1),
|
||||
},
|
||||
modules: null,
|
||||
ngx: new DelegateNgxProbe(_ =>
|
||||
{
|
||||
// Created and evaluated at the second reading only: before it, not yet; after it, released on the way out.
|
||||
ulong sr = ++probes == 2 ? NgxOverrideFlags.Initialized | NgxOverrideFlags.DllExists | NgxOverrideFlags.CreatedAndEvaluated
|
||||
: NgxOverrideFlags.Initialized | NgxOverrideFlags.DllExists;
|
||||
return NgxDriverState.Parse($"NGXSTATE status=ANSWERED sr=0x{sr:X16} rr=0x1 fg=0x5 ratio=0.0000 mode=0 preset=0 fgcount=0 fgpreset=0 fgmode=0 driver=61742");
|
||||
}));
|
||||
|
||||
CaptureOutcome r = await loop.RunAsync(_exe, Fingerprint, "payload.dll", TestContext.Current.CancellationToken);
|
||||
|
||||
r.Reason.Should().Be(SessionEndReason.TargetExited);
|
||||
probes.Should().BeGreaterThan(2, "readings after the one that saw the feature ran, as on the owner's sessions");
|
||||
probes.Should().Be(sink.Published.Count, "one per scan, and none once the game had left");
|
||||
r.NgxDriver.SrCreatedAndEvaluated.Should().BeTrue("a feature that ran in the session stays run");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task NoRecordRefusesConsentAndNothingIsEverInjected()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using FluentAssertions;
|
||||
using FrameLedger.Application.Recording;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
|
||||
namespace FrameLedger.Application.Tests.Recording;
|
||||
|
||||
/// <summary><c>sessions.fg_mix</c> back from its text, read by today's rule (beta.26).</summary>
|
||||
public sealed class FgMixRecordTests
|
||||
{
|
||||
/// <summary>The owner's Silent Hill 2 session (2026-10-19, 0.1.0-beta.25, the NVIDIA App's Dynamic multi frame generation), as stored.</summary>
|
||||
private const string _silentHill2 =
|
||||
"{\"Rows\":[" +
|
||||
"{\"Kind\":\"generated\",\"Factor\":2.0194174757281553,\"NativeFps\":111.82857142857142,\"DisplayedFps\":225.82857142857142,\"Seconds\":35,\"Share\":0.17703207945353897,\"Windows\":7}," +
|
||||
"{\"Kind\":\"generated\",\"Factor\":2.999266324284666,\"NativeFps\":95.75152407846059,\"DisplayedFps\":287.18432166745924,\"Seconds\":42.7042811,\"Share\":0.21600079099147035,\"Windows\":9}," +
|
||||
"{\"Kind\":\"generated\",\"Factor\":6.057471264367816,\"NativeFps\":23.2,\"DisplayedFps\":140.53333333333333,\"Seconds\":15,\"Share\":0.07587089119437383,\"Windows\":3}," +
|
||||
"{\"Kind\":\"generated\",\"Factor\":1336,\"NativeFps\":0.2,\"DisplayedFps\":267.2,\"Seconds\":10,\"Share\":0.05058059412958256,\"Windows\":2}," +
|
||||
"{\"Kind\":\"none\",\"Factor\":null,\"NativeFps\":80.08,\"DisplayedFps\":80.08,\"Seconds\":75,\"Share\":0.3793544559718692,\"Windows\":15}," +
|
||||
"{\"Kind\":\"unclassified\",\"Factor\":null,\"NativeFps\":null,\"DisplayedFps\":null,\"Seconds\":20,\"Share\":0.10116118825916512,\"Windows\":4}]}";
|
||||
|
||||
[Fact]
|
||||
public void AStoredStateNoWindowOfThisBuildWouldFormIsTimeNoStateClaims()
|
||||
{
|
||||
FgMixRecord mix = FgMixRecord.Parse(_silentHill2)!;
|
||||
|
||||
mix.Rows.Select(static r => r.Kind).Should().Equal("generated", "generated", "generated", "none", "unclassified");
|
||||
mix.Rows.Where(static r => string.Equals(r.Kind, "generated", StringComparison.Ordinal)).Select(static r => Math.Round(r.Factor!.Value, 1)).Should().Equal(2.0, 3.0, 6.1);
|
||||
FgMixRecordRow unclassified = mix.Rows[^1];
|
||||
unclassified.Seconds.Should().Be(30, "its own twenty seconds and the ten the ×1336.0 row held");
|
||||
unclassified.Windows.Should().Be(6);
|
||||
unclassified.Factor.Should().BeNull();
|
||||
unclassified.NativeFps.Should().BeNull("time no state claims has no rate to show");
|
||||
mix.Rows.Sum(static r => r.Share).Should().BeApproximately(1.0, 1e-9, "the shares still add up to the whole");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AStoredMixOfReadableStatesIsReadAsStored()
|
||||
{
|
||||
string json = FgMixRecord.ToJson(new FgMix(
|
||||
[
|
||||
new FgMixRow(FgMixKind.Generated, 2.0, 60, 120, 60, 0.6, 12),
|
||||
new FgMixRow(FgMixKind.Generated, 8.0, 30, 240, 20, 0.2, 4),
|
||||
new FgMixRow(FgMixKind.None, null, 120, 120, 20, 0.2, 4),
|
||||
]))!;
|
||||
|
||||
FgMixRecord mix = FgMixRecord.Parse(json)!;
|
||||
|
||||
mix.Rows.Select(static r => r.Kind).Should().Equal("generated", "generated", "none");
|
||||
mix.Rows[1].Factor.Should().Be(8.0, "at the ceiling a ratio is still frame generation's");
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(2.524, 30.0)]
|
||||
[InlineData(8.01, 30.0)]
|
||||
[InlineData(4.0, 1.5)]
|
||||
[InlineData(null, 30.0)]
|
||||
public void AGeneratedRowNoWindowWouldFormIsFoldedEvenWithNoUnclassifiedRow(double? factor, double nativeFps)
|
||||
{
|
||||
string json = "{\"Rows\":[" +
|
||||
"{\"Kind\":\"generated\",\"Factor\":2.0,\"NativeFps\":60,\"DisplayedFps\":120,\"Seconds\":40,\"Share\":0.8,\"Windows\":8}," +
|
||||
$"{{\"Kind\":\"generated\",\"Factor\":{(factor is double f ? f.ToString(System.Globalization.CultureInfo.InvariantCulture) : "null")},\"NativeFps\":{nativeFps.ToString(System.Globalization.CultureInfo.InvariantCulture)},\"DisplayedFps\":240,\"Seconds\":10,\"Share\":0.2,\"Windows\":2}}]}}";
|
||||
|
||||
FgMixRecord mix = FgMixRecord.Parse(json)!;
|
||||
|
||||
mix.Rows.Select(static r => r.Kind).Should().Equal("generated", "unclassified");
|
||||
mix.Rows[1].Seconds.Should().Be(10);
|
||||
mix.Rows[1].Share.Should().Be(0.2);
|
||||
mix.Rows[1].Windows.Should().Be(2);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)]
|
||||
[InlineData("")]
|
||||
[InlineData("not json")]
|
||||
public void NoTextOrNoJsonIsNoMix(string? json) => FgMixRecord.Parse(json).Should().BeNull();
|
||||
}
|
||||
@@ -525,6 +525,64 @@ public sealed class CaptureOrchestratorTests
|
||||
recorder.Requests.Should().ContainSingle();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.27: Lies of P, started directly (2026-10-19), handed itself to Steam within seconds, and Steam started the game
|
||||
/// again while the launch's session was ending. The watcher turned that process away ("one at a time") and, a launch
|
||||
/// never saying it had ended on its own, it went unrecorded — twice. It is recorded when the launch ends, as after a
|
||||
/// watched session.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task AGameSteamStartsAgainAfterADirectStartIsRecordedWhenTheLaunchEnds()
|
||||
{
|
||||
var launchRecorder = new FakeRecorder();
|
||||
using var launches = new FakeLaunches(launchRecorder);
|
||||
(CaptureOrchestrator o, FakeRecorder attach, FakeSnapshots processes, List<string> log, _, long id) = await BuildWithLibraryAsync(launches).ConfigureAwait(true);
|
||||
CancellationToken ct = TestContext.Current.CancellationToken;
|
||||
(await o.LaunchAsync(id, "", ct).ConfigureAwait(true)).Outcome.Should().Be(LaunchOutcome.Accepted);
|
||||
await WaitForRequestsAsync(launchRecorder, 1).ConfigureAwait(true);
|
||||
|
||||
// The process the launch started, then the one Steam starts once that one has left.
|
||||
processes.Processes.Add(new ProcessSnapshot(100, 1, "game.exe", _game, DateTimeOffset.UnixEpoch));
|
||||
await o.PollOnceAsync(ct).ConfigureAwait(true);
|
||||
processes.Processes.Clear();
|
||||
processes.Processes.Add(new ProcessSnapshot(200, 7, "game.exe", _game, DateTimeOffset.UnixEpoch.AddSeconds(6)));
|
||||
await o.PollOnceAsync(ct).ConfigureAwait(true);
|
||||
attach.Requests.Should().BeEmpty("one session per executable at a time");
|
||||
|
||||
launchRecorder.Pending[0].SetResult(GameExited(targetPid: 100));
|
||||
await WaitUntilAsync(() => o.RunningSessions == 0).ConfigureAwait(true);
|
||||
await o.PollOnceAsync(ct).ConfigureAwait(true);
|
||||
await WaitForRequestsAsync(attach, 1).ConfigureAwait(true);
|
||||
|
||||
attach.Requests.Should().ContainSingle("the game Steam started is recorded once the launch has ended").Which.Mode.Should().Be(CaptureMode.Attach);
|
||||
log.Should().Contain(l => l.Contains("pid 200", StringComparison.Ordinal) && l.Contains("recording it now", StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.27: the process a launch started appears to the watcher after the launch began and is turned away like any other;
|
||||
/// a launch the user stopped does not start again on the game it stopped recording.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task ALaunchTheUserStoppedDoesNotStartAgainOnItsOwnProcess()
|
||||
{
|
||||
var launchRecorder = new FakeRecorder();
|
||||
using var launches = new FakeLaunches(launchRecorder);
|
||||
(CaptureOrchestrator o, FakeRecorder attach, FakeSnapshots processes, _, _, long id) = await BuildWithLibraryAsync(launches).ConfigureAwait(true);
|
||||
CancellationToken ct = TestContext.Current.CancellationToken;
|
||||
LaunchResult launched = await o.LaunchAsync(id, "", ct).ConfigureAwait(true);
|
||||
await WaitForRequestsAsync(launchRecorder, 1).ConfigureAwait(true);
|
||||
processes.Processes.Add(new ProcessSnapshot(100, 1, "game.exe", _game, DateTimeOffset.UnixEpoch));
|
||||
await o.PollOnceAsync(ct).ConfigureAwait(true);
|
||||
|
||||
o.StopSession(launched.SessionGuid!.Value).Should().BeTrue();
|
||||
launchRecorder.Pending[0].SetResult(GameExited(targetPid: 100) with { Outcome = new CaptureOutcome { Reason = SessionEndReason.StoppedByUser, TargetPid = 100 } });
|
||||
await WaitUntilAsync(() => o.RunningSessions == 0).ConfigureAwait(true);
|
||||
await o.PollOnceAsync(ct).ConfigureAwait(true);
|
||||
await o.PollOnceAsync(ct).ConfigureAwait(true);
|
||||
|
||||
attach.Requests.Should().BeEmpty("the game still running is the one the stopped launch recorded");
|
||||
}
|
||||
|
||||
private static RecordedSession LauncherExited(int launcherPid) => new()
|
||||
{
|
||||
SessionGuid = Guid.NewGuid(),
|
||||
|
||||
@@ -170,7 +170,7 @@ public sealed class CaptureHostEndToEndTests : IDisposable
|
||||
File.Copy(Harness, ConsentedExecutable);
|
||||
}
|
||||
|
||||
private Process StartHarness(string arguments)
|
||||
private async Task<Process> StartHarnessAsync(string arguments)
|
||||
{
|
||||
StageTarget();
|
||||
File.Exists(Host).Should().BeTrue("the host must be built and copied beside this test");
|
||||
@@ -182,7 +182,13 @@ public sealed class CaptureHostEndToEndTests : IDisposable
|
||||
RedirectStandardOutput = true,
|
||||
})!;
|
||||
|
||||
Thread.Sleep(800);
|
||||
bool presenting = await HarnessReady.WaitUntilPresentingAsync(p, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
if (!presenting && !p.HasExited)
|
||||
{
|
||||
p.Kill(entireProcessTree: true);
|
||||
}
|
||||
|
||||
presenting.Should().BeTrue("the harness must reach its present loop before anything looks for it or is injected into it (HarnessReady)");
|
||||
p.HasExited.Should().BeFalse("the harness must be running before the host looks for it");
|
||||
return p;
|
||||
}
|
||||
@@ -255,7 +261,7 @@ public sealed class CaptureHostEndToEndTests : IDisposable
|
||||
"this case is about an ABSENT record; a leftover one from a sibling test would make the "
|
||||
+ "host refuse for a different reason and the assertions below would say nothing");
|
||||
|
||||
Process harness = StartHarness("--real --hold-presenting 20");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 20");
|
||||
try
|
||||
{
|
||||
using Process host = StartHost("capture", "--exe", ConsentedExecutable);
|
||||
@@ -290,7 +296,7 @@ public sealed class CaptureHostEndToEndTests : IDisposable
|
||||
// self-constraint above pins WHICH executable it may stand in for.
|
||||
(await GrantConsentAsync()).Should().Be(ConsentWriteOutcome.Written);
|
||||
|
||||
Process harness = StartHarness("--real --hold-presenting 40");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 40");
|
||||
Process? host = null;
|
||||
try
|
||||
{
|
||||
@@ -404,7 +410,7 @@ public sealed class CaptureHostEndToEndTests : IDisposable
|
||||
Directory.CreateDirectory(PartialDirectory);
|
||||
HashSet<string> before = [.. Directory.EnumerateFiles(PartialDirectory, "*.partial")];
|
||||
|
||||
Process harness = StartHarness("--real --hold-presenting 40");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 40");
|
||||
Process? host = null;
|
||||
string? file = null;
|
||||
try
|
||||
@@ -528,7 +534,7 @@ public sealed class CaptureHostEndToEndTests : IDisposable
|
||||
// longer than the hold found the harness gone and ended TargetNotRunning — #286's first CI run, as on 2026-09-21
|
||||
// and before. The host prints nothing until its session ends, so there is no "attached" to wait for; the hold is
|
||||
// the margin, and the case's run time with it.
|
||||
Process harness = StartHarness("--real --hold-presenting 15");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 15");
|
||||
Process? host = null;
|
||||
try
|
||||
{
|
||||
|
||||
@@ -60,5 +60,7 @@ public sealed class FgRefusalTextTests
|
||||
.Should().Contain("the presents-per-batch ratio changed during the session — bucket 1 of 8 measures no evaluations against 2 overall");
|
||||
FgRefusalText.Describe(new FgRefusal(FgRefusalKind.AmbiguousBand, FgRefusalSubject.Factor, Overall: 1.25))
|
||||
.Should().Be("presents/tokens = 1.25 sits between the `none` ceiling (1.05) and the cadence threshold (1.5) — not a configuration this consumer can name");
|
||||
FgRefusalText.Describe(new FgRefusal(FgRefusalKind.BeyondGeneration, FgRefusalSubject.Factor, Overall: 1336))
|
||||
.Should().Be("presents/tokens = 1336.00 is above 8.0, more presents per application frame than any frame generation produces — the count does not describe these presents");
|
||||
}
|
||||
}
|
||||
@@ -87,4 +87,27 @@ public sealed class NgxDriverStateTests
|
||||
same.Changed.Should().BeFalse();
|
||||
same.Describe().Should().Contain("answered 2 of 2 probe(s); driver 616.64");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.27: 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 CREATED | EVALUATE, read after the game had released its features. The two bits stand once read;
|
||||
/// every other bit is still the last reading's.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AFeatureThatRanStaysRunWhenALaterReadingClearsIt()
|
||||
{
|
||||
NgxDriverState released = NgxDriverState.Parse(
|
||||
"NGXSTATE status=ANSWERED sr=0x000000000008007F rr=0x0000000000080005 fg=0x000000000000001F ratio=0.0000 mode=1 preset=12 fgcount=0 fgpreset=0 fgmode=0 driver=61742");
|
||||
|
||||
NgxDriverState merged = NgxDriverState.NotRun.Merge(NgxDriverState.Parse(_expedition33Override)).Merge(released);
|
||||
|
||||
merged.Sr.Should().Be(0x8067FUL);
|
||||
merged.SrCreatedAndEvaluated.Should().BeTrue("the feature ran in this session");
|
||||
merged.PerformanceMode.Should().Be(1u, "every other field is the last reading's");
|
||||
merged.RenderPreset.Should().Be(12u);
|
||||
merged.Changed.Should().BeTrue();
|
||||
|
||||
NgxDriverState never = NgxDriverState.NotRun.Merge(released).Merge(released);
|
||||
never.SrCreatedAndEvaluated.Should().BeFalse("no reading said the feature ran");
|
||||
}
|
||||
}
|
||||
@@ -107,6 +107,40 @@ public sealed class DisplayModeTests
|
||||
s.ExclusivityKnown.Should().BeTrue();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.27: a game leaving exclusive fullscreen destroys its window while its swap chain's last word is still fresh,
|
||||
/// so its last samples are exclusive with no window; five Lies of P and Dark Souls III sessions stored no sizes.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TheSizesAreTheLastOnesTheModeSaw()
|
||||
{
|
||||
var tally = new DisplayTally();
|
||||
tally.Add(DisplayModeClassifier.Classify(Chain(exclusive: true), Window(_monitor)), 60_000);
|
||||
tally.Add(DisplayModeClassifier.Classify(Chain(exclusive: true), null), 100); // the window is gone
|
||||
tally.Add(DisplayModeClassifier.Classify(Chain(exclusive: true, fresh: false), null), 1_500);
|
||||
|
||||
DisplaySummary s = tally.Summary();
|
||||
s.Dominant.Should().Be(DisplayMode.ExclusiveFullscreen);
|
||||
s.WindowWidth.Should().Be(2560, "the exclusive samples saw the window before it was destroyed");
|
||||
s.WindowHeight.Should().Be(1440);
|
||||
s.MonitorWidth.Should().Be(2560);
|
||||
s.MonitorHz.Should().Be(144);
|
||||
s.BufferWidth.Should().Be(2560u);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AModeThatNeverSawItsWindowStoresTheChainsSizesAlone()
|
||||
{
|
||||
var tally = new DisplayTally();
|
||||
tally.Add(DisplayModeClassifier.Classify(Chain(exclusive: true), null), 5_000);
|
||||
|
||||
DisplaySummary s = tally.Summary();
|
||||
s.Dominant.Should().Be(DisplayMode.ExclusiveFullscreen);
|
||||
s.WindowWidth.Should().BeNull("no sample of the mode saw a window");
|
||||
s.MonitorHz.Should().BeNull();
|
||||
s.BufferWidth.Should().Be(2560u, "the swap chain said its own size");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ASessionWhoseExclusivityWasUnknownForAMomentSaysSo()
|
||||
{
|
||||
|
||||
@@ -135,6 +135,73 @@ public sealed class FgMixTests
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.26: Silent Hill 2 (2026-10-19) presented 1,336 times per token for ten seconds — its first seconds, compiling
|
||||
/// shaders outside the vendor's frame count — and the mix listed it as a ×1336.0 state, which the DLSS line then
|
||||
/// cited. A window needs application frames, not only presents, and a ratio frame generation can
|
||||
/// produce.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AWindowWithOneTokenOrARatioNoFrameGenerationProducesIsNotAState()
|
||||
{
|
||||
// One token per 1,200 presents: one per five-second window, for ten seconds.
|
||||
List<FrameSample> loading = FgStream(appFrames: 2, k: 1200);
|
||||
// Twelve tokens per window at ×100: frames enough to read, a ratio no frame generation produces.
|
||||
List<FrameSample> beyond = FgStream(appFrames: 15 * _presentsPerSecond / 100, k: 100);
|
||||
|
||||
FgMix mix = FgMix.From(Concat(Play(30, 3), loading, beyond, Play(20, 6)), Frequency, noneAllowed: true)!;
|
||||
|
||||
mix.Rows.Select(static r => r.Kind).Should().Equal(FgMixKind.Generated, FgMixKind.Generated, FgMixKind.Unclassified);
|
||||
mix.Rows.Where(static r => r.Kind == FgMixKind.Generated).Select(static r => Math.Round(r.Factor!.Value)).Should().Equal(3, 6);
|
||||
mix.Rows[2].Seconds.Should().BeApproximately(25, 2, "the ten seconds of one-token windows and the fifteen at ×100");
|
||||
mix.Rows.Should().OnlyContain(static r => r.Factor == null || r.Factor <= FgWindow.GenerationCeiling);
|
||||
AddsUpToTheWhole(mix);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.27: Silent Hill 2 (2026-10-20) under the NVIDIA App's Dynamic multi frame generation held ×2 and ×3, and the
|
||||
/// windows where the multiplier stepped read ×2.21–×2.70; three of them formed a ×2.52 "state" nobody held. A window
|
||||
/// between two whole multipliers changed state inside itself, and is not classified.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void WindowsBetweenTwoMultipliersAreNotAState()
|
||||
{
|
||||
// Thirty seconds stepping between ×2 and ×3 every second: every five-second window reads 2.3–2.5.
|
||||
List<FrameSample> stepping = Play(1, 2);
|
||||
for (int s = 1; s < 30; s++)
|
||||
{
|
||||
stepping = SampleFixtures.Concat(stepping, Play(1, s % 2 == 0 ? 2 : 3));
|
||||
}
|
||||
|
||||
FgMix mix = FgMix.From(Concat(Play(20, 2), stepping, Play(20, 3)), Frequency, noneAllowed: true)!;
|
||||
|
||||
mix.Rows.Select(static r => r.Kind).Should().Equal(FgMixKind.Generated, FgMixKind.Generated, FgMixKind.Unclassified);
|
||||
mix.Rows.Where(static r => r.Kind == FgMixKind.Generated).Select(static r => Math.Round(r.Factor!.Value)).Should().Equal(2, 3);
|
||||
mix.Rows[2].Seconds.Should().BeApproximately(30, 2);
|
||||
mix.Rows.Should().OnlyContain(static r => r.Factor == null || FgWindow.IsNearWholeMultiplier(r.Factor.Value));
|
||||
AddsUpToTheWhole(mix);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(1.79, false)]
|
||||
[InlineData(1.8, true)]
|
||||
[InlineData(2.2, true)]
|
||||
[InlineData(2.21, false)]
|
||||
[InlineData(2.52, false)]
|
||||
[InlineData(2.7, true)]
|
||||
[InlineData(6.06, true)]
|
||||
[InlineData(8.0, true)]
|
||||
public void AWholeMultiplierIsWithinTenPercent(double factor, bool near) =>
|
||||
FgWindow.IsNearWholeMultiplier(factor).Should().Be(near);
|
||||
|
||||
[Fact]
|
||||
public void ARatioAtTheCeilingIsStillAState()
|
||||
{
|
||||
FgMix mix = FgMix.From(Concat(Play(20, 2), Play(20, 8)), Frequency, noneAllowed: true)!;
|
||||
|
||||
mix.Rows.Where(static r => r.Kind == FgMixKind.Generated).Select(static r => Math.Round(r.Factor!.Value)).Should().Equal(2, 8);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ASessionWithNoStateHasNoMix()
|
||||
{
|
||||
|
||||
@@ -22,6 +22,21 @@ public sealed class FgSteadyStateTests
|
||||
private static List<FrameSample> Play(int seconds, int k, uint swapchain = 1) =>
|
||||
FgStream(appFrames: seconds * _presentsPerSecond / k, k: k, swapchain: swapchain);
|
||||
|
||||
/// <summary>
|
||||
/// beta.26: thirty seconds of a loading screen at one token per window held more time than the fifteen seconds of ×2
|
||||
/// gameplay, and every one of its windows read ×1200 alike — the longest "state" of the session was no state at all.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void WindowsWithOneTokenEachAreNotTheSteadyState()
|
||||
{
|
||||
List<FrameSample> session = Concat(Play(15, 2), FgStream(appFrames: 6, k: 1200));
|
||||
|
||||
FgSteadyState steady = FgSteadyState.From(session, 0, Frequency)!;
|
||||
|
||||
steady.Factor.Should().BeApproximately(2.0, 0.02);
|
||||
steady.Share.Should().BeApproximately(15.0 / 45, 0.03);
|
||||
}
|
||||
|
||||
/// <summary><paramref name="seconds"/> of presents with the count claimed and no token at all: a splash, a video, a loading screen.</summary>
|
||||
private static List<FrameSample> NoTokens(int seconds) =>
|
||||
FgStream(appFrames: seconds * _presentsPerSecond, k: 1, evalsPerFrame: 0);
|
||||
|
||||
@@ -64,6 +64,26 @@ public sealed class FgWindowTests
|
||||
w.Refusal.Overall.Should().BeApproximately(1.25, 0.01);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.26: a ratio that held throughout and is above <see cref="FgWindow.GenerationCeiling"/> is no configuration —
|
||||
/// the live card's five seconds of a loading screen presented with a token every hundred presents, or a session that
|
||||
/// never left one. At the ceiling it is still a factor.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ASteadyRatioAboveWhatAnyFrameGenerationProducesIsRefused()
|
||||
{
|
||||
FgWindow beyond = FgWindow.From(FgStream(appFrames: 80, k: 100), Frequency);
|
||||
|
||||
beyond.Factor.Should().BeNull();
|
||||
beyond.Refusal!.Kind.Should().Be(FgRefusalKind.BeyondGeneration);
|
||||
beyond.Refusal.Overall.Should().BeApproximately(100, 0.5);
|
||||
beyond.Steady.Should().BeNull("the ratio held throughout: there is no other state to keep");
|
||||
|
||||
FgWindow atCeiling = FgWindow.From(FgStream(appFrames: 80, k: 8), Frequency);
|
||||
atCeiling.Refusal.Should().BeNull();
|
||||
atCeiling.Factor.Should().BeApproximately(8.0, 0.01);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AFactorIsPublishedWhenEveryRefusalPasses()
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ using FrameLedger.Infrastructure.AntiCheat;
|
||||
using FrameLedger.Infrastructure.Ipc;
|
||||
using FrameLedger.Infrastructure.Rules;
|
||||
using FrameLedger.Shared;
|
||||
using FrameLedger.Testing;
|
||||
|
||||
namespace FrameLedger.Infrastructure.Tests;
|
||||
|
||||
@@ -110,7 +111,7 @@ public sealed class ShmDrainIntegrationTests
|
||||
outcome.Should().NotBe(RulesSeedOutcome.PackagedSeedUnusable);
|
||||
}
|
||||
|
||||
private static Process StartHarness(string arguments)
|
||||
private static async Task<Process> StartHarnessAsync(string arguments)
|
||||
{
|
||||
File.Exists(Harness).Should().BeTrue(
|
||||
"hook-harness.exe must be staged beside the test binary (FrameLedger.DrainFixtures.targets). "
|
||||
@@ -126,11 +127,42 @@ public sealed class ShmDrainIntegrationTests
|
||||
RedirectStandardOutput = true,
|
||||
})!;
|
||||
|
||||
Thread.Sleep(800); // let it create its device and start presenting
|
||||
bool presenting = await HarnessReady.WaitUntilPresentingAsync(process, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
if (!presenting && !process.HasExited)
|
||||
{
|
||||
process.Kill(entireProcessTree: true);
|
||||
}
|
||||
|
||||
presenting.Should().BeTrue("the harness must reach its present loop before anything looks for it or is injected into it (HarnessReady)");
|
||||
process.HasExited.Should().BeFalse("the harness must still be running when we inject");
|
||||
return process;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The real guard over the harness, which carries no anti-cheat (beta.27): a refusal names its reason, and one that says
|
||||
/// the guard could not read the scan set whole is asked again — four more times at most, 250 ms apart.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The scan set is the harness and its ancestors up to a platform launcher — here this test host, <c>dotnet test</c> and
|
||||
/// the shell above them. Under a full gate the test host is still starting its other test classes, loading and releasing
|
||||
/// modules while the guard reads its list, and a module released between the list and its name refuses as
|
||||
/// <c>ModuleScanFailed</c>: measured 2026-10-20, once in the gate and once in twelve runs of this assembly with coverage,
|
||||
/// never in a run of this class alone. <c>ProcessUnreadable</c> (twice on 2026-10-19) is the same race met at the list
|
||||
/// itself. Both are the guard working, about this machine's tooling rather than the harness — D48's one re-read covers
|
||||
/// a process still starting, not a list in motion. Every other refusal fails at once, and so does one that lasts.
|
||||
/// </remarks>
|
||||
private static async Task InjectAsync(NativeAntiCheatGuard guard, Process harness)
|
||||
{
|
||||
AntiCheatVerdict verdict = await guard.GuardedInjectAsync(harness.Id, Payload, toleratedFamily: null, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
for (int again = 0; again < 4 && verdict.Reason is (AntiCheatRefusalReason.ModuleScanFailed or AntiCheatRefusalReason.ProcessUnreadable); again++)
|
||||
{
|
||||
await Task.Delay(250, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
verdict = await guard.GuardedInjectAsync(harness.Id, Payload, toleratedFamily: null, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
verdict.IsAllowed.Should().BeTrue($"the guard refused our own harness: {verdict.Reason} {verdict.Family} {verdict.Signal}");
|
||||
}
|
||||
|
||||
private static void Kill(Process p)
|
||||
{
|
||||
try
|
||||
@@ -316,16 +348,15 @@ public sealed class ShmDrainIntegrationTests
|
||||
{
|
||||
await SeedRulesAsync();
|
||||
|
||||
Process harness = StartHarness("--real --hold-presenting 12");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 12");
|
||||
try
|
||||
{
|
||||
var guard = new NativeAntiCheatGuard();
|
||||
|
||||
// The REAL guard with REAL sources — no test seam. The harness carries no anti-cheat, so a
|
||||
// refusal here is a genuine finding about this machine, not a fixture problem.
|
||||
AntiCheatVerdict verdict = await guard.GuardedInjectAsync(harness.Id, Payload, toleratedFamily: null, TestContext.Current.CancellationToken);
|
||||
verdict.IsAllowed.Should().BeTrue(
|
||||
$"the guard refused our own harness: {verdict.Reason} {verdict.Family} {verdict.Signal}");
|
||||
// refusal here is a genuine finding about this machine, not a fixture problem — save the one
|
||||
// InjectAsync asks again about: this test host's own module list, read while it changes.
|
||||
await InjectAsync(guard, harness);
|
||||
|
||||
string ownBuildId = NativeAntiCheatGuard.BuildId();
|
||||
using (ShmRingReader reader = await AttachAsync(harness.Id, ownBuildId))
|
||||
@@ -524,12 +555,11 @@ public sealed class ShmDrainIntegrationTests
|
||||
{
|
||||
await SeedRulesAsync();
|
||||
|
||||
Process harness = StartHarness("--real --hold-presenting 25");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 25");
|
||||
try
|
||||
{
|
||||
var guard = new NativeAntiCheatGuard();
|
||||
(await guard.GuardedInjectAsync(harness.Id, Payload, toleratedFamily: null, TestContext.Current.CancellationToken))
|
||||
.IsAllowed.Should().BeTrue();
|
||||
await InjectAsync(guard, harness);
|
||||
|
||||
using ShmRingReader reader = await AttachAsync(harness.Id, NativeAntiCheatGuard.BuildId());
|
||||
|
||||
@@ -537,6 +567,9 @@ public sealed class ShmDrainIntegrationTests
|
||||
var tick = new Ref<uint>();
|
||||
await EstablishRecordingAsync(reader, buffer, tick);
|
||||
|
||||
// The writer's init thread reaches its READY store after the present hook already records (WaitUntilInitFinishedAsync's
|
||||
// remarks): under load the status below read INIT once (2026-10-19), which says nothing about pausing.
|
||||
await WaitUntilInitFinishedAsync(reader);
|
||||
reader.SetPaused(true);
|
||||
ulong atPause = await SettleAsync(reader, buffer, tick);
|
||||
await Task.Delay(1200, TestContext.Current.CancellationToken);
|
||||
@@ -616,12 +649,11 @@ public sealed class ShmDrainIntegrationTests
|
||||
{
|
||||
await SeedRulesAsync();
|
||||
|
||||
Process harness = StartHarness("--real --hold-presenting 20 --present-interval-ms 0");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 20 --present-interval-ms 0");
|
||||
try
|
||||
{
|
||||
var guard = new NativeAntiCheatGuard();
|
||||
(await guard.GuardedInjectAsync(harness.Id, Payload, toleratedFamily: null, TestContext.Current.CancellationToken))
|
||||
.IsAllowed.Should().BeTrue();
|
||||
await InjectAsync(guard, harness);
|
||||
|
||||
using ShmRingReader reader = await AttachAsync(harness.Id, NativeAntiCheatGuard.BuildId());
|
||||
|
||||
@@ -679,11 +711,11 @@ public sealed class ShmDrainIntegrationTests
|
||||
// in the capture layer.
|
||||
await SeedRulesAsync();
|
||||
|
||||
Process harness = StartHarness("--real --hold-presenting 15");
|
||||
Process harness = await StartHarnessAsync("--real --hold-presenting 15");
|
||||
try
|
||||
{
|
||||
var guard = new NativeAntiCheatGuard();
|
||||
(await guard.GuardedInjectAsync(harness.Id, Payload, toleratedFamily: null, TestContext.Current.CancellationToken)).IsAllowed.Should().BeTrue();
|
||||
await InjectAsync(guard, harness);
|
||||
|
||||
string ownBuildId = NativeAntiCheatGuard.BuildId();
|
||||
using (ShmRingReader reader = await AttachAsync(harness.Id, ownBuildId))
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace FrameLedger.Testing;
|
||||
|
||||
/// <summary>
|
||||
/// When a hook-harness started for an injection test is really up: the line it prints, flushed, right before its present
|
||||
/// loop — after its device and swap chain exist, so its module list is whole and it is presenting.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The injection tests slept 800 ms after starting the harness and then looked for it or injected into it: a guess at
|
||||
/// when it presents, made under a full <c>build.ps1 check</c> — every test assembly at once, each starting WARP devices —
|
||||
/// where a guess can be short. Waiting for the harness's own signal replaces the guess with the event it stood for
|
||||
/// (beta.27). Reading its standard output asynchronously also keeps that pipe drained for the rest of its life, so a
|
||||
/// harness that prints more never blocks on a full pipe. The guard's refusals of 2026-10-19 and 20 were not this:
|
||||
/// <c>ShmDrainIntegrationTests.InjectAsync</c> says what they were.
|
||||
/// </remarks>
|
||||
internal static class HarnessReady
|
||||
{
|
||||
/// <summary>What hook-harness prints, then flushes, right before it presents (<c>main.cpp</c>, <c>--hold-presenting</c>).</summary>
|
||||
public const string PresentingMarker = "presenting for";
|
||||
|
||||
/// <summary>How long a harness may take to reach its present loop; bounded, so one that never does fails its test.</summary>
|
||||
public static readonly TimeSpan Timeout = TimeSpan.FromSeconds(30);
|
||||
|
||||
/// <summary>Whether <paramref name="harness"/> printed <see cref="PresentingMarker"/> within <see cref="Timeout"/>.</summary>
|
||||
/// <param name="harness">A hook-harness started with its standard output redirected, which nobody else reads.</param>
|
||||
/// <param name="ct">The test's cancellation.</param>
|
||||
public static async Task<bool> WaitUntilPresentingAsync(Process harness, CancellationToken ct)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(harness);
|
||||
var presenting = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
|
||||
harness.OutputDataReceived += (_, e) =>
|
||||
{
|
||||
if (e.Data is { } line && line.Contains(PresentingMarker, StringComparison.Ordinal))
|
||||
{
|
||||
presenting.TrySetResult();
|
||||
}
|
||||
};
|
||||
harness.BeginOutputReadLine();
|
||||
try
|
||||
{
|
||||
await presenting.Task.WaitAsync(Timeout, ct).ConfigureAwait(false);
|
||||
return true;
|
||||
}
|
||||
catch (TimeoutException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user