Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24dffadccf
|
||
|
|
03c7a63040
|
No files matched your search
@@ -49,8 +49,21 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
later, will still not see the calls. Nothing is shown of them yet: the Agent and the App read them in the next
|
||||
pull request. No layout change (5), no schema change (23).
|
||||
|
||||
- **A session shows which version each Streamline feature is, and what it requires** (Advanced metrics). Two
|
||||
catalog entries are now read inside the game: `sl.feature.versions` and `sl.feature.requirements` — Streamline's
|
||||
answers to the two questions a game asks about a feature, in NVIDIA's own names (`kFeatureDLSS_G · versionNGX`,
|
||||
`kFeatureDLSS · driverVersionRequired`). The line under the session says for each of the two calls whether it was
|
||||
read, not hooked, or — the usual case — *hooked — the game asks this while it starts, and did not ask again after
|
||||
FrameLedger attached*. **Most sessions will show nothing here**: a game asks before FrameLedger is in it. A game
|
||||
that asks later is read then, and a second session of a game that kept running keeps what the first read. The
|
||||
Agent's end-to-end tests now run a Streamline target as well as an FSR one.
|
||||
|
||||
### Changed
|
||||
|
||||
- **Privacy Policy 2.18**: it names what Streamline answers about a feature — the features asked about, their
|
||||
versions, what each requires — and what of that answer is never read (the lists it points to: the buffers' names,
|
||||
the names of Vulkan extensions and features); "two further calls" is four. The terms window shows once after the
|
||||
update. The Disclaimer stays 2.15.
|
||||
- **Switching hooking back on starts the count of early abnormal ends again** (owner decision D126). The count was
|
||||
never set back, so a game that had once been switched off — after two ends within 60 seconds of injection — was
|
||||
switched off again by every single such end after its user switched it on, under a reason that still said
|
||||
|
||||
@@ -125,6 +125,9 @@ src/
|
||||
# Since 0.1.0-beta.43 also what the game tells Streamline each frame and how it
|
||||
# configures FSR frame generation, from two calls hooked only once Advanced has been
|
||||
# asked for; AdvancedInGameCall says of each: read, never called, or not hooked.
|
||||
# Since 0.1.0-beta.44 also what Streamline answers when the game asks about a
|
||||
# feature (its version, what it requires), from two more calls hooked the same
|
||||
# way; a game asks while it starts, so "never called" is the usual answer there.
|
||||
FrameLedger.Infrastructure/ # SQLite, shm reader, vendor APIs, injector interop, parsers,
|
||||
# and Capture/ (PR-C): ShmRingAttacher/ShmCaptureSink over the
|
||||
# reader, HeldProcessLivenessSource, TargetResolver (path only,
|
||||
|
||||
@@ -205,6 +205,15 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
shown as the game gave it, with a line saying so, and is never converted (since 0.1.0-beta.44; a session
|
||||
recorded before keeps the line it was stored with, which labels the degrees as radians). The count of resets is
|
||||
the number of calls in which the game said so — menus and loading screens raise it.
|
||||
- **Which version each Streamline feature is, and what it requires** (since 0.1.0-beta.44) are Streamline's
|
||||
answers to two questions **a game asks while it starts**. FrameLedger hooks the two calls only once a session
|
||||
with Advanced metrics on has started in that game, which is usually after the game asked: **most sessions will
|
||||
show nothing here**, and the session's line then says the call was hooked and the game did not ask again. A
|
||||
game that asks later is read then, and a second session of a game that kept running keeps what the first one
|
||||
read. The rows are Streamline's answer as the game received it — the versions
|
||||
of Windows and of the driver are the ones Streamline found — not FrameLedger's own check of the PC. Twelve
|
||||
features are kept; a thirteenth is not. The lists the answer points to (the buffers, the Vulkan extensions) are
|
||||
never read, so the rows give how many buffers a feature needs and not which. Not confirmed on a real game yet.
|
||||
- **The driver's own figures** — the card's firmware and architecture, its memory in detail, what a display can do
|
||||
with HDR and variable refresh, the driver's settings for the game — exist on **NVIDIA** cards only. On other cards
|
||||
they read N/A; the card's sensors (fans, voltages, loads) are read on every brand, and none has been tested on an
|
||||
|
||||
@@ -117,7 +117,11 @@ app too (Help ▸ User guide, Help ▸ Limitations, Help ▸ Accessibility), and
|
||||
> later through AMD's own library. Since beta.43 also what a game tells NVIDIA Streamline about each frame (jitter,
|
||||
> motion-vector scale, depth range, field-of-view range, how often it reset the upscaler's history — for the first
|
||||
> viewport that called, where a game has several) and how it configures FSR frame generation (the settings it asked
|
||||
> for, not whether frames were generated). FSR's upscaling values, Streamline's constants (three games) and the
|
||||
> for, not whether frames were generated). Since beta.44 also what Streamline answers when a game asks about a
|
||||
> feature — its version, and what it requires (graphics APIs, V-Sync, GPU scheduling, Windows and driver versions):
|
||||
> Streamline's answer as the game received it, not a check of the PC, and a game asks while it starts, so a
|
||||
> session that attached later usually has none and says so. FSR's upscaling values, Streamline's constants (three
|
||||
> games) and the
|
||||
> frame-generation configuration (one game) have been read from real games; the DLSS options have not been
|
||||
> confirmed on one yet. A game may give a value in a unit of its own: one gives Streamline its field of view in
|
||||
> degrees, and it is shown as given.
|
||||
|
||||
@@ -764,7 +764,10 @@ Sequential embedded SQL (`Migrations/0001_init.sql`, `0002_*.sql`, …), applied
|
||||
> `adv.ffx.memory_usage` in `sensor_blobs`. **Since 0.1.0-beta.43** `sources` may also hold `streamlineConstants`
|
||||
> and `fsrFrameGeneration` (`Read`, `NeverCalled`, `NotHooked`; `Application.Advanced.AdvancedInGameCall`) — what
|
||||
> became, in that session, of the two calls hooked only for Advanced metrics; both absent in a row written before,
|
||||
> and in a session not measured inside the game. No column and no script: schema 23 as it was. A session deleted
|
||||
> and in a session not measured inside the game. **Since 0.1.0-beta.44** also `streamlineFeatureVersion` and
|
||||
> `streamlineFeatureRequirements`, the same three values for the two questions a game asks Streamline about a
|
||||
> feature — where `NeverCalled` is the usual one, a game asking while it starts — and the facts
|
||||
> `sl.feature.versions` and `sl.feature.requirements`, rows named `<feature> · <member>` in the vendor's words. No column and no script: schema 23 as it was. A session deleted
|
||||
> takes its row with it; a profile no session points to is left, as a hardware snapshot is; the retention sweep
|
||||
> removes a session's `adv.` series with its other raw series and keeps its row. Written by the Agent only, in the
|
||||
> session's own transaction (`SqliteSessionRepository.InsertAdvancedAsync`). `LatestVersion` is 23;
|
||||
|
||||
@@ -877,6 +877,10 @@ Tail view of `ui-*.log` / `agent-*.log` (toggle), level filter, search (`ui:Auto
|
||||
> (`Advanced_InGameCallsLine` with `AdvInGameCall_*`): for what the game tells Streamline each frame and for how it
|
||||
> configures FSR frame generation, each *read*, *hooked - the game did not make the call*, or *not hooked - the
|
||||
> game did not load the library that has the call*. "Nothing here" then says which of the two it is.
|
||||
> **Since 0.1.0-beta.44** one more (`Advanced_InGameFeatureCallsLine`): for which version each Streamline feature
|
||||
> is and for what each requires, the same three — except that hooked and not seen reads *hooked - the game asks
|
||||
> this while it starts, and did not ask again after FrameLedger attached* (`AdvInGameCall_NotAskedAgain`,
|
||||
> `AdvancedLabels.InGameStartupCall`): the usual case, and not a finding about the game.
|
||||
>
|
||||
> **Words.** Every catalog entry, group, reason, source state and driver token is a `Strings.resx` key made from its own
|
||||
> name (`Adv_<id>`, `AdvGroup_*`, `AdvReach_*`, `AdvSource_*`, `AdvToken_*`) in `en`, `vi`, `ja`; the English label of
|
||||
|
||||
@@ -752,7 +752,7 @@ planning, the design reviewed against the code before it was approved.
|
||||
`ICaptureObserver.WantsInGameAdvanced`; `CaptureSession` writes the word either way as the ring is attached, before
|
||||
its first guard result, and from then on carries each publication of region 5 on `CaptureProgress.InGameAdvanced`
|
||||
— one instance a publication, the same one on the ten ticks between two. `Application.Capture.InGameAdvancedSampler`
|
||||
turns a publication into what a session stores: the session facts of the thirteen `Game` entries below (nineteen since 0.1.0-beta.43), in the
|
||||
turns a publication into what a session stores: the session facts of the thirteen `Game` entries below (nineteen since 0.1.0-beta.43, twenty-one since 0.1.0-beta.44), in the
|
||||
vendor's own words (a preset is its letter, a member its name), and two series —
|
||||
`adv.ffx.upscale.frame_time_delta`, the mean of one second's dispatches, and `adv.ffx.memory_usage`, a point for
|
||||
each second the game asked. The facts are one list until a field they are made of moves, so the recorder's context
|
||||
@@ -783,6 +783,18 @@ planning, the design reviewed against the code before it was approved.
|
||||
(`FlHookFamily.SlConstants`, `.FfxConfigure` in the writer state's mask) and no publication carried the group; or
|
||||
`NotHooked` — the family was never published, which is a game that did not load the library, a Streamline 1.x
|
||||
interposer, or a patch that was refused. The page says it in one more sentence of the session's sources line.
|
||||
**The third step, 2026-11-12 (0.1.0-beta.44).** Two more entries have reach `Game`: `sl.feature.versions` and
|
||||
`sl.feature.requirements`, from what Streamline answers `slGetFeatureVersion` and `slGetFeatureRequirements`
|
||||
(`17_HOOK_ENGINE` §Hook inventory). The sampler makes them from region 5's twelve feature slots (layout 5 and
|
||||
schema 23 as they were): rows named `<feature> · <member>`, the feature by NVIDIA's constant (`kFeatureDLSS_G`;
|
||||
`feature 4242` for an id this build has no name for), a version as `major.minor.build`, the requirement flags by
|
||||
their enumerators. A version of all zeros is the vendor's "none" and has no row — a feature with no NGX model, a
|
||||
requirement nobody stated — except `versionSL`; a count of 0 is a count. One bit of the mask covers both
|
||||
questions, so which was answered is told by the slots (`InGameAdvancedSampler.FeatureCall`), and
|
||||
`AdvancedSources.StreamlineFeatureVersion` and `.StreamlineFeatureRequirements` say for each: `Read`;
|
||||
`NeverCalled` — hooked, and the game did not ask after that, **the usual case, because a game asks while it
|
||||
starts**, and the page words it so; or `NotHooked`. The slots are not emptied by a new request, so a second
|
||||
session of a game that kept running stores what the first one read. `sl.init.preferences` stays unread (D112).
|
||||
- **D113 — three releases, because a new patch site cannot be proven in CI.** A crash in a game under the user-mode
|
||||
anti-cheat exception's trial ends that exception for good (D38), and every release already means restarting the
|
||||
game. **beta.40**: more fields of calls *already* hooked — `sl::DLSSOptions` where the game chains it into
|
||||
@@ -819,6 +831,9 @@ planning, the design reviewed against the code before it was approved.
|
||||
- **What will read N/A, and says why.** Many titles set their DLSS options through `slDLSSSetOptions`, which is not
|
||||
an export (train D), so `sl.dlss.*` is filled only for a title that passes its options with the evaluate call.
|
||||
`slGetFeatureVersion` and `slGetFeatureRequirements` are calls a game makes while starting.
|
||||
- **Privacy Policy 2.18** at beta.44 (approved with that release's plan): 2.17 named two further calls and what
|
||||
they give; Streamline's answers about a feature are in neither list, so they are named, with what of the answer
|
||||
is never read — the lists it points to.
|
||||
- **Privacy Policy 2.17** at beta.43 (approved with that release's plan): 2.16 listed DLSS's and FSR's upscaling
|
||||
parameters by name, and Streamline's per-frame constants and the frame-generation configuration are in neither
|
||||
list, so they are named — and §4 says the two calls are intercepted only once a session with the option on has
|
||||
@@ -1014,8 +1029,8 @@ that is not built — Train B), `Spike` (Trains C and D), `Refused`, `Deferred`,
|
||||
| `sl.constants.projection` | Field of view, aspect ratio, orthographic or not | SessionFact | Streamline | Game | Table |
|
||||
| `sl.constants.resets` | How often the game reset the upscaler's history | SessionFact | Streamline | Game | Count |
|
||||
| `ffx.framegen.config` | The game's FSR frame-generation configuration | SessionFact | FidelityFx | Game | Table |
|
||||
| `sl.feature.versions` | Each Streamline feature's version and its NGX model version | SessionFact | Streamline | NewHook | Table |
|
||||
| `sl.feature.requirements` | What each Streamline feature requires: operating system, driver, buffers | SessionFact | Streamline | NewHook | Table |
|
||||
| `sl.feature.versions` | Each Streamline feature's version and its NGX model version | SessionFact | Streamline | Game | Table |
|
||||
| `sl.feature.requirements` | What each Streamline feature requires: operating system, driver, buffers | SessionFact | Streamline | Game | Table |
|
||||
| `sl.init.preferences` | The preferences the game started Streamline with | SessionFact | Streamline | NewHook | Text |
|
||||
| `sl.constants.camera` | Camera position, axes and matrices | SessionFact | Streamline | PlayerState | Text |
|
||||
|
||||
|
||||
@@ -63,6 +63,23 @@ are kept because they record what each version changed and why (owner decision D
|
||||
>
|
||||
> Version 2.5 (2026-09-27, 0.1.0-beta.10) adds how a tracked game's window is shown — read from Windows — and the engine build name read from an Unreal Engine game's executable. It is also the first version to say two things the software already did: it reads the **content** of a library game's executable (markers in its first 8 MB and its import table, since the detection of engines and features; and, when a session starts, the graphics-library markers in the whole file), and it reads the processor load and the memory in use (since 0.1.0-beta.3). Nothing here leaves your device, as before.
|
||||
|
||||
### What version 2.18 of the Privacy Policy changed (0.1.0-beta.44)
|
||||
|
||||
**Two more calls read inside the game, only while Advanced metrics is on** (train B's third step, owner decisions
|
||||
D126–D128 beside it; the wording approved with the plan of 0.1.0-beta.44). Version 2.17 named Streamline's per-frame
|
||||
constants and the frame-generation configuration, and "two further calls"; this release reads what Streamline
|
||||
**answers** when the game asks about a feature, which is in neither list, so the version moves. §1's item on
|
||||
Advanced metrics gains **which features the game asked about, the version of each and of its NGX model, and what
|
||||
each requires** — the graphics APIs it supports, whether V-Sync must be off and hardware-accelerated GPU scheduling
|
||||
on, how many processor threads, viewports and buffers, and the versions of Windows and of the graphics driver that
|
||||
Streamline found beside the ones the feature needs. It also says what of that answer is never read: **the lists it
|
||||
points to** — the buffers' names, the names of Vulkan extensions and features — which a check in the build holds
|
||||
(the count of required buffers is read; its list is not). §4's "two further calls" is four, and its list of what is
|
||||
stored names the versions and requirements. The versions of Windows and of the driver are the ones Streamline
|
||||
reports to the game; FrameLedger already stores the driver's version with a session's hardware. The accuracy
|
||||
block's item says what these are — Streamline's answers, not a check of the PC — and that a game asks while it
|
||||
starts, so most sessions have none. The Disclaimer stays 2.15. §2 is unchanged: nothing is sent.
|
||||
|
||||
### What version 2.17 of the Privacy Policy changed (0.1.0-beta.43)
|
||||
|
||||
**Two more calls read inside the game, only while Advanced metrics is on** (train B's second step, owner decisions
|
||||
|
||||
@@ -55,11 +55,20 @@ also keeps what the game itself handed to DLSS and FSR:
|
||||
in. A setting the game changed during the session reads *on and off*. This is what the game **asked for**; how
|
||||
many frames were generated is in the session's summary, as before.
|
||||
|
||||
- **Streamline's features** (since 0.1.0-beta.44) — what Streamline answered when the game asked about a feature:
|
||||
which version it is (Streamline's own, and the DLSS model's), and what it requires — the graphics APIs it works
|
||||
with, whether V-Sync must be off, whether hardware-accelerated GPU scheduling must be on, how many threads,
|
||||
viewports and buffers, and the Windows and driver versions Streamline found beside the ones the feature needs.
|
||||
The features carry NVIDIA's own names: `kFeatureDLSS` is DLSS, `kFeatureDLSS_G` DLSS frame generation,
|
||||
`kFeatureDLSS_RR` ray reconstruction, `kFeatureReflex` Reflex. **A game asks these while it starts**, usually
|
||||
before FrameLedger is in it, so most sessions show none and the line under the session says *hooked — the game
|
||||
asks this while it starts, and did not ask again*.
|
||||
|
||||
These are the game's own words to the upscaler, shown in the vendor's notation (`preExposure`, preset `K`).
|
||||
FrameLedger does not check what the upscaler did with them.
|
||||
|
||||
The last two are read from calls FrameLedger hooks **only for Advanced metrics**: in a game where no session has
|
||||
been recorded with the option on since it started, those two hooks are not there. The line under the session says,
|
||||
The last three are read from calls FrameLedger hooks **only for Advanced metrics** — four calls in all: in a game
|
||||
where no session has been recorded with the option on since it started, those hooks are not there. The line under the session says,
|
||||
for each of the two, whether it was *read*, *hooked — the game did not make the call*, or *not hooked — the game did
|
||||
not load the library that has the call*.
|
||||
|
||||
|
||||
+5
-1
@@ -116,7 +116,11 @@
|
||||
> later through AMD's own library. Since beta.43 also what a game tells NVIDIA Streamline about each frame (jitter,
|
||||
> motion-vector scale, depth range, field-of-view range, how often it reset the upscaler's history — for the first
|
||||
> viewport that called, where a game has several) and how it configures FSR frame generation (the settings it asked
|
||||
> for, not whether frames were generated). FSR's upscaling values, Streamline's constants (three games) and the
|
||||
> for, not whether frames were generated). Since beta.44 also what Streamline answers when a game asks about a
|
||||
> feature — its version, and what it requires (graphics APIs, V-Sync, GPU scheduling, Windows and driver versions):
|
||||
> Streamline's answer as the game received it, not a check of the PC, and a game asks while it starts, so a
|
||||
> session that attached later usually has none and says so. FSR's upscaling values, Streamline's constants (three
|
||||
> games) and the
|
||||
> frame-generation configuration (one game) have been read from real games; the DLSS options have not been
|
||||
> confirmed on one yet. A game may give a value in a unit of its own: one gives Streamline its field of view in
|
||||
> degrees, and it is shown as given.
|
||||
|
||||
+5
-1
@@ -225,7 +225,11 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
|
||||
> later through AMD's own library. Since beta.43 also what a game tells NVIDIA Streamline about each frame (jitter,
|
||||
> motion-vector scale, depth range, field-of-view range, how often it reset the upscaler's history — for the first
|
||||
> viewport that called, where a game has several) and how it configures FSR frame generation (the settings it asked
|
||||
> for, not whether frames were generated). FSR's upscaling values, Streamline's constants (three games) and the
|
||||
> for, not whether frames were generated). Since beta.44 also what Streamline answers when a game asks about a
|
||||
> feature — its version, and what it requires (graphics APIs, V-Sync, GPU scheduling, Windows and driver versions):
|
||||
> Streamline's answer as the game received it, not a check of the PC, and a game asks while it starts, so a
|
||||
> session that attached later usually has none and says so. FSR's upscaling values, Streamline's constants (three
|
||||
> games) and the
|
||||
> frame-generation configuration (one game) have been read from real games; the DLSS options have not been
|
||||
> confirmed on one yet. A game may give a value in a unit of its own: one gives Streamline its field of view in
|
||||
> degrees, and it is shown as given.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# FrameLedger — Privacy Policy
|
||||
|
||||
**Version:** 2.17 · **Effective:** {{RELEASE_DATE}}
|
||||
**Version:** 2.18 · **Effective:** {{RELEASE_DATE}}
|
||||
|
||||
**Short version: everything stays on your PC. FrameLedger has no accounts, no telemetry, no analytics, and never uploads your data anywhere.**
|
||||
|
||||
@@ -11,7 +11,7 @@ Stored in `%LOCALAPPDATA%\FrameLedger` on your device:
|
||||
- Your game library entries (names, executable paths, metadata you or the app filled in, and whether each one is recorded).
|
||||
- Images you choose for a game (Edit…), copied into the `covers` folder; choosing the store's image again, or removing the game together with its sessions, deletes the copy. Artwork a store's app keeps on your PC, or a game ships in its own folder, is shown from where it is and not copied.
|
||||
- Performance sessions: frame timing series, computed statistics, hardware sensor series (temperatures, load, power, memory usage, and the graphics card's clock speeds, fan speed, memory temperature and whether its power limit or heat held it back), the game's own memory use (its dedicated and shared video memory, private working set, working set and commit, once a second), session duration, crash flags, the graphics driver's settings the game ran under (NVIDIA only), how the game's window was shown (full-screen, borderless or windowed, for how long, its size and the monitor's), tags and notes you write.
|
||||
- **Only while Settings ▸ Advanced metrics is on** (it is off unless you switch it on), with each session: more hardware sensor series — the graphics card's memory use in detail, its load by part, its clocks, voltages, currents, power, each fan and its video encoder's use; and, when the capture agent runs as administrator with PawnIO installed, the processor's temperatures, load, clocks, power and voltages by core, the memory in use and its modules' temperatures, and the motherboard's temperatures, fans and voltages — and a description of the hardware: the graphics card's firmware version, architecture, bus and memory sizes, the graphics driver's package and the chipset it names, the motherboard's and the memory modules' model names, what each connected display can do (the HDR formats it accepts, its brightness range, variable refresh), whether variable refresh was in use on the display the game ran on and the colour space the game presented in, and the graphics driver's settings — its global ones and the ones it holds for the game (NVIDIA only). For a game FrameLedger injects into, a session then also stores what the game itself passed to its upscaler in the calls FrameLedger intercepts: the output size, the model presets and the exposure values it gave DLSS, whether it said its colour buffers are HDR, auto-exposure and alpha upscaling; and the sharpening, the size of the jitter, the exposure, the depth range, the lowest and highest field of view and the flags it gave FSR, the frame time it reported to FSR, and FSR's own video memory when the game asked for it; what the game told NVIDIA Streamline about each frame — the size of the jitter, the motion-vector scale, the depth range and whether depth is inverted, the lowest and highest field of view, the aspect ratio, whether the projection is orthographic, how its motion vectors are stored and how often it reset the upscaler's history; and how it configured FSR frame generation — on or off, whether it may run asynchronously, its flags, whether only generated frames are presented, and the rectangle it generates in — never where the game's camera is, which way it looks, or its matrices. No serial number, no display identification data (EDID) and no list of other programs is read or stored. Switching the option off stops the reading, inside a game as well; what earlier sessions stored stays with them until you delete those sessions.
|
||||
- **Only while Settings ▸ Advanced metrics is on** (it is off unless you switch it on), with each session: more hardware sensor series — the graphics card's memory use in detail, its load by part, its clocks, voltages, currents, power, each fan and its video encoder's use; and, when the capture agent runs as administrator with PawnIO installed, the processor's temperatures, load, clocks, power and voltages by core, the memory in use and its modules' temperatures, and the motherboard's temperatures, fans and voltages — and a description of the hardware: the graphics card's firmware version, architecture, bus and memory sizes, the graphics driver's package and the chipset it names, the motherboard's and the memory modules' model names, what each connected display can do (the HDR formats it accepts, its brightness range, variable refresh), whether variable refresh was in use on the display the game ran on and the colour space the game presented in, and the graphics driver's settings — its global ones and the ones it holds for the game (NVIDIA only). For a game FrameLedger injects into, a session then also stores what the game itself passed to its upscaler in the calls FrameLedger intercepts: the output size, the model presets and the exposure values it gave DLSS, whether it said its colour buffers are HDR, auto-exposure and alpha upscaling; and the sharpening, the size of the jitter, the exposure, the depth range, the lowest and highest field of view and the flags it gave FSR, the frame time it reported to FSR, and FSR's own video memory when the game asked for it; what the game told NVIDIA Streamline about each frame — the size of the jitter, the motion-vector scale, the depth range and whether depth is inverted, the lowest and highest field of view, the aspect ratio, whether the projection is orthographic, how its motion vectors are stored and how often it reset the upscaler's history; and how it configured FSR frame generation — on or off, whether it may run asynchronously, its flags, whether only generated frames are presented, and the rectangle it generates in; and what NVIDIA Streamline answered when the game asked it about a feature — which features the game asked about, the version of each and of its NGX model, and what each requires: the graphics APIs it supports, whether V-Sync must be off and hardware-accelerated GPU scheduling on, how many processor threads, viewports and buffers, and the versions of Windows and of the graphics driver that Streamline found beside the ones the feature needs — never the lists that answer points to (the buffers' names, the names of Vulkan extensions and features), and never where the game's camera is, which way it looks, or its matrices. No serial number, no display identification data (EDID) and no list of other programs is read or stored. Switching the option off stops the reading, inside a game as well; what earlier sessions stored stays with them until you delete those sessions.
|
||||
- A hardware snapshot per session (CPU/GPU model, driver version, RAM size, OS build, display mode) used for the "what changed between sessions" feature.
|
||||
- App settings, logs (rotated daily — the app keeps 7 days, the capture agent 14 — including the logs written by the component loaded into games), and, after a crash of the app itself, crash dump files.
|
||||
- Which games you enabled code injection for, and when you consented.
|
||||
@@ -43,7 +43,7 @@ An exported session (CSV or JSON) and a bug report can contain your games' names
|
||||
|
||||
## 4. What the app can technically observe
|
||||
|
||||
To do its job, FrameLedger observes: which of *your tracked* executables — the entries in your library whose recording is on — are running, and their process trees; whether a game you enabled hooking for runs in an app container, and which of Windows' code-protection settings it runs under (for example, accepting only Microsoft-signed code), read from Windows before any injection; the parameters your games pass to the graphics APIs it intercepts (presentation, upscaling, ray tracing, pipeline creation) — and, only while Advanced metrics is on, more of the parameters of the upscaling calls, and the parameters of two further calls it begins to intercept in a game only once a session with that option on has started there (the constants the game gives NVIDIA Streamline for each frame, and the game's configuration of FSR frame generation), which are then stored with the session (sizes, presets, exposure, sharpening, the jitter's size, the motion-vector scale, the depth range, the range of the field of view, flags, the reported frame time, the upscaler's own memory, how frame generation is configured), never the camera's position, direction or matrices; the memory use of a tracked game's process — its dedicated and shared video memory, from Windows' GPU performance counters, and its working sets and commit, from Windows' process-memory information, for which a game it does not inject into is opened with the least access Windows offers and closed again (never its memory's content); loaded module names of a game being captured, the version information of its upscaling, frame-generation and neural-rendering libraries, and whether each was loaded from the game's folder or from the graphics driver's own copy (for detection and for the anti-cheat safety check); the names of the files in each library game's install folder, the version information of its executable and of the upscaling and neural-rendering libraries it ships, the content of its executable file (the markers of the engine and of the graphics libraries it carries, the libraries it imports, and the engine build name an Unreal Engine game carries), the version marks an engine keeps in its own files (Unity's player library and the header of its data file, the header of a Godot data pack, an RPG Maker game's title, core script and Game.ini, the library Game.ini names, and the version file of a Ren'Py game's engine), and the store files that name it (Steam's and GOG's, on your disk) and, for a game the Xbox app or the Microsoft Store installed, the package files in its install folder that describe it (`MicrosoftGame.config` and `appxmanifest.xml`) — to detect its engine, its engine version and its features and to check it for anti-cheat before any injection is possible; the lists of installed games that the Steam, GOG GALAXY, Epic Games and itch apps keep on your disk, and where GOG GALAXY is installed, the folders the Xbox app installs games into on each drive (named by the `.GamingRoot` file at the drive's root) with each game's package files, and Windows' answer to whether that game's package is installed for you — read when you import your library and when you press Play, to find the store that installed a game and hand the game to that store's app — Steam's and GOG GALAXY's also when you open a game's page, to find the artwork their apps keep for it; the cover and banner images that the Steam and GOG GALAXY apps keep on your disk for a game in your library and the logo and splash-screen images a game from the Xbox app ships in its own folder — read to show them on its page, never copied or sent anywhere; the size, position and state of a tracked game's window and the monitor it is on, read from Windows and not from the game, and — for a game FrameLedger injects into — whether the game asked for exclusive full-screen; the NVIDIA driver's settings for your tracked executables (read only: the DLSS and frame-generation overrides the NVIDIA App set); hardware sensor values from your graphics driver's own libraries; and — only while Advanced metrics is on — that driver's description of the graphics card and of each connected display, what it reports about the display a tracked game's window is on, its settings for a tracked game and its global ones (read only), and, when the capture agent runs as administrator with PawnIO installed, the sensors and model names of the processor, the memory and the motherboard (never a drive's), all of which are also read with no game running while the Advanced page is open, to show them there, and are not stored then; how busy the processor is and how much memory is in use, from Windows' own counters; the crash reports Windows keeps in its Application log about a tracked game's executable while it ran (to tell a crash from an ordinary exit — the reports are read, never sent anywhere); and the names of the programs a tracked game starts, so that a game's own crash reporter is recognised.
|
||||
To do its job, FrameLedger observes: which of *your tracked* executables — the entries in your library whose recording is on — are running, and their process trees; whether a game you enabled hooking for runs in an app container, and which of Windows' code-protection settings it runs under (for example, accepting only Microsoft-signed code), read from Windows before any injection; the parameters your games pass to the graphics APIs it intercepts (presentation, upscaling, ray tracing, pipeline creation) — and, only while Advanced metrics is on, more of the parameters of the upscaling calls, and the parameters of four further calls it begins to intercept in a game only once a session with that option on has started there (the constants the game gives NVIDIA Streamline for each frame, the game's configuration of FSR frame generation, and Streamline's answers to the game's two questions about a feature — which version it is, and what it requires), which are then stored with the session (sizes, presets, exposure, sharpening, the jitter's size, the motion-vector scale, the depth range, the range of the field of view, flags, the reported frame time, the upscaler's own memory, how frame generation is configured, the versions and requirements of Streamline's features), never the camera's position, direction or matrices; the memory use of a tracked game's process — its dedicated and shared video memory, from Windows' GPU performance counters, and its working sets and commit, from Windows' process-memory information, for which a game it does not inject into is opened with the least access Windows offers and closed again (never its memory's content); loaded module names of a game being captured, the version information of its upscaling, frame-generation and neural-rendering libraries, and whether each was loaded from the game's folder or from the graphics driver's own copy (for detection and for the anti-cheat safety check); the names of the files in each library game's install folder, the version information of its executable and of the upscaling and neural-rendering libraries it ships, the content of its executable file (the markers of the engine and of the graphics libraries it carries, the libraries it imports, and the engine build name an Unreal Engine game carries), the version marks an engine keeps in its own files (Unity's player library and the header of its data file, the header of a Godot data pack, an RPG Maker game's title, core script and Game.ini, the library Game.ini names, and the version file of a Ren'Py game's engine), and the store files that name it (Steam's and GOG's, on your disk) and, for a game the Xbox app or the Microsoft Store installed, the package files in its install folder that describe it (`MicrosoftGame.config` and `appxmanifest.xml`) — to detect its engine, its engine version and its features and to check it for anti-cheat before any injection is possible; the lists of installed games that the Steam, GOG GALAXY, Epic Games and itch apps keep on your disk, and where GOG GALAXY is installed, the folders the Xbox app installs games into on each drive (named by the `.GamingRoot` file at the drive's root) with each game's package files, and Windows' answer to whether that game's package is installed for you — read when you import your library and when you press Play, to find the store that installed a game and hand the game to that store's app — Steam's and GOG GALAXY's also when you open a game's page, to find the artwork their apps keep for it; the cover and banner images that the Steam and GOG GALAXY apps keep on your disk for a game in your library and the logo and splash-screen images a game from the Xbox app ships in its own folder — read to show them on its page, never copied or sent anywhere; the size, position and state of a tracked game's window and the monitor it is on, read from Windows and not from the game, and — for a game FrameLedger injects into — whether the game asked for exclusive full-screen; the NVIDIA driver's settings for your tracked executables (read only: the DLSS and frame-generation overrides the NVIDIA App set); hardware sensor values from your graphics driver's own libraries; and — only while Advanced metrics is on — that driver's description of the graphics card and of each connected display, what it reports about the display a tracked game's window is on, its settings for a tracked game and its global ones (read only), and, when the capture agent runs as administrator with PawnIO installed, the sensors and model names of the processor, the memory and the motherboard (never a drive's), all of which are also read with no game running while the Advanced page is open, to show them there, and are not stored then; how busy the processor is and how much memory is in use, from Windows' own counters; the crash reports Windows keeps in its Application log about a tracked game's executable while it ran (to tell a crash from an ordinary exit Line truncated
|
||||
|
||||
It does **not** read game memory outside those API parameters, and does not read game saves, chat, input content, network traffic, or anything unrelated to performance measurement. It records only for programs you added to your library and did not switch recording off for — a program whose recording is off is not watched at all — and injects only into games you individually enabled.
|
||||
|
||||
|
||||
Generated
+6
@@ -261,6 +261,7 @@ public static class Strings
|
||||
nameof(Advanced_Facts_Header),
|
||||
nameof(Advanced_Header),
|
||||
nameof(Advanced_InGameCallsLine),
|
||||
nameof(Advanced_InGameFeatureCallsLine),
|
||||
nameof(Advanced_InGameLine),
|
||||
nameof(Advanced_Machine_Intro),
|
||||
nameof(Advanced_Max),
|
||||
@@ -304,6 +305,7 @@ public static class Strings
|
||||
nameof(AdvInGame_Reading),
|
||||
nameof(AdvInGame_Unknown),
|
||||
nameof(AdvInGameCall_NeverCalled),
|
||||
nameof(AdvInGameCall_NotAskedAgain),
|
||||
nameof(AdvInGameCall_NotHooked),
|
||||
nameof(AdvInGameCall_Read),
|
||||
nameof(AdvInGameCall_Unknown),
|
||||
@@ -1996,6 +1998,8 @@ public static class Strings
|
||||
|
||||
public static string Advanced_InGameCallsLine => ResourceManager.GetString(nameof(Advanced_InGameCallsLine), Culture) ?? nameof(Advanced_InGameCallsLine);
|
||||
|
||||
public static string Advanced_InGameFeatureCallsLine => ResourceManager.GetString(nameof(Advanced_InGameFeatureCallsLine), Culture) ?? nameof(Advanced_InGameFeatureCallsLine);
|
||||
|
||||
public static string Advanced_InGameLine => ResourceManager.GetString(nameof(Advanced_InGameLine), Culture) ?? nameof(Advanced_InGameLine);
|
||||
|
||||
public static string Advanced_Machine_Intro => ResourceManager.GetString(nameof(Advanced_Machine_Intro), Culture) ?? nameof(Advanced_Machine_Intro);
|
||||
@@ -2082,6 +2086,8 @@ public static class Strings
|
||||
|
||||
public static string AdvInGameCall_NeverCalled => ResourceManager.GetString(nameof(AdvInGameCall_NeverCalled), Culture) ?? nameof(AdvInGameCall_NeverCalled);
|
||||
|
||||
public static string AdvInGameCall_NotAskedAgain => ResourceManager.GetString(nameof(AdvInGameCall_NotAskedAgain), Culture) ?? nameof(AdvInGameCall_NotAskedAgain);
|
||||
|
||||
public static string AdvInGameCall_NotHooked => ResourceManager.GetString(nameof(AdvInGameCall_NotHooked), Culture) ?? nameof(AdvInGameCall_NotHooked);
|
||||
|
||||
public static string AdvInGameCall_Read => ResourceManager.GetString(nameof(AdvInGameCall_Read), Culture) ?? nameof(AdvInGameCall_Read);
|
||||
|
||||
@@ -657,6 +657,10 @@
|
||||
<value>ゲームが毎フレーム Streamline に伝える内容: {0}。FSR フレーム生成の設定方法: {1}。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Advanced_InGameFeatureCallsLine" xml:space="preserve">
|
||||
<value>各 Streamline 機能のバージョン: {0}。各機能の要件: {1}。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Advanced_InGameLine" xml:space="preserve">
|
||||
<value>ゲーム内: {0}。</value>
|
||||
<comment>review</comment>
|
||||
@@ -829,6 +833,10 @@
|
||||
<value>フック済み - ゲームはこの呼び出しを行いませんでした</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvInGameCall_NotAskedAgain" xml:space="preserve">
|
||||
<value>フック済み - ゲームは起動時にこれを問い合わせ、FrameLedger の接続後は再度問い合わせませんでした</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvInGameCall_NotHooked" xml:space="preserve">
|
||||
<value>未フック - この呼び出しを持つライブラリをゲームが読み込みませんでした</value>
|
||||
<comment>review</comment>
|
||||
|
||||
@@ -498,6 +498,9 @@
|
||||
<data name="Advanced_InGameCallsLine" xml:space="preserve">
|
||||
<value>What the game tells Streamline each frame: {0}. How it configures FSR frame generation: {1}.</value>
|
||||
</data>
|
||||
<data name="Advanced_InGameFeatureCallsLine" xml:space="preserve">
|
||||
<value>Which version each Streamline feature is: {0}. What each requires: {1}.</value>
|
||||
</data>
|
||||
<data name="Advanced_InGameLine" xml:space="preserve">
|
||||
<value>Inside the game: {0}.</value>
|
||||
</data>
|
||||
@@ -627,6 +630,9 @@
|
||||
<data name="AdvInGameCall_NeverCalled" xml:space="preserve">
|
||||
<value>hooked - the game did not make the call</value>
|
||||
</data>
|
||||
<data name="AdvInGameCall_NotAskedAgain" xml:space="preserve">
|
||||
<value>hooked - the game asks this while it starts, and did not ask again after FrameLedger attached</value>
|
||||
</data>
|
||||
<data name="AdvInGameCall_NotHooked" xml:space="preserve">
|
||||
<value>not hooked - the game did not load the library that has the call</value>
|
||||
</data>
|
||||
|
||||
@@ -493,6 +493,9 @@
|
||||
<data name="Advanced_InGameCallsLine" xml:space="preserve">
|
||||
<value>Những gì game báo cho Streamline mỗi khung hình: {0}. Cách game cấu hình frame generation của FSR: {1}.</value>
|
||||
</data>
|
||||
<data name="Advanced_InGameFeatureCallsLine" xml:space="preserve">
|
||||
<value>Mỗi tính năng Streamline là phiên bản nào: {0}. Mỗi tính năng cần gì: {1}.</value>
|
||||
</data>
|
||||
<data name="Advanced_InGameLine" xml:space="preserve">
|
||||
<value>Bên trong game: {0}.</value>
|
||||
</data>
|
||||
@@ -622,6 +625,9 @@
|
||||
<data name="AdvInGameCall_NeverCalled" xml:space="preserve">
|
||||
<value>đã hook - game không thực hiện lời gọi</value>
|
||||
</data>
|
||||
<data name="AdvInGameCall_NotAskedAgain" xml:space="preserve">
|
||||
<value>đã hook - game hỏi điều này lúc khởi động và không hỏi lại sau khi FrameLedger gắn vào</value>
|
||||
</data>
|
||||
<data name="AdvInGameCall_NotHooked" xml:space="preserve">
|
||||
<value>chưa hook - game không nạp thư viện chứa lời gọi này</value>
|
||||
</data>
|
||||
|
||||
@@ -53,6 +53,13 @@ public static class AdvancedLabels
|
||||
/// <summary>What became of one call hooked only for Advanced metrics, in a session (0.1.0-beta.43).</summary>
|
||||
public static string InGameCall(AdvancedInGameCall call) => Lookup("AdvInGameCall_" + call) ?? call.ToString();
|
||||
|
||||
/// <summary>
|
||||
/// The same for a call a game makes while it starts (0.1.0-beta.44): hooked and not seen is then "the game did not
|
||||
/// ask again after FrameLedger attached" - the usual case, and not a finding about the game.
|
||||
/// </summary>
|
||||
public static string InGameStartupCall(AdvancedInGameCall call) =>
|
||||
call == AdvancedInGameCall.NeverCalled ? Strings.AdvInGameCall_NotAskedAgain : InGameCall(call);
|
||||
|
||||
/// <summary>A token the driver's answer was mapped to; the token itself where this build has no word for it.</summary>
|
||||
public static string Token(string token) => Lookup("AdvToken_" + token) ?? token;
|
||||
|
||||
|
||||
@@ -205,6 +205,17 @@ public static class AdvancedPresenter
|
||||
AdvancedLabels.InGameCall(frameGeneration));
|
||||
}
|
||||
|
||||
// The two questions about a feature (0.1.0-beta.44), worded for calls a game makes while it starts. A row
|
||||
// stored before carries neither.
|
||||
if (sources.StreamlineFeatureVersion is { } version && sources.StreamlineFeatureRequirements is { } requirements)
|
||||
{
|
||||
line += " " + string.Format(
|
||||
CultureInfo.CurrentCulture,
|
||||
Strings.Advanced_InGameFeatureCallsLine,
|
||||
AdvancedLabels.InGameStartupCall(version),
|
||||
AdvancedLabels.InGameStartupCall(requirements));
|
||||
}
|
||||
|
||||
return line;
|
||||
}
|
||||
|
||||
|
||||
@@ -170,9 +170,11 @@ public static class AdvancedMetricCatalog
|
||||
Session("sl.constants.resets", Streamline, Game, Count, Upscaling, "How often the game reset the upscaler's history"),
|
||||
Session("ffx.framegen.config", FidelityFx, Game, Table, FrameGeneration, "The game's FSR frame-generation configuration"),
|
||||
|
||||
// ---- Inside the game: two more hooks of their own (0.1.0-beta.44) - what Streamline answers about a feature
|
||||
Session("sl.feature.versions", Streamline, Game, Table, Upscaling, "Each Streamline feature's version and its NGX model version"),
|
||||
Session("sl.feature.requirements", Streamline, Game, Table, Upscaling, "What each Streamline feature requires: operating system, driver, buffers"),
|
||||
|
||||
// ---- Inside the game: hooks that are not built ----------------------------------------------------------
|
||||
Session("sl.feature.versions", Streamline, NewHook, Table, Upscaling, "Each Streamline feature's version and its NGX model version"),
|
||||
Session("sl.feature.requirements", Streamline, NewHook, Table, Upscaling, "What each Streamline feature requires: operating system, driver, buffers"),
|
||||
Session("sl.init.preferences", Streamline, NewHook, Text, Upscaling, "The preferences the game started Streamline with"),
|
||||
Session("sl.constants.camera", Streamline, PlayerState, Text, Upscaling, "Camera position, axes and matrices"),
|
||||
|
||||
|
||||
@@ -32,6 +32,16 @@ public sealed record AdvancedSources(
|
||||
/// <summary>The same for how the game configures FSR frame generation (<c>ffxConfigure</c>, <c>ffx.framegen.config</c>).</summary>
|
||||
public AdvancedInGameCall? FsrFrameGeneration { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The same for which version each Streamline feature is (<c>slGetFeatureVersion</c>, <c>sl.feature.versions</c>;
|
||||
/// 0.1.0-beta.44). A game asks while it starts: <see cref="AdvancedInGameCall.NeverCalled"/> is what a session
|
||||
/// attached after that says, and it means "not asked again", not "never asked".
|
||||
/// </summary>
|
||||
public AdvancedInGameCall? StreamlineFeatureVersion { get; init; }
|
||||
|
||||
/// <summary>The same for what each feature requires (<c>slGetFeatureRequirements</c>, <c>sl.feature.requirements</c>).</summary>
|
||||
public AdvancedInGameCall? StreamlineFeatureRequirements { get; init; }
|
||||
|
||||
/// <summary>Nothing asked yet.</summary>
|
||||
public static AdvancedSources Unknown { get; } = new(AdvancedSourceStatus.Unknown, NvapiCode: null, AdvancedSourceStatus.Unknown, AdvancedSourceStatus.Unknown);
|
||||
}
|
||||
@@ -48,6 +48,12 @@ public sealed class InGameAdvancedSampler
|
||||
// FfxApiDispatchUpscaleFlags (ffx_upscale.h), by bit.
|
||||
private static readonly string[] _flagTokens = ["draw_debug_view", "non_linear_color_srgb", "non_linear_color_pq"];
|
||||
|
||||
// sl::FeatureRequirementFlags (sl_core_types.h), by bit: the vendor's own names, shown as they are.
|
||||
private static readonly string[] _requirementFlags =
|
||||
[
|
||||
"eD3D11Supported", "eD3D12Supported", "eVulkanSupported", "eVSyncOffRequired", "eHardwareSchedulingRequired",
|
||||
];
|
||||
|
||||
// FfxApiDispatchFramegenerationFlags (ffx_framegeneration.h), by bit: the vendor's own names, shown as they are.
|
||||
private static readonly string[] _frameGenerationFlags =
|
||||
[
|
||||
@@ -66,6 +72,7 @@ public sealed class InGameAdvancedSampler
|
||||
private FactKey _key;
|
||||
private uint _builtResets;
|
||||
private FlAdvancedValid _everValid;
|
||||
private uint _featureAnswers;
|
||||
|
||||
/// <summary>The session facts as of the last publication taken; empty until the game made a call they are read from.</summary>
|
||||
public IReadOnlyList<AdvancedFact> Facts { get; private set; } = [];
|
||||
@@ -85,6 +92,16 @@ public sealed class InGameAdvancedSampler
|
||||
public AdvancedInGameCall Call(FlAdvancedValid group, bool hookedIn) =>
|
||||
(_everValid & group) != FlAdvancedValid.None ? AdvancedInGameCall.Read : hookedIn ? AdvancedInGameCall.NeverCalled : AdvancedInGameCall.NotHooked;
|
||||
|
||||
/// <summary>
|
||||
/// The same for one of the two questions a game asks Streamline about a feature (0.1.0-beta.44; one bit of the
|
||||
/// mask covers both, so the question is told by what the slots carry): <paramref name="question"/> is
|
||||
/// <see cref="FlAdvancedState.FeatureVersionAnswered"/> or <see cref="FlAdvancedState.FeatureRequirementsAnswered"/>.
|
||||
/// A game asks while it starts, so <see cref="AdvancedInGameCall.NeverCalled"/> here is the usual answer of a
|
||||
/// session attached later, and the App words it that way.
|
||||
/// </summary>
|
||||
public AdvancedInGameCall FeatureCall(uint question, bool hookedIn) =>
|
||||
(_featureAnswers & question) != 0 ? AdvancedInGameCall.Read : hookedIn ? AdvancedInGameCall.NeverCalled : AdvancedInGameCall.NotHooked;
|
||||
|
||||
/// <summary>
|
||||
/// The session is ending: the facts are brought up to the last publication where they carry a COUNT. A count
|
||||
/// is not part of what decides a rebuild while the session runs - it would rewrite the session's context every
|
||||
@@ -121,6 +138,14 @@ public sealed class InGameAdvancedSampler
|
||||
|
||||
SawAnything = true;
|
||||
_everValid |= s.ValidMask;
|
||||
if (s.ValidMask.HasFlag(FlAdvancedValid.SlFeatures))
|
||||
{
|
||||
for (int slot = 0; slot < FlAdvancedState.FeatureSlots && s.FeatureWordAt(slot, 0) != 0; slot++)
|
||||
{
|
||||
_featureAnswers |= s.FeatureWordAt(slot, 1);
|
||||
}
|
||||
}
|
||||
|
||||
FactKey key = FactKey.Of(published);
|
||||
if (key != _key || Facts.Count == 0)
|
||||
{
|
||||
@@ -170,9 +195,108 @@ public sealed class InGameAdvancedSampler
|
||||
AddStreamlineConstants(published, facts);
|
||||
}
|
||||
|
||||
if (published.State.ValidMask.HasFlag(FlAdvancedValid.SlFeatures))
|
||||
{
|
||||
AddStreamlineFeatures(published, facts);
|
||||
}
|
||||
|
||||
return facts;
|
||||
}
|
||||
|
||||
// What Streamline answered when the game asked about a feature (slGetFeatureVersion, slGetFeatureRequirements;
|
||||
// 0.1.0-beta.44): a slot per feature in the order the game first asked, the vendor's own names throughout. A
|
||||
// version of all zeros is the vendor's "none" - a feature that uses no NGX model has no versionNGX, a requirement
|
||||
// nobody stated has no row - except versionSL, which an answer always carries. The counts are said as they are:
|
||||
// 0 threads is "it creates none".
|
||||
private static void AddStreamlineFeatures(InGameAdvanced published, List<AdvancedFact> facts)
|
||||
{
|
||||
ref readonly FlAdvancedState s = ref published.State;
|
||||
var versions = new List<AdvancedRow>(8);
|
||||
var requirements = new List<AdvancedRow>(16);
|
||||
for (int slot = 0; slot < FlAdvancedState.FeatureSlots; slot++)
|
||||
{
|
||||
uint id = s.FeatureWordAt(slot, 0);
|
||||
if (id == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
string feature = FeatureName(id - 1);
|
||||
uint answered = s.FeatureWordAt(slot, 1);
|
||||
if ((answered & FlAdvancedState.FeatureVersionAnswered) != 0)
|
||||
{
|
||||
versions.Add(new AdvancedRow(feature + " · versionSL", VersionText(published, slot, 2)));
|
||||
AddVersion(versions, feature, "versionNGX", published, slot, 5);
|
||||
}
|
||||
|
||||
if ((answered & FlAdvancedState.FeatureRequirementsAnswered) != 0)
|
||||
{
|
||||
uint flags = s.FeatureWordAt(slot, 8);
|
||||
var names = new List<string>(5);
|
||||
for (int bit = 0; bit < 32; bit++)
|
||||
{
|
||||
if ((flags & (1u << bit)) != 0)
|
||||
{
|
||||
names.Add(bit < _requirementFlags.Length ? _requirementFlags[bit] : string.Create(CultureInfo.InvariantCulture, $"bit {bit}"));
|
||||
}
|
||||
}
|
||||
|
||||
requirements.Add(names.Count == 0 ? new AdvancedRow(feature + " · flags", "none", "none") : new AdvancedRow(feature + " · flags", string.Join(", ", names)));
|
||||
requirements.Add(new AdvancedRow(feature + " · maxNumCPUThreads", s.FeatureWordAt(slot, 9).ToString(CultureInfo.InvariantCulture)));
|
||||
requirements.Add(new AdvancedRow(feature + " · maxNumViewports", s.FeatureWordAt(slot, 10).ToString(CultureInfo.InvariantCulture)));
|
||||
requirements.Add(new AdvancedRow(feature + " · numRequiredTags", s.FeatureWordAt(slot, 11).ToString(CultureInfo.InvariantCulture)));
|
||||
AddVersion(requirements, feature, "osVersionDetected", published, slot, 12);
|
||||
AddVersion(requirements, feature, "osVersionRequired", published, slot, 15);
|
||||
AddVersion(requirements, feature, "driverVersionDetected", published, slot, 18);
|
||||
AddVersion(requirements, feature, "driverVersionRequired", published, slot, 21);
|
||||
}
|
||||
}
|
||||
|
||||
if (versions.Count > 0)
|
||||
{
|
||||
facts.Add(Fact("sl.feature.versions", AdvancedValue.OfRows(versions)));
|
||||
}
|
||||
|
||||
if (requirements.Count > 0)
|
||||
{
|
||||
facts.Add(Fact("sl.feature.requirements", AdvancedValue.OfRows(requirements)));
|
||||
}
|
||||
}
|
||||
|
||||
private static string VersionText(InGameAdvanced published, int slot, int word)
|
||||
{
|
||||
ref readonly FlAdvancedState s = ref published.State;
|
||||
return string.Create(CultureInfo.InvariantCulture, $"{s.FeatureWordAt(slot, word)}.{s.FeatureWordAt(slot, word + 1)}.{s.FeatureWordAt(slot, word + 2)}");
|
||||
}
|
||||
|
||||
private static void AddVersion(List<AdvancedRow> rows, string feature, string member, InGameAdvanced published, int slot, int word)
|
||||
{
|
||||
ref readonly FlAdvancedState s = ref published.State;
|
||||
if ((s.FeatureWordAt(slot, word) | s.FeatureWordAt(slot, word + 1) | s.FeatureWordAt(slot, word + 2)) != 0)
|
||||
{
|
||||
rows.Add(new AdvancedRow(feature + " · " + member, VersionText(published, slot, word)));
|
||||
}
|
||||
}
|
||||
|
||||
// sl::Feature by the vendor's own constant (sl_core_types.h); an id this build has no name for is its number.
|
||||
private static string FeatureName(uint feature) => feature switch
|
||||
{
|
||||
0 => "kFeatureDLSS",
|
||||
1 => "kFeatureNRD_INVALID",
|
||||
2 => "kFeatureNIS",
|
||||
3 => "kFeatureReflex",
|
||||
4 => "kFeaturePCL",
|
||||
5 => "kFeatureDeepDVC",
|
||||
6 => "kFeatureLatewarp",
|
||||
1000 => "kFeatureDLSS_G",
|
||||
1001 => "kFeatureDLSS_RR",
|
||||
1002 => "kFeatureNvPerf",
|
||||
1003 => "kFeatureDirectSR",
|
||||
1004 => "kFeatureDLSS_NR",
|
||||
9999 => "kFeatureImGUI",
|
||||
_ => string.Create(CultureInfo.InvariantCulture, $"feature {feature}"),
|
||||
};
|
||||
|
||||
// How the game configures FSR frame generation (ffxConfigure, 0.1.0-beta.43): three switches as seen over the
|
||||
// session, the flags any configure carried, and the last rectangle it generates in.
|
||||
private static void AddFrameGeneration(InGameAdvanced published, List<AdvancedFact> facts)
|
||||
@@ -501,7 +625,8 @@ public sealed class InGameAdvancedSampler
|
||||
ulong SlDepth,
|
||||
ulong SlFov,
|
||||
uint SlAspect,
|
||||
ulong SlFlags)
|
||||
ulong SlFlags,
|
||||
ulong SlFeatures)
|
||||
{
|
||||
public static FactKey Of(InGameAdvanced published)
|
||||
{
|
||||
@@ -513,7 +638,7 @@ public sealed class InGameAdvancedSampler
|
||||
}
|
||||
|
||||
return new FactKey(
|
||||
s.ValidMask & (FlAdvancedValid.DlssOptions | FlAdvancedValid.FfxUpscale | FlAdvancedValid.FfxFgConfig | FlAdvancedValid.SlConstants),
|
||||
s.ValidMask & (FlAdvancedValid.DlssOptions | FlAdvancedValid.FfxUpscale | FlAdvancedValid.FfxFgConfig | FlAdvancedValid.SlConstants | FlAdvancedValid.SlFeatures),
|
||||
s.DlssOutputWidth,
|
||||
s.DlssOutputHeight,
|
||||
s.DlssPreExposureBits,
|
||||
@@ -541,7 +666,30 @@ public sealed class InGameAdvancedSampler
|
||||
Pair(s.SlNearBits, s.SlFarBits),
|
||||
Pair(s.SlFovMinBits, s.SlFovMaxBits),
|
||||
s.SlAspectBits,
|
||||
Pair(s.SlFlagsSeenTrue, s.SlFlagsSeenFalse));
|
||||
Pair(s.SlFlagsSeenTrue, s.SlFlagsSeenFalse),
|
||||
FeaturesHash(published));
|
||||
}
|
||||
|
||||
// The feature slots as one number (FNV-1a over the words of the slots in use): an answer that arrives, or one
|
||||
// that changes, makes the facts new; 0 where the group was not published.
|
||||
private static ulong FeaturesHash(InGameAdvanced published)
|
||||
{
|
||||
ref readonly FlAdvancedState s = ref published.State;
|
||||
if (!s.ValidMask.HasFlag(FlAdvancedValid.SlFeatures))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
ulong hash = 14695981039346656037UL;
|
||||
for (int slot = 0; slot < FlAdvancedState.FeatureSlots && s.FeatureWordAt(slot, 0) != 0; slot++)
|
||||
{
|
||||
for (int word = 0; word < FlAdvancedState.FeatureWords; word++)
|
||||
{
|
||||
hash = (hash ^ s.FeatureWordAt(slot, word)) * 1099511628211UL;
|
||||
}
|
||||
}
|
||||
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Globalization;
|
||||
using System.Runtime.InteropServices;
|
||||
using FrameLedger.Application.Advanced;
|
||||
using FrameLedger.Application.Capture;
|
||||
using FrameLedger.Application.Persistence;
|
||||
@@ -191,8 +192,8 @@ public sealed class SessionRecorder : ISessionRecorder
|
||||
return DriverProfileRecord.Serialize(await read.WaitAsync(DriverProfileBudget).ConfigureAwait(false));
|
||||
}
|
||||
catch (Exception ex) when (ex is TimeoutException or InvalidOperationException or ArgumentException
|
||||
or System.Runtime.InteropServices.ExternalException or DllNotFoundException or EntryPointNotFoundException
|
||||
or BadImageFormatException or System.Runtime.InteropServices.MarshalDirectiveException)
|
||||
or ExternalException or DllNotFoundException or EntryPointNotFoundException
|
||||
or BadImageFormatException or MarshalDirectiveException)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -374,8 +375,8 @@ public sealed class SessionRecorder : ISessionRecorder
|
||||
// records Advanced metrics - the same condition the shared reader is held under.
|
||||
private readonly InGameAdvancedSampler? _inGame = advanced is null ? null : new InGameAdvancedSampler();
|
||||
private IReadOnlyList<AdvancedReading>? _inGamePending;
|
||||
private (IReadOnlyList<AdvancedFact> Facts, AdvancedInGameStatus Status, AdvancedInGameCall? Streamline, AdvancedInGameCall? FrameGeneration) _inGameContext =
|
||||
([], AdvancedInGameStatus.Unknown, null, null);
|
||||
private (IReadOnlyList<AdvancedFact> Facts, AdvancedInGameStatus Status, InGameCallStates Calls) _inGameContext =
|
||||
([], AdvancedInGameStatus.Unknown, default);
|
||||
private IReadOnlyList<AdvancedFact> _sessionWithGame = [];
|
||||
|
||||
/// <summary>A session that records Advanced metrics asks the Overlay for what the game tells its upscaler (D111).</summary>
|
||||
@@ -486,10 +487,9 @@ public sealed class SessionRecorder : ISessionRecorder
|
||||
IReadOnlyList<AdvancedFact>? session = _sessionFacts;
|
||||
IReadOnlyList<AdvancedFact> game = _inGame?.Facts ?? [];
|
||||
AdvancedInGameStatus status = InGameStatus();
|
||||
(AdvancedInGameCall? streamline, AdvancedInGameCall? frameGeneration) = InGameCalls();
|
||||
InGameCallStates calls = InGameCalls();
|
||||
(IReadOnlyList<AdvancedFact>?, IReadOnlyList<AdvancedSeriesInfo>?, AdvancedSources?, IReadOnlyList<AdvancedFact>?) now = (snapshot?.MachineFacts, snapshot?.Series, snapshot?.Sources, session);
|
||||
bool sameGame = ReferenceEquals(game, _inGameContext.Facts) && status == _inGameContext.Status
|
||||
&& streamline == _inGameContext.Streamline && frameGeneration == _inGameContext.FrameGeneration;
|
||||
bool sameGame = ReferenceEquals(game, _inGameContext.Facts) && status == _inGameContext.Status && calls == _inGameContext.Calls;
|
||||
if ((snapshot is null && session is null && game.Count == 0)
|
||||
|| (sameGame && ReferenceEquals(now.Item1, _context.Machine) && ReferenceEquals(now.Item2, _context.Series) && Equals(now.Item3, _context.Sources) && ReferenceEquals(now.Item4, _context.Session)))
|
||||
{
|
||||
@@ -503,33 +503,50 @@ public sealed class SessionRecorder : ISessionRecorder
|
||||
}
|
||||
|
||||
_context = now;
|
||||
_inGameContext = (game, status, streamline, frameGeneration);
|
||||
_inGameContext = (game, status, calls);
|
||||
writer.SetAdvancedContext(new AdvancedSessionData(
|
||||
snapshot?.MachineFacts ?? [],
|
||||
_sessionWithGame,
|
||||
snapshot?.Series ?? [],
|
||||
(snapshot?.Sources ?? AdvancedSources.Unknown) with { InGame = status, StreamlineConstants = streamline, FsrFrameGeneration = frameGeneration }));
|
||||
(snapshot?.Sources ?? AdvancedSources.Unknown) with
|
||||
{
|
||||
InGame = status,
|
||||
StreamlineConstants = calls.Streamline,
|
||||
FsrFrameGeneration = calls.FrameGeneration,
|
||||
StreamlineFeatureVersion = calls.FeatureVersion,
|
||||
StreamlineFeatureRequirements = calls.FeatureRequirements,
|
||||
}));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// What became of the two calls hooked only for Advanced metrics (0.1.0-beta.43), for a session measured
|
||||
/// inside the game: read, hooked and never called, or not hooked - from the hook families the capture side
|
||||
/// last published and from what its publications carried. Null for a session not measured inside the game:
|
||||
/// <see cref="AdvancedInGameStatus.NotHooked"/> already says so.
|
||||
/// What became of the calls hooked only for Advanced metrics (two since 0.1.0-beta.43, four since
|
||||
/// 0.1.0-beta.44), for a session measured inside the game: read, hooked and never called, or not hooked - from
|
||||
/// the hook families the capture side last published and from what its publications carried. All null for a
|
||||
/// session not measured inside the game: <see cref="AdvancedInGameStatus.NotHooked"/> already says so.
|
||||
/// </summary>
|
||||
private (AdvancedInGameCall? Streamline, AdvancedInGameCall? FrameGeneration) InGameCalls()
|
||||
private InGameCallStates InGameCalls()
|
||||
{
|
||||
if (_inGame is null || AttachedAt is null)
|
||||
{
|
||||
return (null, null);
|
||||
return default;
|
||||
}
|
||||
|
||||
var hooks = (FlHookFamily)(_last?.WriterState.HooksInstalledMask ?? 0u);
|
||||
return (
|
||||
return new InGameCallStates(
|
||||
_inGame.Call(FlAdvancedValid.SlConstants, hooks.HasFlag(FlHookFamily.SlConstants)),
|
||||
_inGame.Call(FlAdvancedValid.FfxFgConfig, hooks.HasFlag(FlHookFamily.FfxConfigure)));
|
||||
_inGame.Call(FlAdvancedValid.FfxFgConfig, hooks.HasFlag(FlHookFamily.FfxConfigure)),
|
||||
_inGame.FeatureCall(FlAdvancedState.FeatureVersionAnswered, hooks.HasFlag(FlHookFamily.SlFeatureVersion)),
|
||||
_inGame.FeatureCall(FlAdvancedState.FeatureRequirementsAnswered, hooks.HasFlag(FlHookFamily.SlFeatureRequirements)));
|
||||
}
|
||||
|
||||
/// <summary>The four calls' states, compared as one value when deciding whether the session's context moved.</summary>
|
||||
[StructLayout(LayoutKind.Auto)]
|
||||
private readonly record struct InGameCallStates(
|
||||
AdvancedInGameCall? Streamline,
|
||||
AdvancedInGameCall? FrameGeneration,
|
||||
AdvancedInGameCall? FeatureVersion,
|
||||
AdvancedInGameCall? FeatureRequirements);
|
||||
|
||||
/// <summary>
|
||||
/// What the row says of the entries read inside the game: read, measured inside the game with none of their
|
||||
/// calls seen, or not measured inside the game at all.
|
||||
|
||||
@@ -982,6 +982,26 @@ public unsafe struct FlAdvancedState
|
||||
|
||||
/// <summary><see cref="FeatureSlots"/> slots of <see cref="FeatureWords"/> words each (0.1.0-beta.44).</summary>
|
||||
public fixed uint Features[FeatureSlots * FeatureWords];
|
||||
|
||||
/// <summary>Word 1 of a slot: <c>slGetFeatureVersion</c> answered for this feature.</summary>
|
||||
public const uint FeatureVersionAnswered = 1u << 0;
|
||||
|
||||
/// <summary>Word 1 of a slot: <c>slGetFeatureRequirements</c> answered for this feature.</summary>
|
||||
public const uint FeatureRequirementsAnswered = 1u << 1;
|
||||
|
||||
/// <summary>
|
||||
/// One word of one feature slot, as <c>fl_shm.h</c> lays them out: 0 the <c>sl::Feature</c> id plus one (0 = an
|
||||
/// empty slot; slots fill from 0), 1 which question was answered, 2..7 the two versions, 8 the flags, 9..11 three
|
||||
/// counts, 12..23 four versions.
|
||||
/// </summary>
|
||||
public readonly uint FeatureWordAt(int slot, int word)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegative(slot);
|
||||
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(slot, FeatureSlots);
|
||||
ArgumentOutOfRangeException.ThrowIfNegative(word);
|
||||
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(word, FeatureWords);
|
||||
return Features[(slot * FeatureWords) + word];
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Region 6 — the ring. Exactly 64 bytes, no implicit padding.</summary>
|
||||
|
||||
@@ -289,6 +289,85 @@ public sealed class AgentEndToEndTests : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task WhatTheGameTellsStreamlineAndIsAnsweredAboutAFeatureIsStoredByASessionThatRecordsAdvancedMetrics()
|
||||
{
|
||||
// The Streamline side of the same road, end to end (0.1.0-beta.44; until then no Agent test ran a Streamline
|
||||
// target): the shipped Agent, the real Overlay, and a target that chains its DLSS options into every
|
||||
// evaluation, calls slSetConstants every frame and asks the stub interposer about a feature every sixteenth -
|
||||
// which is what lets a session that attached after the game's start still see an answer. Three calls hooked
|
||||
// only because this session asked.
|
||||
(await GrantConsentAsync()).Should().Be(ConsentWriteOutcome.Written);
|
||||
|
||||
Process harness = await StartHarnessAsync("--real --advanced --hold-presenting-upscaled 90");
|
||||
try
|
||||
{
|
||||
await SetAdvancedMetricsAsync(on: true);
|
||||
using (Process on = StartAgent("capture", "--exe", ConsentedExecutable, "--seconds", "10"))
|
||||
{
|
||||
(string output, int exit) = await FinishAsync(on);
|
||||
exit.Should().Be(0, output);
|
||||
}
|
||||
|
||||
LedgerDatabase db = await LedgerDatabase.OpenAsync(Ledger, ct: TestContext.Current.CancellationToken).ConfigureAwait(true);
|
||||
await using (db.ConfigureAwait(true))
|
||||
{
|
||||
var sessions = new SqliteSessionRepository(db);
|
||||
SessionRow session = (await sessions.ListRecentAsync(1, TestContext.Current.CancellationToken).ConfigureAwait(true)).Should().ContainSingle().Subject;
|
||||
session.Tier.Should().Be(CaptureTier.Hooked);
|
||||
AdvancedSessionRow row = (await sessions.FindAdvancedAsync(session.Id, TestContext.Current.CancellationToken).ConfigureAwait(true)).Should().BeOfType<AdvancedSessionRow>().Subject;
|
||||
AssertWhatTheHarnessToldStreamline(row);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Kill(harness);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>The stored row of a session that asked, against what <c>hook-harness --advanced</c> tells Streamline and the stub interposer answers.</summary>
|
||||
private static void AssertWhatTheHarnessToldStreamline(AdvancedSessionRow row)
|
||||
{
|
||||
(IReadOnlyList<AdvancedFact> facts, AdvancedSources sources) = AdvancedJson.ParseSession(row.FactsJson);
|
||||
string[] Rows(string id) => [.. facts.Single(f => string.Equals(f.Id, id, StringComparison.Ordinal)).Value.Rows!.Select(static r => r.Name + "=" + r.Value)];
|
||||
|
||||
// What the harness tells slSetConstants for its first viewport (main.cpp, kAdvSl*).
|
||||
Rows("sl.constants.jitter").Should().Equal("jitterOffset.x=≤ 0.3125", "jitterOffset.y=≤ 0.4375");
|
||||
Rows("sl.constants.depth").Should().Equal("cameraNear=0.25", "cameraFar=4000", "depthInverted=on");
|
||||
Rows("sl.constants.projection").Should().Equal("cameraFOV=0.8 – 1.2 rad (45.8° – 68.8°)", "cameraAspectRatio=1.75", "orthographicProjection=off");
|
||||
|
||||
// What the stub interposer answers about the two features it knows (stub_sl_interposer.cpp), and
|
||||
// nothing of the one it refuses or of the one asked about with a struct that is not the headers'.
|
||||
Rows("sl.feature.versions").Should().Equal(
|
||||
"kFeatureDLSS · versionSL=2.14.1",
|
||||
"kFeatureDLSS · versionNGX=310.4.0",
|
||||
"kFeatureDLSS_G · versionSL=2.14.1",
|
||||
"kFeatureDLSS_G · versionNGX=310.4.1");
|
||||
Rows("sl.feature.requirements").Should().Equal(
|
||||
"kFeatureDLSS · flags=eD3D11Supported, eD3D12Supported, eVulkanSupported",
|
||||
"kFeatureDLSS · maxNumCPUThreads=2",
|
||||
"kFeatureDLSS · maxNumViewports=32",
|
||||
"kFeatureDLSS · numRequiredTags=3",
|
||||
"kFeatureDLSS · osVersionDetected=10.0.26100",
|
||||
"kFeatureDLSS · osVersionRequired=10.0.19041",
|
||||
"kFeatureDLSS · driverVersionDetected=591.44.0",
|
||||
"kFeatureDLSS · driverVersionRequired=512.15.0",
|
||||
"kFeatureDLSS_G · flags=eD3D12Supported, eVSyncOffRequired, eHardwareSchedulingRequired",
|
||||
"kFeatureDLSS_G · maxNumCPUThreads=1",
|
||||
"kFeatureDLSS_G · maxNumViewports=1",
|
||||
"kFeatureDLSS_G · numRequiredTags=4",
|
||||
"kFeatureDLSS_G · osVersionDetected=10.0.26100",
|
||||
"kFeatureDLSS_G · osVersionRequired=10.0.19041",
|
||||
"kFeatureDLSS_G · driverVersionDetected=591.44.0",
|
||||
"kFeatureDLSS_G · driverVersionRequired=551.23.0");
|
||||
|
||||
sources.InGame.Should().Be(AdvancedInGameStatus.Reading, row.FactsJson);
|
||||
sources.StreamlineConstants.Should().Be(AdvancedInGameCall.Read, row.FactsJson);
|
||||
sources.StreamlineFeatureVersion.Should().Be(AdvancedInGameCall.Read, row.FactsJson);
|
||||
sources.StreamlineFeatureRequirements.Should().Be(AdvancedInGameCall.Read, row.FactsJson);
|
||||
sources.FsrFrameGeneration.Should().Be(AdvancedInGameCall.NotHooked, "this target loads no FidelityFX library: " + row.FactsJson);
|
||||
}
|
||||
|
||||
/// <summary>The stored row of a session that asked, against what <c>hook-harness --advanced --ffx-memory-query</c> sends and the FSR stub answers.</summary>
|
||||
private static void AssertWhatTheHarnessToldFsr(AdvancedSessionRow row)
|
||||
{
|
||||
@@ -314,6 +393,8 @@ public sealed class AgentEndToEndTests : IDisposable
|
||||
"generationRect=1920 × 1080 at 0, 0");
|
||||
sources.FsrFrameGeneration.Should().Be(AdvancedInGameCall.Read, row.FactsJson);
|
||||
sources.StreamlineConstants.Should().Be(AdvancedInGameCall.NotHooked, row.FactsJson);
|
||||
sources.StreamlineFeatureVersion.Should().Be(AdvancedInGameCall.NotHooked, row.FactsJson);
|
||||
sources.StreamlineFeatureRequirements.Should().Be(AdvancedInGameCall.NotHooked, row.FactsJson);
|
||||
|
||||
IReadOnlyDictionary<string, Application.Recording.SensorSeriesStats> stats = AdvancedJson.ParseStats(row.StatsJson);
|
||||
stats.Should().ContainKey(InGameAdvancedSampler.FrameTimeSeries, row.StatsJson);
|
||||
|
||||
@@ -241,7 +241,7 @@ public sealed class AdvancedPresenterTests
|
||||
At(live, id).Status.Should().Be(Strings.Advanced_Status_InGame);
|
||||
}
|
||||
|
||||
At(live, "sl.feature.versions").Status.Should().Be(AdvancedLabels.Reach(AdvancedReach.NewHook), "a hook that is not built is still a later release");
|
||||
At(live, "sl.init.preferences").Status.Should().Be(AdvancedLabels.Reach(AdvancedReach.NewHook), "a hook that is not built is still a later release");
|
||||
live.Where(static r => r.IsRead).Should().HaveCount(AdvancedMetricCatalog.All.Count(static m => m.IsRead));
|
||||
}
|
||||
|
||||
@@ -311,6 +311,39 @@ public sealed class AdvancedPresenterTests
|
||||
AdvancedLabels.InGameCall(AdvancedInGameCall.NeverCalled).Should().NotBe(AdvancedLabels.InGameCall(AdvancedInGameCall.NotHooked), "the two reasons a value is absent are not one");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ASessionsSourcesLineSaysOfTheTwoQuestionsAboutAFeatureThatAGameAsksThemWhileItStarts()
|
||||
{
|
||||
// 0.1.0-beta.44. A game asks which version a feature is and what it requires while it starts; a session that
|
||||
// attached later finds the hook in and the call not made. That is said in words of its own - "did not ask
|
||||
// again" - and not as the finding "the game did not make the call" is for a call made every frame.
|
||||
AdvancedSources beta43 = AdvancedFixtures.Sources with
|
||||
{
|
||||
InGame = AdvancedInGameStatus.Reading,
|
||||
StreamlineConstants = AdvancedInGameCall.Read,
|
||||
FsrFrameGeneration = AdvancedInGameCall.NotHooked,
|
||||
};
|
||||
string before = AdvancedPresenter.SourcesLine(beta43);
|
||||
before.Should().NotContain(Strings.AdvInGameCall_NotAskedAgain, "a row stored before says nothing of the two");
|
||||
|
||||
string line = AdvancedPresenter.SourcesLine(beta43 with
|
||||
{
|
||||
StreamlineFeatureVersion = AdvancedInGameCall.Read,
|
||||
StreamlineFeatureRequirements = AdvancedInGameCall.NeverCalled,
|
||||
});
|
||||
|
||||
line.Should().StartWith(before, "what was said before is said as before");
|
||||
line.Should().EndWith(string.Format(
|
||||
CultureInfo.CurrentCulture,
|
||||
Strings.Advanced_InGameFeatureCallsLine,
|
||||
AdvancedLabels.InGameCall(AdvancedInGameCall.Read),
|
||||
Strings.AdvInGameCall_NotAskedAgain));
|
||||
|
||||
AdvancedLabels.InGameStartupCall(AdvancedInGameCall.NeverCalled).Should().NotBe(AdvancedLabels.InGameCall(AdvancedInGameCall.NeverCalled));
|
||||
AdvancedLabels.InGameStartupCall(AdvancedInGameCall.NotHooked).Should().Be(AdvancedLabels.InGameCall(AdvancedInGameCall.NotHooked), "not hooked is not hooked, whenever the call is made");
|
||||
AdvancedLabels.InGameStartupCall(AdvancedInGameCall.Read).Should().Be(AdvancedLabels.InGameCall(AdvancedInGameCall.Read));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AValueIsShownInItsUnitAndAFlagAsYesOrNo()
|
||||
{
|
||||
|
||||
@@ -145,7 +145,7 @@ public sealed class AdvancedJsonTests
|
||||
new("nvapi.gpu.board_serial", Instance: null, AdvancedValue.OfText("0123456789")),
|
||||
new("nvapi.display.edid", "1", AdvancedValue.OfText("00ffffffffffff00")),
|
||||
new("sl.constants.camera", Instance: null, AdvancedValue.OfText("1.0 2.0 3.0")),
|
||||
new("sl.feature.versions", Instance: null, AdvancedValue.OfText("DLSS 3.7.0")),
|
||||
new("sl.init.preferences", Instance: null, AdvancedValue.OfText("eDisableCLStateTracking")),
|
||||
new("sl.dlss.presets", Instance: null, AdvancedValue.OfRows([new AdvancedRow("DLAA", "K")])),
|
||||
new("no.such.metric", Instance: null, AdvancedValue.Of(1)),
|
||||
new("lhm.board.model", Instance: null, AdvancedValue.OfText("ASUS ROG STRIX Z790-E")),
|
||||
@@ -195,6 +195,32 @@ public sealed class AdvancedJsonTests
|
||||
older.FsrFrameGeneration.Should().BeNull();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WhatBecameOfTheTwoQuestionsAboutAFeatureSurvivesTheLedgerAndAnOlderRowSaysNothingOfThem()
|
||||
{
|
||||
AdvancedSources written = AdvancedSources.Unknown with
|
||||
{
|
||||
InGame = AdvancedInGameStatus.Reading,
|
||||
StreamlineConstants = AdvancedInGameCall.Read,
|
||||
FsrFrameGeneration = AdvancedInGameCall.NotHooked,
|
||||
StreamlineFeatureVersion = AdvancedInGameCall.Read,
|
||||
StreamlineFeatureRequirements = AdvancedInGameCall.NeverCalled,
|
||||
};
|
||||
|
||||
string json = AdvancedJson.OfSession([], written);
|
||||
(_, AdvancedSources read) = AdvancedJson.ParseSession(json);
|
||||
|
||||
json.Should().Contain("\"streamlineFeatureVersion\":\"Read\"").And.Contain("\"streamlineFeatureRequirements\":\"NeverCalled\"");
|
||||
read.Should().Be(written);
|
||||
|
||||
// 0.1.0-beta.43 wrote exactly this: the two calls of that release and neither of these.
|
||||
const string beta43 = """{"facts":[],"sources":{"nvapi":"Reading","sensors":"Reading","elevatedSensors":"Reading","inGame":"Reading","streamlineConstants":"Read","fsrFrameGeneration":"NeverCalled"}}""";
|
||||
(_, AdvancedSources older) = AdvancedJson.ParseSession(beta43);
|
||||
older.StreamlineConstants.Should().Be(AdvancedInGameCall.Read);
|
||||
older.StreamlineFeatureVersion.Should().BeNull("a row that never said is not a row that said the hook was not in");
|
||||
older.StreamlineFeatureRequirements.Should().BeNull();
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(AdvancedInGameStatus.Reading)]
|
||||
[InlineData(AdvancedInGameStatus.NothingSeen)]
|
||||
|
||||
@@ -107,6 +107,7 @@ public sealed partial class AdvancedMetricCatalogTests
|
||||
// Train B, 0.1.0-beta.40: thirteen entries, each a member of a call the Overlay already hooked - and each
|
||||
// matched by a name on tools/overlay-allowed-fields.txt, which a build gate holds to the Overlay's own code.
|
||||
// 0.1.0-beta.43: six more, from the two calls hooked only for Advanced metrics (slSetConstants, ffxConfigure).
|
||||
// 0.1.0-beta.44: two more, what Streamline answers about a feature (slGetFeatureVersion, slGetFeatureRequirements).
|
||||
// Everything else of Streamline and FidelityFX is still named, not read; NGX and XeSS are never read.
|
||||
string[] inGame = [.. _all.Where(static m => m.Reach == AdvancedReach.Game).Select(static m => m.Id)];
|
||||
inGame.Should().Equal(
|
||||
@@ -114,7 +115,10 @@ public sealed partial class AdvancedMetricCatalogTests
|
||||
"ffx.upscale.sharpening", "ffx.upscale.jitter", "ffx.upscale.exposure", "ffx.upscale.depth", "ffx.upscale.flags",
|
||||
"ffx.upscale.frame_time_delta", "ffx.memory_usage",
|
||||
"sl.constants.jitter", "sl.constants.motion_vectors", "sl.constants.depth", "sl.constants.projection", "sl.constants.resets",
|
||||
"ffx.framegen.config");
|
||||
"ffx.framegen.config",
|
||||
"sl.feature.versions", "sl.feature.requirements");
|
||||
// What a game starts Streamline with is still not read (D112: slInit is not hooked).
|
||||
AdvancedMetricCatalog.Find("sl.init.preferences")!.Reach.Should().Be(AdvancedReach.NewHook);
|
||||
// The camera's position, axes and matrices are in the same struct as the constants read, and are the player's.
|
||||
AdvancedMetricCatalog.Find("sl.constants.camera")!.Reach.Should().Be(AdvancedReach.PlayerState);
|
||||
|
||||
|
||||
@@ -314,6 +314,103 @@ public sealed class InGameAdvancedSamplerTests
|
||||
Rows(Fact(edge, "sl.constants.projection")).Take(2).Should().Equal("cameraFOV=3 rad (171.9°)", "cameraAspectRatio=1.75");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WhatStreamlineAnsweredAboutEachFeatureIsTwoFactsInTheVendorsOwnNames()
|
||||
{
|
||||
// 0.1.0-beta.44: slGetFeatureVersion and slGetFeatureRequirements. A slot per feature in the order the game
|
||||
// first asked, every name the vendor's - the feature's constant, the struct's member, the flag's enumerator.
|
||||
var sampler = new InGameAdvancedSampler();
|
||||
sampler.Take(new InGameAdvanced(InGameStates.Features()));
|
||||
|
||||
Rows(Fact(sampler, "sl.feature.versions")).Should().Equal(
|
||||
"kFeatureDLSS · versionSL=2.14.1",
|
||||
"kFeatureDLSS · versionNGX=310.4.0",
|
||||
"kFeatureDLSS_G · versionSL=2.14.1",
|
||||
"kFeatureDLSS_G · versionNGX=310.4.1");
|
||||
Rows(Fact(sampler, "sl.feature.requirements")).Should().Equal(
|
||||
"kFeatureDLSS · flags=eD3D11Supported, eD3D12Supported, eVulkanSupported",
|
||||
"kFeatureDLSS · maxNumCPUThreads=2",
|
||||
"kFeatureDLSS · maxNumViewports=32",
|
||||
"kFeatureDLSS · numRequiredTags=3",
|
||||
"kFeatureDLSS · osVersionDetected=10.0.26100",
|
||||
"kFeatureDLSS · osVersionRequired=10.0.19041",
|
||||
"kFeatureDLSS · driverVersionDetected=591.44.0",
|
||||
"kFeatureDLSS · driverVersionRequired=512.15.0",
|
||||
"kFeatureDLSS_G · flags=eD3D12Supported, eVSyncOffRequired, eHardwareSchedulingRequired",
|
||||
"kFeatureDLSS_G · maxNumCPUThreads=1",
|
||||
"kFeatureDLSS_G · maxNumViewports=1",
|
||||
"kFeatureDLSS_G · numRequiredTags=4",
|
||||
"kFeatureDLSS_G · osVersionDetected=10.0.26100",
|
||||
"kFeatureDLSS_G · osVersionRequired=10.0.19041",
|
||||
"kFeatureDLSS_G · driverVersionDetected=591.44.0",
|
||||
"kFeatureDLSS_G · driverVersionRequired=551.23.0");
|
||||
sampler.Facts.Should().Contain(static f => string.Equals(f.Id, "sl.constants.jitter", StringComparison.Ordinal), "the constants of the same game stay beside them");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AFeatureAnsweredInPartAnIdWithNoNameAndAVersionNobodyStatedAreSaidAsTheyAre()
|
||||
{
|
||||
// Slot 0: only the version, of a feature with no NGX model - no versionNGX row. Slot 1: only the requirements,
|
||||
// of an id this build has no name for, two flag bits the header does not name, counts of 0 that are counts, and
|
||||
// one version stated out of four. Slot 2: a feature that requires nothing says so. Slot 4 is past an empty slot:
|
||||
// slots fill from 0, so it is not a slot.
|
||||
FlAdvancedState s = InGameStates.WithFeature(InGameStates.Empty(), 0, 3, FlAdvancedState.FeatureVersionAnswered, 2, 14, 1);
|
||||
s = InGameStates.WithFeature(s, 1, 4242, FlAdvancedState.FeatureRequirementsAnswered, 0, 0, 0, 0, 0, 0, 0x120, 0, 1, 0, 0, 0, 0, 10, 0, 22000);
|
||||
s = InGameStates.WithFeature(s, 2, 2, FlAdvancedState.FeatureRequirementsAnswered);
|
||||
s = InGameStates.WithFeature(s, 4, 5, FlAdvancedState.FeatureVersionAnswered, 9, 9, 9);
|
||||
var sampler = new InGameAdvancedSampler();
|
||||
sampler.Take(new InGameAdvanced(s));
|
||||
|
||||
Rows(Fact(sampler, "sl.feature.versions")).Should().Equal("kFeatureReflex · versionSL=2.14.1");
|
||||
AdvancedFact requirements = Fact(sampler, "sl.feature.requirements");
|
||||
Rows(requirements).Should().Equal(
|
||||
"feature 4242 · flags=bit 5, bit 8",
|
||||
"feature 4242 · maxNumCPUThreads=0",
|
||||
"feature 4242 · maxNumViewports=1",
|
||||
"feature 4242 · numRequiredTags=0",
|
||||
"feature 4242 · osVersionRequired=10.0.22000",
|
||||
"kFeatureNIS · flags=none",
|
||||
"kFeatureNIS · maxNumCPUThreads=0",
|
||||
"kFeatureNIS · maxNumViewports=0",
|
||||
"kFeatureNIS · numRequiredTags=0");
|
||||
requirements.Value.Rows![5].Token.Should().Be("none", "the App translates the word");
|
||||
|
||||
// A publication with the group's bit and no slot in use makes neither fact.
|
||||
var none = new InGameAdvancedSampler();
|
||||
none.Take(new InGameAdvanced(InGameStates.Empty() with { ValidMask = FlAdvancedValid.SlFeatures }));
|
||||
none.Facts.Should().BeEmpty();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AnAnswerAboutAFeatureThatArrivesLaterMakesTheFactsNewAndEachQuestionIsItsOwn()
|
||||
{
|
||||
var sampler = new InGameAdvancedSampler();
|
||||
sampler.FeatureCall(FlAdvancedState.FeatureVersionAnswered, hookedIn: false).Should().Be(AdvancedInGameCall.NotHooked);
|
||||
sampler.FeatureCall(FlAdvancedState.FeatureVersionAnswered, hookedIn: true).Should().Be(AdvancedInGameCall.NeverCalled, "hooked, and the game did not ask again");
|
||||
|
||||
sampler.Take(new InGameAdvanced(InGameStates.Streamline()));
|
||||
IReadOnlyList<AdvancedFact> before = sampler.Facts;
|
||||
before.Should().NotContain(static f => f.Id.StartsWith("sl.feature.", StringComparison.Ordinal));
|
||||
sampler.FeatureCall(FlAdvancedState.FeatureRequirementsAnswered, hookedIn: true).Should().Be(AdvancedInGameCall.NeverCalled);
|
||||
|
||||
// The version of one feature is answered: the list is new, that question is read, the other is not.
|
||||
FlAdvancedState versionOnly = InGameStates.WithFeature(InGameStates.Streamline(2), 0, 0, FlAdvancedState.FeatureVersionAnswered, 2, 14, 1, 310, 4, 0);
|
||||
sampler.Take(new InGameAdvanced(versionOnly));
|
||||
sampler.Facts.Should().NotBeSameAs(before);
|
||||
Rows(Fact(sampler, "sl.feature.versions")).Should().Equal("kFeatureDLSS · versionSL=2.14.1", "kFeatureDLSS · versionNGX=310.4.0");
|
||||
sampler.FeatureCall(FlAdvancedState.FeatureVersionAnswered, hookedIn: true).Should().Be(AdvancedInGameCall.Read);
|
||||
sampler.FeatureCall(FlAdvancedState.FeatureRequirementsAnswered, hookedIn: true).Should().Be(AdvancedInGameCall.NeverCalled);
|
||||
sampler.FeatureCall(FlAdvancedState.FeatureRequirementsAnswered, hookedIn: false).Should().Be(AdvancedInGameCall.NotHooked);
|
||||
|
||||
// The same slots again: the same list. Both questions answered: a new one, and both read.
|
||||
IReadOnlyList<AdvancedFact> held = sampler.Facts;
|
||||
sampler.Take(new InGameAdvanced(InGameStates.WithFeature(InGameStates.Streamline(3), 0, 0, FlAdvancedState.FeatureVersionAnswered, 2, 14, 1, 310, 4, 0)));
|
||||
sampler.Facts.Should().BeSameAs(held, "nothing a fact is made of moved");
|
||||
sampler.Take(new InGameAdvanced(InGameStates.Features(4)));
|
||||
sampler.Facts.Should().NotBeSameAs(held);
|
||||
sampler.FeatureCall(FlAdvancedState.FeatureRequirementsAnswered, hookedIn: false).Should().Be(AdvancedInGameCall.Read, "a publication that carried it is the proof");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ACountDoesNotRebuildTheFactsWhileTheSessionRunsAndIsExactOnceItConcludes()
|
||||
{
|
||||
@@ -378,10 +475,13 @@ public sealed class InGameAdvancedSamplerTests
|
||||
DlssColorBuffersHdr = 2,
|
||||
};
|
||||
|
||||
both = InGameStates.WithFeature(both, 0, 0, FlAdvancedState.FeatureVersionAnswered | FlAdvancedState.FeatureRequirementsAnswered, 2, 14, 1, 310, 4, 0, 7, 2, 32, 3);
|
||||
|
||||
IReadOnlyList<AdvancedReading> readings = sampler.Take(new InGameAdvanced(both))!;
|
||||
|
||||
sampler.Facts.Should().OnlyContain(static f => AdvancedMetricCatalog.Find(f.Id)!.Reach == AdvancedReach.Game);
|
||||
sampler.Facts.Select(static f => f.Id).Should().Contain(["sl.constants.jitter", "sl.constants.resets", "ffx.framegen.config", "ffx.upscale.flags", "sl.dlss.presets"]);
|
||||
sampler.Facts.Select(static f => f.Id).Should().Contain(
|
||||
["sl.constants.jitter", "sl.constants.resets", "ffx.framegen.config", "ffx.upscale.flags", "sl.dlss.presets", "sl.feature.versions", "sl.feature.requirements"]);
|
||||
AdvancedJson.Storable(sampler.Facts).Should().HaveCount(sampler.Facts.Count, "what the game said may be stored");
|
||||
readings.Select(static r => AdvancedMetricCatalog.Find(r.Series[AdvancedMetric.SeriesPrefix.Length..])!.Reach).Should().OnlyContain(static reach => reach == AdvancedReach.Game);
|
||||
}
|
||||
|
||||
@@ -126,6 +126,32 @@ internal static class InGameStates
|
||||
1920,
|
||||
1080);
|
||||
|
||||
/// <summary>
|
||||
/// What the stub interposer answers <c>hook-harness --advanced</c> about DLSS and DLSS frame generation
|
||||
/// (0.1.0-beta.44), beside what the same target tells Streamline each frame: slots 0 and 1, both questions answered.
|
||||
/// </summary>
|
||||
public static FlAdvancedState Features(uint samples = 1) => WithFeature(
|
||||
WithFeature(Streamline(samples), 0, 0, 3, 2, 14, 1, 310, 4, 0, 7, 2, 32, 3, 10, 0, 26100, 10, 0, 19041, 591, 44, 0, 512, 15, 0),
|
||||
1, 1000, 3, 2, 14, 1, 310, 4, 1, 26, 1, 1, 4, 10, 0, 26100, 10, 0, 19041, 591, 44, 0, 551, 23, 0);
|
||||
|
||||
/// <summary>
|
||||
/// One feature slot, set through the struct's bytes: the <c>sl::Feature</c> id, which questions were answered, and
|
||||
/// the slot's words from 2 on - versionSL, versionNGX, the flags, three counts, then Windows found and required and
|
||||
/// the driver found and required (three words a version). The group's bit of the mask goes on with it.
|
||||
/// </summary>
|
||||
public static FlAdvancedState WithFeature(FlAdvancedState state, int slot, uint feature, uint answered, params ReadOnlySpan<uint> from2)
|
||||
{
|
||||
int at = (int)Marshal.OffsetOf<FlAdvancedState>(nameof(FlAdvancedState.Features)) + (slot * FlAdvancedState.FeatureWords * sizeof(uint));
|
||||
Span<uint> words = MemoryMarshal.Cast<byte, uint>(
|
||||
MemoryMarshal.AsBytes(new Span<FlAdvancedState>(ref state)).Slice(at, FlAdvancedState.FeatureWords * sizeof(uint)));
|
||||
words.Clear();
|
||||
words[0] = feature + 1;
|
||||
words[1] = answered;
|
||||
from2.CopyTo(words[2..]);
|
||||
state.ValidMask |= FlAdvancedValid.SlFeatures;
|
||||
return state;
|
||||
}
|
||||
|
||||
/// <summary>The generation rectangle - left, top, width, height: a fixed buffer, set through the struct's bytes.</summary>
|
||||
public static FlAdvancedState WithRect(FlAdvancedState state, int left, int top, int width, int height)
|
||||
{
|
||||
|
||||
@@ -1004,8 +1004,10 @@ public sealed class SessionRecorderTests : IAsyncDisposable
|
||||
InGame = AdvancedInGameStatus.NothingSeen,
|
||||
StreamlineConstants = AdvancedInGameCall.NotHooked,
|
||||
FsrFrameGeneration = AdvancedInGameCall.NotHooked,
|
||||
StreamlineFeatureVersion = AdvancedInGameCall.NotHooked,
|
||||
StreamlineFeatureRequirements = AdvancedInGameCall.NotHooked,
|
||||
},
|
||||
"the Agent's sources never answered; the game was measured from inside, made none of the calls, and the capture side published neither of the two hooks that are installed only for Advanced metrics");
|
||||
"the Agent's sources never answered; the game was measured from inside, made none of the calls, and the capture side published none of the four hooks that are installed only for Advanced metrics");
|
||||
hub.Released.Should().Be(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user