Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b6a4f79ca
|
||
|
|
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
|
||||
|
||||
@@ -41,6 +41,7 @@ Newest first. Each file holds that release's section exactly as it stood here.
|
||||
|
||||
| Version | Date | Notes |
|
||||
|---|---|---|
|
||||
| `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) |
|
||||
|
||||
+8
-5
@@ -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.25.*
|
||||
*Beta software: this page describes version 0.1.0-beta.26.*
|
||||
|
||||
## Games it will not measure
|
||||
|
||||
@@ -67,10 +67,13 @@ 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*, and 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
|
||||
|
||||
@@ -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.25`** (2026-10-19), an unsigned installer built from that tag with its
|
||||
> **pre-release is `0.1.0-beta.26`** (2026-10-19), 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.25` (2026-10-19); before it `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`.
|
||||
> **The latest pre-release is `v0.1.0-beta.26` (2026-10-19); before it `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**.
|
||||
|
||||
+14
-1
@@ -488,10 +488,23 @@ 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.
|
||||
>
|
||||
> **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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
+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
|
||||
|
||||
+36
-34
@@ -64,6 +64,7 @@ owner-only items stay below; the history of every train, the passed owner-only i
|
||||
| `§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) |
|
||||
| `§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) |
|
||||
@@ -71,44 +72,39 @@ owner-only items stay below; the history of every train, the passed owner-only i
|
||||
|
||||
---
|
||||
|
||||
## **START HERE** — 2026-10-19, 0.1.0-beta.25: FSR's quality mode
|
||||
## **START HERE** — 2026-10-19, 0.1.0-beta.26: a ×1336 frame-generation state, fixed
|
||||
|
||||
*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.
|
||||
*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.
|
||||
|
||||
**Decisions:**
|
||||
**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.
|
||||
|
||||
- **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.
|
||||
**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:**
|
||||
|
||||
- **`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.
|
||||
- **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, added to the list below:** item 21.
|
||||
**Owner-only:** items 20 and 21 annotated (`spike-notes` §22); nothing added.
|
||||
|
||||
|
||||
## Owner-only — no PR can close these
|
||||
@@ -216,7 +212,11 @@ case): 7.6–8.2 ns per UPSCALE dispatch, 1.6 ns per query beside the trampoline
|
||||
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.)*
|
||||
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
|
||||
@@ -226,7 +226,9 @@ case): 7.6–8.2 ns per UPSCALE dispatch, 1.6 ns per query beside the trampoline
|
||||
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.
|
||||
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.)*
|
||||
**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 —
|
||||
@@ -305,7 +307,7 @@ Where each owner decision is recorded — the file and its section, and a label
|
||||
| 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 | this file, §START HERE | FSR's quality mode through ffxQuery — deferred from beta.24, built in beta.25; none at a dynamic resolution |
|
||||
| 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,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,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.
|
||||
@@ -45,3 +45,4 @@ 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) |
|
||||
@@ -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.
|
||||
+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.25`** (2026-10-19), an unsigned installer built from that tag with its
|
||||
> **pre-release is `0.1.0-beta.26`** (2026-10-19), 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.25`** (2026-10-19), an unsigned installer built from that tag with its
|
||||
> **pre-release is `0.1.0-beta.26`** (2026-10-19), 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
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Generated
+6
@@ -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),
|
||||
@@ -1857,6 +1859,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 +1883,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);
|
||||
|
||||
@@ -4577,4 +4577,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>
|
||||
@@ -3443,4 +3443,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>
|
||||
@@ -3438,4 +3438,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>
|
||||
@@ -19,6 +19,14 @@ 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"/>, or windows that averaged fewer than <see cref="FgWindow.MinPerBucket"/>
|
||||
/// application frames — 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 +36,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
|
||||
|| 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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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(),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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,18 @@ 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"/>, and no more than
|
||||
/// <see cref="FgWindow.GenerationCeiling"/> — above it the ratio is no frame generation's.
|
||||
/// </summary>
|
||||
public bool IsActive => IsReadable && Displayed >= Tokens * FgWindow.ActiveThreshold && Factor <= FgWindow.GenerationCeiling;
|
||||
}
|
||||
|
||||
/// <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,16 @@ 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><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 +438,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 +448,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
|
||||
|
||||
@@ -130,4 +130,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
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
// 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(8.01, 30.0)]
|
||||
[InlineData(4.0, 1.5)]
|
||||
[InlineData(null, 30.0)]
|
||||
public void AGeneratedRowAboveTheCeilingOrWithTooFewFramesIsFoldedEvenWithNoUnclassifiedRow(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();
|
||||
}
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
@@ -135,6 +135,37 @@ 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);
|
||||
}
|
||||
|
||||
[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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user