Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f27bb6ce1
|
No files matched your search
@@ -37,6 +37,13 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
|
||||
### Fixed
|
||||
|
||||
- **FSR upscaling is counted once per frame whichever way the game's FidelityFX loader passes it on.** Newer
|
||||
FidelityFX loaders hand a call on to the library behind them in a way that brought the same upscale to
|
||||
FrameLedger twice; with frame generation off, the count of frames the game rendered would have doubled — Native
|
||||
FPS twice too high. Seen in how Cyberpunk 2077's loader passes on its frame-generation calls; no game tested so
|
||||
far upscales through such a loader, so this is a precaution. The upscale is now counted where the game calls it,
|
||||
and nowhere else. (Owner decision D125. Measured cost: none that can be told from noise.)
|
||||
|
||||
- **A game is no longer left unrecorded because it was still loading when FrameLedger looked at it.** Before it
|
||||
hooks a game, and again right after, FrameLedger lists the modules the game has loaded and checks them against
|
||||
the anti-cheat list. A game that is starting loads and unloads modules for several seconds, and when the list
|
||||
|
||||
+3
-1
@@ -90,7 +90,9 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
same games as *Render → output resolution* in the accuracy statement; elsewhere it says it was not measured.
|
||||
- The upscaler is read from the game's calls: DLSS and NIS through NVIDIA Streamline, and FSR through AMD's
|
||||
FidelityFX libraries. **Intel XeSS is not read** (its licence forbids it), FSR 2 and upscalers built into the
|
||||
game are not identified, and Vulkan and OpenGL games read N/A. Where no hook saw DLSS but the NVIDIA driver
|
||||
game are not identified — Cyberpunk 2077's FSR 2.1 is one: its sessions say "unknown" beside a measured render
|
||||
size — and Vulkan and OpenGL games read N/A. A game that sends FSR upscaling through two unrelated libraries in
|
||||
one run is counted from the first alone (none is known). Where no hook saw DLSS but the NVIDIA driver
|
||||
reports it, the page says it is the driver's report.
|
||||
- **The quality mode** (Quality, Balanced, DLAA, …) is shown only when it is known: the NVIDIA App's override
|
||||
where the NVIDIA driver reports it applied (marked *· NVIDIA App*, since 0.1.0-beta.24), or the mode the game
|
||||
|
||||
@@ -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`; since beta.34 `kFeatureDLSS_NR` — DLSS 5's neural rendering, its own fact bit and family `FL_HOOK_SL_NEURAL_RENDERING`, D84; rule 4: the `feature` argument of the API hooked, nothing else). **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. **Since 0.1.0-beta.40 (Advanced metrics train B, D111), and only while the Agent asks** (`FlControlBlock.advancedRequested`): the `sl::DLSSOptions` a title chains into `inputs` — the struct the quality mode is read from — is read further: `outputWidth`/`outputHeight`, `preExposure`, `exposureScale`, `colorBuffersHDR`, the five presets of version 1, and where the struct's own `structVersion` proves them present `ultraQualityPreset` and `useAutoExposure` (≥ 2) and `alphaUpscalingEnabled` (≥ 3) — §Which struct version carries which field. Rule 4: more members of the same argument of the same call; `fl_adv_fields.h` is the one place, `tools/overlay-fields-check.ps1` holds it. No new patch site. **Measured** (the header's own functions, `/O2 /guard:cf /Qspectre /MT`, 20 M calls × 3): +9.5–11.7 ns per evaluation that chains the options while asked; with the word at 0, one relaxed load and a branch not taken — below what the bench resolves. Most titles set these through `slDLSSSetOptions`, which is not an export, and read N/A (train D) |
|
||||
| ✅ 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 — *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. **Since 0.1.0-beta.40 (Advanced metrics train B, D111), and only while the Agent asks:** the UPSCALE arm reads the rest of `ffxDispatchDescUpscale` — `enableSharpening`, `sharpness`, `jitterOffset`, `preExposure`, `cameraNear`, `cameraFar`, `cameraFovAngleVertical`, `flags`, `reset`, `frameTimeDelta` — into process-local summaries (an "ever seen" mask, a largest magnitude, a lowest and highest, a count and a sum; one module's dispatches are counted, so a dispatch that reaches the loader and a leaf is one). Never on the FSR 3.0 host's legacy descriptor, which is vouched for through `renderSize` and no further; never a PREPARE descriptor's camera arrays (`tools/overlay-fields-check.ps1` refuses their names anywhere in the Overlay). `cameraNear`/`cameraFar`/`cameraFovAngleVertical` are the depth range and the field of view, not where the camera is; the field of view is kept as a session's range, never a series (D114). **Measured** (as the row above): +22–23 ns per UPSCALE dispatch, i.e. per application frame, while asked; ≤ 0.7 ns, inside the bench's noise, with the word at 0 |
|
||||
| ✅ **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 *(since 0.1.0-beta.43, owner decision D125: **counted at the first source that saw an UPSCALE and at no other** — `g_ffxUpscaleOwner`, `fl::adv::Owns`. Cyberpunk 2077's loader 2.3.0 hands a dispatch on to the leaf's export — its frame-generation dispatch types are logged on the loader and on the leaf — so an UPSCALE through such a loader reaches two hooked modules, and one count per module read K = 1 as 2.0 on the fixture bound that way (`--ffx-topology 2x-export`: 60 presents, 120 counted). No title run so far upscales through one; it is a precaution. Measured on the header with the Overlay's flags: +0.02 to +0.03 ns on the module that is counted, about 4 ns less on the forwarded copy)*; **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. **Since 0.1.0-beta.40 (Advanced metrics train B, D111), and only while the Agent asks:** the UPSCALE arm reads the rest of `ffxDispatchDescUpscale` — `enableSharpening`, `sharpness`, `jitterOffset`, `preExposure`, `cameraNear`, `cameraFar`, `cameraFovAngleVertical`, `flags`, `reset`, `frameTimeDelta` — into process-local summaries (an "ever seen" mask, a largest magnitude, a lowest and highest, a count and a sum; one module's dispatches are counted, so a dispatch that reaches the loader and a leaf is one). Never on the FSR 3.0 host's legacy descriptor, which is vouched Line truncated
|
||||
| ✅ **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". **Since 0.1.0-beta.40 (Advanced metrics train B, D111), and only while the Agent asks:** when the query the vendor answered OK is the upscaler's memory — `FFX_API_QUERY_DESC_TYPE_UPSCALE_GPU_MEMORY_USAGE` (`0x00010008`, ffx-api 1.1.2) or `…_V2` (`0x00010009`, 2.0) — the `FfxApiEffectMemoryUsage` it wrote through the title's own out-pointer is kept (total and aliasable bytes), one module's queries counted. Only a title that asks is answered: FrameLedger never calls `ffxQuery` itself. The frame-generation memory queries (`0x00020007`, `0x0002000b`) are not read. +4.3–6.1 ns per such query while asked. Harness: `--ffx-memory-query v1|v2`; `fl_guard` "region 5 stays empty until the Agent asks". |
|
||||
| ~~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 |
|
||||
|
||||
+10
-1
@@ -217,7 +217,14 @@ Asked for as "Resolution Scaling = FSR 3, frame generation off". Read the same w
|
||||
lost this way on beta.42. What the owner then checks is the Agent's log: no `guard=ModuleScanFailed` end at a
|
||||
game's launch, and if one comes its signal now says which kind — *kept changing while it was read* (four reads
|
||||
were not enough) or *came back incomplete* (more modules than the guard's buffer holds).
|
||||
2. **~~Read that log, then~~ plan 0.1.0-beta.43** — `slSetConstants` and `ffxConfigure`, and the fix for D121 if the
|
||||
2. **0.1.0-beta.43 — planned and approved 2026-11-12 (D123–D125), and under way.** The guard's re-read (D123,
|
||||
#413) ships with it and not on its own (D124). Five pull requests after it: (1) an UPSCALE is counted at the
|
||||
first source that saw one (D125) — the fixture's loader bound through the leaves' exports read K = 1 as 2.0
|
||||
before it; (2) `slSetConstants`; (3) `ffxConfigure` on the four ffx modules; (4) the Agent, the App and the
|
||||
Privacy Policy 2.17, whose wording the plan carried and the owner approved with it; (5) the release, owner-only
|
||||
item 41. The design is the one below, as the review of 2026-11-12's first plan left it; nothing in the logs
|
||||
changed it except D125.
|
||||
~~**Read that log, then plan 0.1.0-beta.43**~~ — `slSetConstants` and `ffxConfigure`, and the fix for D121 if the
|
||||
log shows the route. What to look for: which `HOOK_INSTALLED` lines there are (which of the four ffx modules and
|
||||
the FSR 3.0 host were patched); the `FFX_DISPATCH` lines — is `b=0x10001` (UPSCALE) on any module, or only
|
||||
`0x20004` / `0x2000c` / `0x20003`; an `UPSCALE_ROUTE` line; `PATCH_FAILED`; the last `RUNTIME_CENSUS` word.
|
||||
@@ -739,6 +746,8 @@ Where each owner decision is recorded — the file and its section, and a label
|
||||
| D121 | [`HANDOFF.md`](HANDOFF.md) §NEXT | Cyberpunk 2077 was set to FSR upscaling and FrameLedger named none: a detection gap, to be investigated — which first needs a native log that survives the game's exit |
|
||||
| D122 | [`18_GPU_VENDOR_APIS.md`](18_GPU_VENDOR_APIS.md) §Train B | train B's second step is split: **beta.42** has no new patch site (D119–D121 and the patch registry's hardening); **beta.43** is the two new hooks, begun only after the owner has run Cyberpunk on beta.42 and its log was read. The third release is beta.44, train C beta.45, train D beta.46 |
|
||||
| D123 | [`19_SAFETY_AND_ANTICHEAT.md`](19_SAFETY_AND_ANTICHEAT.md) §Pre-injection checks, check 1 | a module list that changed while the guard read it is read again, at most three times, before it refuses — five real sessions on one PC in a week had ended as a safety unhook with no frame recorded; a list that never settles still refuses, and nothing else about what refuses changed |
|
||||
| D124 | [`HANDOFF.md`](HANDOFF.md) §NEXT | the guard's re-read (D123) ships with 0.1.0-beta.43 and not as a release of its own — the train's numbers do not move a third time; until then a launch can still be lost that way on beta.42 |
|
||||
| D125 | [`17_HOOK_ENGINE.md`](17_HOOK_ENGINE.md) §Hook inventory | an FSR UPSCALE is counted at the first source that saw one and at no other — a precaution for a loader that hands a dispatch on to the leaf's export (Cyberpunk 2077's 2.3.0 does, for frame generation); no title run so far upscales through one |
|
||||
| D109 | [`../legal/DISCLAIMER.md`](../legal/DISCLAIMER.md) §5, §5A | asked on 2026-11-11 with both sentences quoted: the Disclaimer goes to 2.15 with the Privacy Policy — PawnIO and the admin mode are no longer "for the CPU temperature" alone; with Advanced metrics on they also read the processor's, the memory's and the motherboard's sensors. The admin mode's disclosure follows (`agent-admin-dialog/2`) |
|
||||
|
||||
---
|
||||
|
||||
@@ -183,6 +183,13 @@ static_assert((kFamilyEvaluateFeature & static_cast<uint32_t>(fl::FL_HOOK_FG_EVA
|
||||
// prints against each other (frames/upscale-drained) and the K = 1 control in the
|
||||
// fixtures are what would show a loader that re-entered a leaf's export: 2x on both.
|
||||
//
|
||||
// AND MEASURED A THIRD TIME, 2026-11-12, WITH A THIRD ANSWER: Cyberpunk 2077's loader 2.3.0 DOES hand a dispatch
|
||||
// on to the leaf's export -- its frame-generation dispatch types are logged on the loader and on the
|
||||
// frame-generation leaf. So "the leaves stay silent behind the loader" is a fact about the loader of September's
|
||||
// three titles (1.0.2), not about loaders. The rows stand as they are -- whatever module the game calls -- and
|
||||
// what a dispatch seen twice may count is decided where it is counted: PREPARE by its frame number, an UPSCALE at
|
||||
// the first source that saw one (dllmain.cpp g_ffxUpscaleOwner, owner decision D125).
|
||||
//
|
||||
// The effect-DLL split is NOT a guess about the vendor's internals: the FidelityFX
|
||||
// SDK's own getting-started text says the loader "only manages the loading of
|
||||
// effect type DLLs" and is "interface- and behavior-compatible with
|
||||
|
||||
@@ -1256,6 +1256,23 @@ std::atomic<uint64_t> g_ffxExtent{0};
|
||||
// not say which -- so the same UPSCALE type decodes to FL_UPSCALER_FSR3 from one leaf
|
||||
// and to FL_UPSCALER_FSR_UNVERSIONED from the other (fl_shm.h says why).
|
||||
std::atomic<uint32_t> g_ffxUpscaleLeaf{0};
|
||||
// WHICH SOURCE'S UPSCALES ARE COUNTED (owner decision D125, 2026-11-12): the first one that saw an UPSCALE, and from
|
||||
// then on only it -- leaf + 1 for an ffx-api module, kFfxUpscaleSourceFsr3Host for the 3.0 host; fl::adv::Owns' slot.
|
||||
//
|
||||
// WHY. A loader that hands a dispatch on to the leaf's EXPORT delivers one UPSCALE to two hooked modules, and the
|
||||
// count below was one per module that saw it. Measured on Cyberpunk 2077's loader 2.3.0 for the frame-generation
|
||||
// dispatches (logged on the loader AND the leaf); the loader of the three titles of 2026-09-04 leaves the leaf
|
||||
// exports silent, which is why the rows were written without this. With frame generation off no PREPARE arrives, the
|
||||
// application-frame count falls back to this one, and K = 1 would read 2.0: Native FPS doubled and the factor halved,
|
||||
// which rule 6 forbids in either direction. No title run so far upscales through such a loader -- this is a
|
||||
// precaution, held by the fixture's loader bound through the exports.
|
||||
//
|
||||
// THE FIRST SOURCE, AND NOT THE OUTERMOST CALL ON THE STACK: knowing that a detour runs inside another's original
|
||||
// would take state carried across the call to the original, which every detour here makes exactly once and outside
|
||||
// its guard. The game's entry is the first to see a dispatch, so the first source IS the entry. What it gives up is
|
||||
// said in LIMITATIONS: a process whose UPSCALEs come from two unrelated sources is counted from the first alone.
|
||||
// The render size and the quality byte are NOT gated -- the same call writes the same values twice.
|
||||
std::atomic<uint32_t> g_ffxUpscaleOwner{0};
|
||||
|
||||
using PFN_FfxDispatch = ::PfnFfxDispatch;
|
||||
PFN_FfxDispatch g_origFfxDispatch[fl::inventory::kFfxLeafCount] = {};
|
||||
@@ -2014,8 +2031,12 @@ void ObserveFfxDispatch(uint32_t leaf, const ffxDispatchDescHeader* desc) noexce
|
||||
g_ffxQuality.store(
|
||||
FfxQualityOf(up->renderSize.width, up->renderSize.height, up->upscaleSize.width, up->upscaleSize.height),
|
||||
std::memory_order_release);
|
||||
g_ffxUpscaleLeaf.store(leaf + 1u, std::memory_order_relaxed);
|
||||
g_ffxSeen.fetch_add(fl::slseen::kCountOne, std::memory_order_relaxed);
|
||||
// Counted once, at the first source that saw an UPSCALE (D125): a loader that forwards to the leaf's export
|
||||
// brings the same dispatch here twice.
|
||||
if (fl::adv::Owns(g_ffxUpscaleOwner, leaf)) {
|
||||
g_ffxUpscaleLeaf.store(leaf + 1u, std::memory_order_relaxed);
|
||||
g_ffxSeen.fetch_add(fl::slseen::kCountOne, std::memory_order_relaxed);
|
||||
}
|
||||
// The rest of the same descriptor (sharpening, jitter, exposure, the depth range, the field of view, flags,
|
||||
// the frame time) - Advanced metrics, only while the Agent asked (D111). Not on the FSR 3.0 host's route:
|
||||
// its legacy descriptor is vouched for through renderSize and no further (17_HOOK_ENGINE §Which struct
|
||||
@@ -2080,8 +2101,11 @@ fsr3host::FfxErrorCode Hook_FfxFsr3ContextDispatchUpscale(fsr3host::FfxFsr3Conte
|
||||
FL_HOOK_GUARD({
|
||||
if (MayObserve() && desc != nullptr) {
|
||||
NoteFfxExtent(desc->renderSize.width, desc->renderSize.height);
|
||||
g_ffxUpscaleLeaf.store(kFfxUpscaleSourceFsr3Host, std::memory_order_relaxed);
|
||||
g_ffxSeen.fetch_add(fl::slseen::kCountOne, std::memory_order_relaxed);
|
||||
// The host is a source like the four leaves (D125): Owns' slot value for it is its leaf index + 1.
|
||||
if (fl::adv::Owns(g_ffxUpscaleOwner, kFfxUpscaleSourceFsr3Host - 1u)) {
|
||||
g_ffxUpscaleLeaf.store(kFfxUpscaleSourceFsr3Host, std::memory_order_relaxed);
|
||||
g_ffxSeen.fetch_add(fl::slseen::kCountOne, std::memory_order_relaxed);
|
||||
}
|
||||
}
|
||||
})
|
||||
return g_origFfxFsr3DispatchUpscale(context, desc);
|
||||
|
||||
@@ -6088,6 +6088,26 @@ TEST_CASE("FSR through the SDK 2.x loader: identified, extent exact, the count t
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("a loader that hands a dispatch on to the leaf's export (D125): an UPSCALE is counted once, at the module "
|
||||
"the game called",
|
||||
"[guard][inject][shm][ffx]") {
|
||||
// MEASURED ON CYBERPUNK 2077, 2026-11-12: its loader 2.3.0 forwards a dispatch to the leaf's EXPORT -- each
|
||||
// frame-generation dispatch type was logged on the loader and on the frame-generation leaf -- where the loader of
|
||||
// September's three titles left the leaf exports silent. With all four modules hooked an UPSCALE through such a
|
||||
// loader arrives twice, and the count that stands in for application frames when no PREPARE is issued (frame
|
||||
// generation off) was one per hooked module that saw it: K = 1 read 2.0. No title run so far upscales this way;
|
||||
// the stub loader bound through the exports is how the rule is held. Frame generation ON is the second half:
|
||||
// PREPARE is counted by its frame number and must read the same through either loader.
|
||||
for (const int k : {1, 4}) {
|
||||
CAPTURE(k);
|
||||
FfxObservation obs;
|
||||
REQUIRE(ObserveFfx(k, L"2x-export", /*prepare=*/k > 1, fl::FL_UPSCALER_FSR_UNVERSIONED, obs));
|
||||
AssertFfxWindow(obs, k);
|
||||
CHECK((obs.census & fl::FL_CENSUS_AMD_FFX_UPSCALER) != 0u);
|
||||
CHECK((obs.census & fl::FL_CENSUS_AMD_FFX_FRAMEGENERATION) != 0u);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("the SDK 1.1.x monolith is FSR3; with no PREPARE the count falls back to UPSCALE dispatches",
|
||||
"[guard][inject][shm][ffx]") {
|
||||
// TWO SHAPES A 1.1.x TITLE ACTUALLY HAS. Frame generation OFF: no PREPARE is ever
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
// an FSR title does: one UPSCALE and one PREPARE (issued twice,
|
||||
// same frameID) per application frame, one FRAMEGENERATION per
|
||||
// frame at K > 1, then K presents (--presents-per-eval K)
|
||||
// --ffx-topology 1x|2x|ue|fsr3host|fsr3host+mono
|
||||
// --ffx-topology 1x|2x|2x-export|ue|fsr3host|fsr3host+mono
|
||||
// which vendor shape --hold-presenting-ffx stands in: 2x (default)
|
||||
// is the SDK 2.x pair of effect DLLs behind the LOADER (the game
|
||||
// calls the loader; the loader forwards NOT through the leaves'
|
||||
@@ -3022,7 +3022,9 @@ int HoldPresentingFg(Gfx& g, int seconds, bool real, int presentsPerEval) {
|
||||
// DLL alone (its named UPSCALE export, no PREPARE, no frame generation -- the K = 1
|
||||
// double-count control for that row), fsr3host+mono = Cyberpunk 2077's measured shape:
|
||||
// the host upscales while the 1.1.x monolith prepares and generates.
|
||||
enum class FfxTopology { Monolith, Loader, Ue, Fsr3Host, Fsr3HostMonolith };
|
||||
// LoaderExport (2026-11-12, D125): the two leaves behind a loader that forwards a dispatch to their EXPORTS, as
|
||||
// Cyberpunk 2077's loader 2.3.0 was measured to -- every dispatch then reaches two hooked modules.
|
||||
enum class FfxTopology { Monolith, Loader, LoaderExport, Ue, Fsr3Host, Fsr3HostMonolith };
|
||||
|
||||
using PfnFsr3DispatchUpscale = decltype(&fsr3host::ffxFsr3ContextDispatchUpscale);
|
||||
|
||||
@@ -3136,16 +3138,17 @@ int HoldPresentingFfx(Gfx& g, int seconds, bool real, int presentsPerEval, FfxTo
|
||||
Check(false, "the SDK 2.x leaf stubs loaded for the ffx hold");
|
||||
return 1;
|
||||
}
|
||||
if (topology == FfxTopology::Loader) {
|
||||
if (topology == FfxTopology::Loader || topology == FfxTopology::LoaderExport) {
|
||||
const HMODULE loader = LoadStubExactly(FL_STUB_FFX_LOADER);
|
||||
if (loader == nullptr) {
|
||||
Check(false, "the loader stub loaded for the ffx hold");
|
||||
return 1;
|
||||
}
|
||||
auto bind =
|
||||
reinterpret_cast<StubLoaderBindFn>(reinterpret_cast<void*>(GetProcAddress(loader, "FlStubLoaderBind")));
|
||||
auto bind = reinterpret_cast<StubLoaderBindFn>(reinterpret_cast<void*>(
|
||||
GetProcAddress(loader, topology == FfxTopology::LoaderExport ? "FlStubLoaderBindThroughExports"
|
||||
: "FlStubLoaderBind")));
|
||||
if (bind == nullptr) {
|
||||
Check(false, "the loader stub exports FlStubLoaderBind");
|
||||
Check(false, "the loader stub exports its bind entry");
|
||||
return 1;
|
||||
}
|
||||
bind(upscaler, fg);
|
||||
@@ -3182,9 +3185,12 @@ int HoldPresentingFfx(Gfx& g, int seconds, bool real, int presentsPerEval, FfxTo
|
||||
return 1;
|
||||
}
|
||||
// The pre-V2 PREPARE is the 1.1.x monolith's, on both topologies that use it.
|
||||
const bool topology2x = topology == FfxTopology::Loader || topology == FfxTopology::Ue;
|
||||
const char* topologyName = topology == FfxTopology::Monolith ? "SDK 1.1.x (monolith)"
|
||||
: topology == FfxTopology::Loader ? "SDK 2.x (two leaves behind the loader)"
|
||||
const bool topology2x =
|
||||
topology == FfxTopology::Loader || topology == FfxTopology::LoaderExport || topology == FfxTopology::Ue;
|
||||
const char* topologyName = topology == FfxTopology::Monolith ? "SDK 1.1.x (monolith)"
|
||||
: topology == FfxTopology::Loader ? "SDK 2.x (two leaves behind the loader)"
|
||||
: topology == FfxTopology::LoaderExport
|
||||
? "SDK 2.x (two leaves behind a loader that forwards to their exports)"
|
||||
: topology == FfxTopology::Ue ? "UE5 (two leaves, no loader)"
|
||||
: topology == FfxTopology::Fsr3Host ? "FSR 3.0 host DLL alone"
|
||||
: "FSR 3.0 host DLL + SDK 1.1.x monolith";
|
||||
@@ -3484,6 +3490,7 @@ int main(int argc, char** argv) {
|
||||
} else if (std::strcmp(argv[i], "--ffx-topology") == 0 && i + 1 < argc) {
|
||||
const char* t = argv[++i];
|
||||
ffxTopology = std::strcmp(t, "1x") == 0 ? FfxTopology::Monolith
|
||||
: std::strcmp(t, "2x-export") == 0 ? FfxTopology::LoaderExport
|
||||
: std::strcmp(t, "ue") == 0 ? FfxTopology::Ue
|
||||
: std::strcmp(t, "fsr3host") == 0 ? FfxTopology::Fsr3Host
|
||||
: std::strcmp(t, "fsr3host+mono") == 0 ? FfxTopology::Fsr3HostMonolith
|
||||
|
||||
@@ -26,6 +26,16 @@
|
||||
//
|
||||
// IT IS A FIXTURE, NOT A CLAIM ABOUT THE REAL LOADER'S INTERNALS beyond the one
|
||||
// measured fact: the leaf exports stay silent behind it.
|
||||
//
|
||||
// AND A SECOND MEASURED FACT, 2026-11-12, FOR A LATER LOADER. Cyberpunk 2077's
|
||||
// loader 2.3.0 hands a dispatch on to the leaf's EXPORT: each frame-generation
|
||||
// dispatch type was logged on the loader and on the frame-generation leaf. So the
|
||||
// stub has a second way to be bound -- FlStubLoaderBindThroughExports -- that
|
||||
// forwards through the leaves' exported ffxDispatch, and with all four modules
|
||||
// hooked the Overlay then sees every dispatch at two of them. What it does with
|
||||
// that is owner decision D125: an UPSCALE is counted at the first module that
|
||||
// sees it. No title run so far upscales through such a loader; the fixture is how
|
||||
// the rule is held.
|
||||
|
||||
#include <ffx_api.h>
|
||||
|
||||
@@ -51,7 +61,7 @@ Bound g_upscaler;
|
||||
Bound g_frameGeneration;
|
||||
volatile LONG g_forwarded = 0;
|
||||
|
||||
void Bind(Bound& b, HMODULE h) {
|
||||
void Bind(Bound& b, HMODULE h, bool dispatchThroughExport = false) {
|
||||
if (h == nullptr) {
|
||||
b = Bound{};
|
||||
return;
|
||||
@@ -60,9 +70,10 @@ void Bind(Bound& b, HMODULE h) {
|
||||
b.destroy = reinterpret_cast<PfnFfxDestroyContext>(reinterpret_cast<void*>(GetProcAddress(h, "ffxDestroyContext")));
|
||||
b.configure = reinterpret_cast<PfnFfxConfigure>(reinterpret_cast<void*>(GetProcAddress(h, "ffxConfigure")));
|
||||
b.query = reinterpret_cast<PfnFfxQuery>(reinterpret_cast<void*>(GetProcAddress(h, "ffxQuery")));
|
||||
// DISPATCH GOES THROUGH THE DIRECT ENTRY, NOT THE EXPORT -- see the header comment.
|
||||
b.dispatch =
|
||||
reinterpret_cast<PfnFfxDispatch>(reinterpret_cast<void*>(GetProcAddress(h, "FlStubFfxDispatchDirect")));
|
||||
// DISPATCH GOES THROUGH THE DIRECT ENTRY, NOT THE EXPORT -- see the header comment -- unless this is the later
|
||||
// loader's shape (FlStubLoaderBindThroughExports).
|
||||
b.dispatch = reinterpret_cast<PfnFfxDispatch>(
|
||||
reinterpret_cast<void*>(GetProcAddress(h, dispatchThroughExport ? "ffxDispatch" : "FlStubFfxDispatchDirect")));
|
||||
}
|
||||
|
||||
// Route by EFFECT ID, which is what the real loader's provider lookup keys on
|
||||
@@ -90,6 +101,12 @@ __declspec(dllexport) void FlStubLoaderBind(HMODULE upscaler, HMODULE frameGener
|
||||
Bind(g_frameGeneration, frameGeneration);
|
||||
}
|
||||
|
||||
// The loader 2.3 shape (measured on Cyberpunk 2077, 2026-11-12): dispatches are handed to the leaves' exports.
|
||||
__declspec(dllexport) void FlStubLoaderBindThroughExports(HMODULE upscaler, HMODULE frameGeneration) {
|
||||
Bind(g_upscaler, upscaler, true);
|
||||
Bind(g_frameGeneration, frameGeneration, true);
|
||||
}
|
||||
|
||||
__declspec(dllexport) unsigned int FlStubLoaderForwarded() {
|
||||
return static_cast<unsigned int>(InterlockedCompareExchange(&g_forwarded, 0, 0));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user