Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
548e1fe21b
|
No files matched your search
@@ -35,6 +35,30 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
|
||||
- **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
|
||||
"twice". Seen on 2026-11-12: Lies of P, two ends in October, one crash of its own that day. Two are needed again
|
||||
each time. Nothing else about the rule moves: it only switches off, an anti-cheat block is never cleared, and the
|
||||
user-mode exception's trial keeps its own record.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **A field of view a game gives in degrees is no longer labelled radians** (Advanced metrics; owner decision
|
||||
D128). Cyberpunk 2077 gives NVIDIA Streamline 51–90 where the library expects radians, and the session read
|
||||
`51.0055 – 90 rad (2922.4° – 5156.6°)`. A value too large to be radians is now shown as the game gave it, with a
|
||||
line that says it is not radians, and is not converted. Sessions recorded on 0.1.0-beta.43 keep the line they
|
||||
were stored with.
|
||||
- **An FSR frame-generation configuration with no flag set says "None"** (Advanced metrics). The row was missing,
|
||||
where an upscale with no flag has always said so.
|
||||
- **The accuracy statement and the limitations no longer say that what a game tells Streamline, and how it
|
||||
configures FSR frame generation, have not been read from a real game**: they were, on 2026-11-12 — three games
|
||||
and one. What is still unconfirmed is named: the DLSS options, and a configuration that reaches FSR through
|
||||
AMD's 2.3 loader. A fault while a game is closing, which a session measured from inside the game does not see,
|
||||
is written down as a limit (owner decision D127: not changed in this release).
|
||||
|
||||
## Releases
|
||||
|
||||
Newest first. Each file holds that release's section exactly as it stood here.
|
||||
|
||||
+14
-2
@@ -51,6 +51,10 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
game). Unity's crash handler and Chromium's `crashpad_handler` start with every game that has them, so their presence
|
||||
says nothing. Sessions recorded before 0.1.0-beta.14 keep how they were stored — a few of them may read *crashed*
|
||||
because Windows logged a memory report about the game. ([details](docs/04_CAPTURE.md))
|
||||
- **A game that faults while it is closing can read *ended normally* in a session measured from inside the game.**
|
||||
FrameLedger looks for Windows' crash report when it saves the session, and for such a session that is before
|
||||
Windows has written it; the same fault in a session that was not measured from inside reads *crashed*. Seen on one
|
||||
game whose graphics-driver library faults at every exit, measured or not (2026-11-12). Not changed yet.
|
||||
|
||||
## Frame rate and frame generation
|
||||
|
||||
@@ -194,7 +198,13 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
generation and gets none still reads "on", and the session's summary is where what was generated is measured. A
|
||||
setting the game changed during the session reads "on and off". The session's line says, for each of the two,
|
||||
whether it was read, hooked and never called by the game, or not hooked (the game did not load the library).
|
||||
Streamline 1.x is not read. **Neither has been confirmed on a real game yet.**
|
||||
Streamline 1.x is not read. Streamline's values have been read from three real games and the frame-generation
|
||||
configuration from one (2026-11-12); **a configuration that reaches FSR through AMD's 2.3 loader has not been
|
||||
read from a real game yet.** **A game may give a value in a unit of its own**: Cyberpunk 2077 gives Streamline
|
||||
its field of view in degrees where NVIDIA's header says radians. A field of view too large to be radians is
|
||||
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.
|
||||
- **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
|
||||
@@ -273,7 +283,9 @@ a barrier is on its own page: [Accessibility](ACCESSIBILITY.md) (in the app: Hel
|
||||
- **Some games will not start directly** (seen on two Steam games, 2026-10-19 and 20). Lies of P, started by *Start
|
||||
directly*, hands itself to Steam within seconds — since 0.1.0-beta.27 the game Steam then starts is recorded —, and
|
||||
Clair Obscur: Expedition 33 closes within seconds, with or without FrameLedger's hook. Each such start ends a
|
||||
measured session early, which the crash safety counts: two turn hooking off for the game. Start such a game through
|
||||
measured session early, which the crash safety counts: two turn hooking off for the game — and since
|
||||
0.1.0-beta.44 the count starts again each time you switch hooking back on (before, one more such end was enough
|
||||
once a game had been switched off). Start such a game through
|
||||
its store (Settings ▸ Games ▸ *Play button*); the notice after Play says when a Steam game may hand itself to Steam.
|
||||
([details](docs/spike-notes/23-owner-runs-2026-10-20.md))
|
||||
|
||||
|
||||
@@ -117,8 +117,10 @@ 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 have been read from real games; the DLSS options,
|
||||
> Streamline's constants and the frame-generation configuration have not been confirmed on one yet.
|
||||
> for, not whether frames were generated). 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.
|
||||
> - **Safety:** every pre-injection check runs before injection, including the signed-by-a-known-vendor
|
||||
> half of the suspicious-module rule. During every capture the Agent re-runs the checks every 30 s and
|
||||
> stops capturing on a refusal: a Direct3D or OpenGL game's hooks are removed, and the Vulkan layer
|
||||
|
||||
@@ -770,6 +770,11 @@ planning, the design reviewed against the code before it was approved.
|
||||
them from members region 5 already had (layout 5 as it was; schema 23 as it was): a switch is `on`, `off` or
|
||||
`on_and_off` from the two words of what was seen, the flags are AMD's own names, the rectangle is the last one
|
||||
the game gave and is left out where the capture side could not state it, the field of view is a range (D114).
|
||||
**A field of view over π is said as given (owner decision D128, 0.1.0-beta.44).** Both vendors' headers say
|
||||
radians; Cyberpunk 2077 gives Streamline 51–90, and the row read `51.0055 – 90 rad (2922.4° – 5156.6°)`. Such a
|
||||
value is now the number alone, with a second row (`cameraFOV unit`, token `not_radians`) that says what it is
|
||||
not; it is never converted, which would store this project's guess at the unit as the game's word. A
|
||||
frame-generation configure that set no flag has a `flags` row of `none`, as an upscale does.
|
||||
**A count is not part of what makes the facts new** — `sl.constants.resets` grows all session, and a context
|
||||
rewritten on each would be one a second — so `InGameAdvancedSampler.Conclude` brings it up to the last
|
||||
publication once, when the session ends. `AdvancedSources.StreamlineConstants` and `.FsrFrameGeneration`
|
||||
|
||||
@@ -1234,6 +1234,20 @@ outlives a rules change, a game update and *Change executable*; §What a finding
|
||||
hooked session's early abnormal end; the policy counted them, and two turned hooking off. It cannot tell either from
|
||||
the hang it exists for, so it stands as written; whether a witness — the same executable started again within
|
||||
seconds — may exempt a hand-off is the owner's decision, not taken. Users are told in `LIMITATIONS.md` §Play.
|
||||
- **The count starts again when the user switches hooking on (owner decision D126, 0.1.0-beta.44).** Until then
|
||||
`hook_crash_count` only ever grew: Lies of P had two such ends on 2026-10-19/20 (the hand-off above), its user
|
||||
switched hooking on again, and on 2026-11-12 one more early end — the game's own crash, by the owner, after a shader
|
||||
failed to compile — switched it off at once, under a reason that says *twice*. The consent grant, the only
|
||||
statement that turns hooking on, now sets the count to 0 (`SqliteGameConsentStore`). The policy still only
|
||||
disables, a block is still never cleared, and the user-mode exception's trial (D38) keeps its own record, which
|
||||
nothing sets back.
|
||||
- **A fault while the game is closing is not seen by a hooked session (owner decision D127: written down, not
|
||||
changed in 0.1.0-beta.44).** Hogwarts Legacy faults in the driver's `_nvngx.dll` at exit — six times in Windows'
|
||||
application log since 2026-11-06, hooked or not. The one unhooked session reads `crashed`; the five hooked ones
|
||||
read `normal` with exit code 0: the witness is looked for when the session is saved, which for a hooked session
|
||||
is before Windows has written the event. Looking again later would make every session of such a game `crashed`,
|
||||
and under a user-mode exception that ends the exception for good for a fault no hook caused — so it is a decision
|
||||
of its own, not a fix to slip in beside two new hooks.
|
||||
- **What reads as a crash changed in beta.14, in both directions** (`04_CAPTURE` §Crash & exit classification): a
|
||||
Windows report that is not a crash (a memory-leak or hang report) no longer makes one, and an engine's crash reporter
|
||||
started by a game that then left does — Unreal's crash ended with exit code 3 and read `normal`. Both feed this policy,
|
||||
|
||||
+8
-1
@@ -203,7 +203,11 @@ for the last.
|
||||
failed to patch, off meant off. What was not exercised is listed there and stays open.
|
||||
2. **0.1.0-beta.44** — first the field of view a game gives in degrees (and what else the nine sessions found),
|
||||
then `slGetFeatureVersion` and `slGetFeatureRequirements`. Both are calls a game makes while starting, so most
|
||||
sessions will have missed them: plan what "not seen" says. **Planned with the owner before any code.**
|
||||
sessions will have missed them: plan what "not seen" says. ~~**Planned with the owner before any code.**~~ **The
|
||||
plan was approved 2026-11-12 with three decisions, D126–D128** (the count of early abnormal ends starts again
|
||||
at a grant; the fault at exit is written down only; a field of view over π is shown as given), and with Privacy
|
||||
Policy 2.18's wording. Four pull requests: the fixes; the two hooks in the Overlay; the Agent, the App and the
|
||||
policy; the release.
|
||||
3. **Trains C and D** (beta.45, beta.46) each begin with a spike and end in the owner's go or no.
|
||||
|
||||
### Left open by this session
|
||||
@@ -733,6 +737,9 @@ Where each owner decision is recorded — the file and its section, and a label
|
||||
| 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 |
|
||||
| D126 | [`19_SAFETY_AND_ANTICHEAT.md`](19_SAFETY_AND_ANTICHEAT.md) §Crash & stability safety | the count of early abnormal ends starts again when the user switches hooking on (the consent grant sets it to 0) — it was never set back, so a game once switched off was switched off again by every single such end, under a reason that says "twice" (Lies of P, 2026-11-12) |
|
||||
| D127 | [`19_SAFETY_AND_ANTICHEAT.md`](19_SAFETY_AND_ANTICHEAT.md) §Crash & stability safety | a fault while a game is closing, which a hooked session does not see (Hogwarts Legacy, the driver's `_nvngx.dll`, hooked or not), is written down and not changed in 0.1.0-beta.44 — seeing it would end a user-mode exception for a fault no hook caused; a decision of its own |
|
||||
| D128 | [`18_GPU_VENDOR_APIS.md`](18_GPU_VENDOR_APIS.md) §Train B | a field of view over π is shown as the game gave it, with a row that says it is not radians, and is never converted — Cyberpunk 2077 gives Streamline degrees; converting would store a guess at the unit as the game's word |
|
||||
| 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`) |
|
||||
|
||||
---
|
||||
|
||||
@@ -32,7 +32,7 @@ While the game runs, a notice may say *hooking refused*.
|
||||
| The game runs in an app container, or Windows protects it in a way the component can neither load into nor hook. | Nothing: an older Microsoft Store app (UWP), or a game under code protection, is recorded, not measured ([Limitations](../LIMITATIONS.md#xbox-app-and-microsoft-store-games)). |
|
||||
| **Disable all hooking** is on. | Switch it off in Settings ▸ Capture. |
|
||||
| The game was already running when FrameLedger was updated. | Close the game and start it again. |
|
||||
| Hooking was switched off after the game crashed twice soon after it started. | Switch it on again in the game's page if the cause may be gone — after a driver update, for example. |
|
||||
| Hooking was switched off after the game crashed twice soon after it started. | Switch it on again in the game's page if the cause may be gone — after a driver update, for example. The count starts again when you do (since 0.1.0-beta.44). |
|
||||
| Hooking was switched off after **Play** started the game directly twice, and each time the game handed itself to Steam or closed at once. | Switch it on again, and set Settings ▸ Games ▸ **Play button** to *Through the store*: some Steam games will not start any other way. |
|
||||
| The game's file is gone. | If only its drive letter changed, FrameLedger follows it within about 15 seconds; otherwise **Change executable…** on the game's page. |
|
||||
| The component could not be loaded into the game. | [Report a problem](#report-a-problem). |
|
||||
|
||||
@@ -71,6 +71,13 @@ It never means the game uses no upscaler; the session's summary still names the
|
||||
**Where the camera is, which way it looks and its matrices are never read.** The field of view is kept as a lowest
|
||||
and a highest value, never as a line over time.
|
||||
|
||||
**A game may use a unit of its own.** NVIDIA's and AMD's libraries expect the field of view in radians, and
|
||||
FrameLedger shows it that way with the degrees beside it. Some games give degrees instead (Cyberpunk 2077 does, to
|
||||
Streamline): a value too large to be radians is shown as the game gave it, with a line that says *Not radians*, and
|
||||
is not converted — FrameLedger shows what the game said, not what it may have meant. The number of **resets** is
|
||||
the number of calls in which the game told the upscaler to drop its history; menus and loading screens raise it. A
|
||||
frame-generation configuration with no flag set says *None*.
|
||||
|
||||
A session's summary has an **Advanced metrics…** button that opens that session here.
|
||||
|
||||
## Sources
|
||||
|
||||
+4
-2
@@ -116,8 +116,10 @@
|
||||
> 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 have been read from real games; the DLSS options,
|
||||
> Streamline's constants and the frame-generation configuration have not been confirmed on one yet.
|
||||
> for, not whether frames were generated). 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.
|
||||
> - **Safety:** every pre-injection check runs before injection, including the signed-by-a-known-vendor
|
||||
> half of the suspicious-module rule. During every capture the Agent re-runs the checks every 30 s and
|
||||
> stops capturing on a refusal: a Direct3D or OpenGL game's hooks are removed, and the Vulkan layer
|
||||
|
||||
+4
-2
@@ -225,8 +225,10 @@ 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 have been read from real games; the DLSS options,
|
||||
> Streamline's constants and the frame-generation configuration have not been confirmed on one yet.
|
||||
> for, not whether frames were generated). 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.
|
||||
> - **Safety:** every pre-injection check runs before injection, including the signed-by-a-known-vendor
|
||||
> half of the suspicious-module rule. During every capture the Agent re-runs the checks every 30 s and
|
||||
> stops capturing on a refusal: a Direct3D or OpenGL game's hooks are removed, and the Vulkan layer
|
||||
|
||||
Generated
+3
@@ -349,6 +349,7 @@ public static class Strings
|
||||
nameof(AdvToken_non_linear_color_srgb),
|
||||
nameof(AdvToken_none),
|
||||
nameof(AdvToken_not_a_number),
|
||||
nameof(AdvToken_not_radians),
|
||||
nameof(AdvToken_not_supported),
|
||||
nameof(AdvToken_off),
|
||||
nameof(AdvToken_on),
|
||||
@@ -2171,6 +2172,8 @@ public static class Strings
|
||||
|
||||
public static string AdvToken_not_a_number => ResourceManager.GetString(nameof(AdvToken_not_a_number), Culture) ?? nameof(AdvToken_not_a_number);
|
||||
|
||||
public static string AdvToken_not_radians => ResourceManager.GetString(nameof(AdvToken_not_radians), Culture) ?? nameof(AdvToken_not_radians);
|
||||
|
||||
public static string AdvToken_not_supported => ResourceManager.GetString(nameof(AdvToken_not_supported), Culture) ?? nameof(AdvToken_not_supported);
|
||||
|
||||
public static string AdvToken_off => ResourceManager.GetString(nameof(AdvToken_off), Culture) ?? nameof(AdvToken_off);
|
||||
|
||||
@@ -1009,6 +1009,10 @@
|
||||
<value>数値ではない</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_not_radians" xml:space="preserve">
|
||||
<value>ラジアンではありません: 値が π より大きいためです。ゲームはおそらく度で渡しています。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="AdvToken_not_supported" xml:space="preserve">
|
||||
<value>非対応</value>
|
||||
<comment>review</comment>
|
||||
|
||||
@@ -762,6 +762,9 @@
|
||||
<data name="AdvToken_not_a_number" xml:space="preserve">
|
||||
<value>Not a number</value>
|
||||
</data>
|
||||
<data name="AdvToken_not_radians" xml:space="preserve">
|
||||
<value>Not radians: the value is larger than π. The game probably gives degrees.</value>
|
||||
</data>
|
||||
<data name="AdvToken_not_supported" xml:space="preserve">
|
||||
<value>Not supported</value>
|
||||
</data>
|
||||
|
||||
@@ -757,6 +757,9 @@
|
||||
<data name="AdvToken_not_a_number" xml:space="preserve">
|
||||
<value>Không phải số</value>
|
||||
</data>
|
||||
<data name="AdvToken_not_radians" xml:space="preserve">
|
||||
<value>Không phải radian: giá trị lớn hơn π. Có lẽ game đưa giá trị bằng độ.</value>
|
||||
</data>
|
||||
<data name="AdvToken_not_supported" xml:space="preserve">
|
||||
<value>Không hỗ trợ</value>
|
||||
</data>
|
||||
|
||||
@@ -40,6 +40,9 @@ public sealed class InGameAdvancedSampler
|
||||
|
||||
private const double _mebibyte = 1024.0 * 1024.0;
|
||||
|
||||
// What the second row of a field of view over pi says (owner decision D128).
|
||||
private const string _notRadians = "not_radians";
|
||||
|
||||
private static readonly string[] _presetModes = ["DLAA", "Quality", "Balanced", "Performance", "Ultra Performance", "Ultra Quality"];
|
||||
|
||||
// FfxApiDispatchUpscaleFlags (ffx_upscale.h), by bit.
|
||||
@@ -53,10 +56,10 @@ public sealed class InGameAdvancedSampler
|
||||
|
||||
/// <summary>
|
||||
/// Every word a fact made here may carry for the App to translate (<c>AdvToken_*</c>): the three states of a
|
||||
/// switch seen over a session, the flags of the dispatch that have a name, and "none". A flag bit nobody named
|
||||
/// is <c>bit_N</c> and is shown as it is.
|
||||
/// switch seen over a session, the flags of the dispatch that have a name, "none", and what a field of view
|
||||
/// that cannot be radians is said to be (D128). A flag bit nobody named is <c>bit_N</c> and is shown as it is.
|
||||
/// </summary>
|
||||
public static IReadOnlyList<string> Tokens { get; } = ["on", "off", "on_and_off", "none", .. _flagTokens];
|
||||
public static IReadOnlyList<string> Tokens { get; } = ["on", "off", "on_and_off", "none", _notRadians, .. _flagTokens];
|
||||
|
||||
private InGameAdvanced? _last;
|
||||
private uint _memoryQueries;
|
||||
@@ -179,20 +182,19 @@ public sealed class InGameAdvancedSampler
|
||||
AddSwitch(rows, "frameGenerationEnabled", s.FfxFgEnabledSeen);
|
||||
AddSwitch(rows, "allowAsyncWorkloads", s.FfxFgAsyncSeen);
|
||||
AddSwitch(rows, "onlyPresentGenerated", s.FfxFgOnlyGeneratedSeen);
|
||||
if (s.FfxFgFlagsSeen != 0)
|
||||
var names = new List<string>(4);
|
||||
for (int bit = 0; bit < 32; bit++)
|
||||
{
|
||||
var names = new List<string>(4);
|
||||
for (int bit = 0; bit < 32; bit++)
|
||||
if ((s.FfxFgFlagsSeen & (1u << bit)) != 0)
|
||||
{
|
||||
if ((s.FfxFgFlagsSeen & (1u << bit)) != 0)
|
||||
{
|
||||
names.Add(bit < _frameGenerationFlags.Length ? _frameGenerationFlags[bit] : string.Create(CultureInfo.InvariantCulture, $"bit {bit}"));
|
||||
}
|
||||
names.Add(bit < _frameGenerationFlags.Length ? _frameGenerationFlags[bit] : string.Create(CultureInfo.InvariantCulture, $"bit {bit}"));
|
||||
}
|
||||
|
||||
rows.Add(new AdvancedRow("flags", string.Join(", ", names)));
|
||||
}
|
||||
|
||||
// This is reached only once a configure was read, so no flag seen is "the game set none" - said, as an
|
||||
// upscale that set none says it (0.1.0-beta.44: Lies of P's session of 2026-11-12 had no row at all).
|
||||
rows.Add(names.Count == 0 ? new AdvancedRow("flags", "none", "none") : new AdvancedRow("flags", string.Join(", ", names)));
|
||||
|
||||
// left, top, width, height. A rectangle with no area is one the game did not give; four -1 is one the capture
|
||||
// side could not state (a side that is negative or past 32,767).
|
||||
int left = s.FfxFgRectAt(0);
|
||||
@@ -246,15 +248,8 @@ public sealed class InGameAdvancedSampler
|
||||
facts.Add(Fact("sl.constants.depth", AdvancedValue.OfRows(depth)));
|
||||
}
|
||||
|
||||
var projection = new List<AdvancedRow>(3);
|
||||
// A range, lowest to highest - never a series, which would say when the player aimed (D114).
|
||||
if (Number(s.SlFovMinBits) is double low && Number(s.SlFovMaxBits) is double high)
|
||||
{
|
||||
projection.Add(new AdvancedRow("cameraFOV", s.SlFovMinBits == s.SlFovMaxBits
|
||||
? string.Create(CultureInfo.InvariantCulture, $"{low:0.####} rad ({Degrees(low):0.#}°)")
|
||||
: string.Create(CultureInfo.InvariantCulture, $"{low:0.####} – {high:0.####} rad ({Degrees(low):0.#}° – {Degrees(high):0.#}°)")));
|
||||
}
|
||||
|
||||
var projection = new List<AdvancedRow>(4);
|
||||
AddFieldOfView(projection, "cameraFOV", s.SlFovMinBits, s.SlFovMaxBits);
|
||||
AddNumber(projection, "cameraAspectRatio", s.SlAspectBits);
|
||||
AddSwitch(projection, "orthographicProjection", SwitchOf(s.SlFlagsSeenTrue, s.SlFlagsSeenFalse, 4));
|
||||
if (projection.Count > 0)
|
||||
@@ -347,15 +342,7 @@ public sealed class InGameAdvancedSampler
|
||||
var depth = new List<AdvancedRow>(3);
|
||||
AddDepthPlane(depth, "cameraNear", s.FfxNearBits);
|
||||
AddDepthPlane(depth, "cameraFar", s.FfxFarBits);
|
||||
// A range, lowest to highest - never a series, which would say when the player aimed (D114).
|
||||
if (Number(s.FfxFovMinBits) is double low && Number(s.FfxFovMaxBits) is double high)
|
||||
{
|
||||
// One value or two: told by the bits, which is what "the same float" means (and what csharpsquid:S1244 asks).
|
||||
depth.Add(new AdvancedRow("cameraFovAngleVertical", s.FfxFovMinBits == s.FfxFovMaxBits
|
||||
? string.Create(CultureInfo.InvariantCulture, $"{low:0.####} rad ({Degrees(low):0.#}°)")
|
||||
: string.Create(CultureInfo.InvariantCulture, $"{low:0.####} – {high:0.####} rad ({Degrees(low):0.#}° – {Degrees(high):0.#}°)")));
|
||||
}
|
||||
|
||||
AddFieldOfView(depth, "cameraFovAngleVertical", s.FfxFovMinBits, s.FfxFovMaxBits);
|
||||
if (depth.Count > 0)
|
||||
{
|
||||
facts.Add(Fact("ffx.upscale.depth", AdvancedValue.OfRows(depth)));
|
||||
@@ -421,6 +408,32 @@ public sealed class InGameAdvancedSampler
|
||||
}
|
||||
}
|
||||
|
||||
// A field of view as the game gave it: a range, lowest to highest - never a series, which would say when the
|
||||
// player aimed (D114). Both vendors' headers say radians, and a value over pi cannot be one: Cyberpunk 2077 gives
|
||||
// Streamline 51 to 90 (the owner's sessions of 2026-11-12, where this printed "51.0055 - 90 rad (2922.4 deg ...)").
|
||||
// Such a value is said as it was given, and a second row says what it is not. It is never converted: which unit
|
||||
// the game meant is this project's guess, and the row would then carry the guess as the game's word (D128).
|
||||
private static void AddFieldOfView(List<AdvancedRow> rows, string member, uint minBits, uint maxBits)
|
||||
{
|
||||
if (Number(minBits) is not double low || Number(maxBits) is not double high)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// One value or two: told by the bits, which is what "the same float" means (and what csharpsquid:S1244 asks).
|
||||
bool one = minBits == maxBits;
|
||||
if (high > Math.PI)
|
||||
{
|
||||
rows.Add(new AdvancedRow(member, one ? Text(low) : Text(low) + " – " + Text(high)));
|
||||
rows.Add(new AdvancedRow(member + " unit", _notRadians, _notRadians));
|
||||
return;
|
||||
}
|
||||
|
||||
rows.Add(new AdvancedRow(member, one
|
||||
? string.Create(CultureInfo.InvariantCulture, $"{low:0.####} rad ({Degrees(low):0.#}°)")
|
||||
: string.Create(CultureInfo.InvariantCulture, $"{low:0.####} – {high:0.####} rad ({Degrees(low):0.#}° – {Degrees(high):0.#}°)")));
|
||||
}
|
||||
|
||||
private static string? Range(uint minBits, uint maxBits) =>
|
||||
Number(minBits) is double low && Number(maxBits) is double high
|
||||
? minBits == maxBits ? Text(low) : Text(low) + " – " + Text(high)
|
||||
|
||||
@@ -22,6 +22,11 @@ namespace FrameLedger.Application.Recording;
|
||||
/// (<c>19_SAFETY</c>: re-enabling silently would mean a rules feed or a policy can switch injection on
|
||||
/// for a game without anyone looking).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>The count starts again when the user switches hooking on</b> (owner decision D126, 0.1.0-beta.44): the consent
|
||||
/// grant sets <c>hook_crash_count</c> to 0. Until then the count only ever grew, so once a game had been switched off,
|
||||
/// every single early abnormal end after its user switched it on again switched it off - the reason still saying "twice".
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public sealed class CrashAutoDisablePolicy
|
||||
{
|
||||
|
||||
@@ -51,9 +51,14 @@ public sealed class SqliteGameConsentStore : IGameConsentStore
|
||||
+ "VALUES (@name, @path, @size, @mtime, 1, @at, @provenance, @disclosure, @at, @at)";
|
||||
|
||||
// The block columns are NOT in the SET list: that is the merge-forward, expressed as an omission.
|
||||
// hook_crash_count = 0 IS (owner decision D126, 0.1.0-beta.44): the count of early abnormal ends was never set back,
|
||||
// so a game switched off after two, and switched on again by its user, was switched off by the next single one -
|
||||
// under a reason that says "twice" (Lies of P, 2026-11-12: two ends in October, one more today). A grant is the only
|
||||
// statement that turns hooking on, and it is the user's act; the count starts again there. What the row says of the
|
||||
// last time (hook_autodisabled_reason, hook_autodisabled_at) stays - the App shows it only while hooking is off.
|
||||
private const string _updateGrant =
|
||||
"UPDATE games SET exe_size_bytes = @size, exe_mtime_ms = @mtime, hook_enabled = 1, hook_consent_at = @at, "
|
||||
+ "hook_consent_provenance = @provenance, hook_consent_disclosure_version = @disclosure, updated_at = @at "
|
||||
+ "hook_consent_provenance = @provenance, hook_consent_disclosure_version = @disclosure, hook_crash_count = 0, updated_at = @at "
|
||||
+ "WHERE exe_path = @path";
|
||||
|
||||
private const string _revoke =
|
||||
|
||||
@@ -152,7 +152,7 @@ public sealed class InGameAdvancedSamplerTests
|
||||
sampler.Take(new InGameAdvanced(s));
|
||||
|
||||
Rows(Fact(sampler, "ffx.upscale.sharpening")).Should().Equal("enableSharpening=on_and_off", "sharpness=0.2 – 0.35");
|
||||
InGameAdvancedSampler.Tokens.Should().Contain(["on", "off", "on_and_off", "none", "draw_debug_view", "non_linear_color_srgb", "non_linear_color_pq"],
|
||||
InGameAdvancedSampler.Tokens.Should().Contain(["on", "off", "on_and_off", "none", "not_radians", "draw_debug_view", "non_linear_color_srgb", "non_linear_color_pq"],
|
||||
"each is a word the App has in three languages; a test there holds it to this list");
|
||||
Fact(sampler, "ffx.upscale.exposure").Value.Text.Should().Be("1.25 – 2");
|
||||
Rows(Fact(sampler, "ffx.upscale.depth")).Should().Contain("cameraFovAngleVertical=0.9 rad (51.6°)", "one value is said once");
|
||||
@@ -277,10 +277,41 @@ public sealed class InGameAdvancedSamplerTests
|
||||
Rows(Fact(other, "ffx.framegen.config")).Should().Equal(
|
||||
"frameGenerationEnabled=on_and_off", "onlyPresentGenerated=off", "flags=DRAW_DEBUG_TEAR_LINES, bit 9");
|
||||
|
||||
// A rectangle with no area is one the game did not give.
|
||||
// A rectangle with no area is one the game did not give. A configure that set no flag says so, as an upscale
|
||||
// does (0.1.0-beta.44): the row was missing, and "no row" read as "not read".
|
||||
var none = new InGameAdvancedSampler();
|
||||
none.Take(new InGameAdvanced(InGameStates.WithRect(InGameStates.FrameGeneration() with { FfxFgFlagsSeen = 0 }, 0, 0, 0, 0)));
|
||||
Rows(Fact(none, "ffx.framegen.config")).Should().Equal("frameGenerationEnabled=on", "allowAsyncWorkloads=off", "onlyPresentGenerated=off");
|
||||
AdvancedFact noFlags = Fact(none, "ffx.framegen.config");
|
||||
Rows(noFlags).Should().Equal("frameGenerationEnabled=on", "allowAsyncWorkloads=off", "onlyPresentGenerated=off", "flags=none");
|
||||
noFlags.Value.Rows![3].Token.Should().Be("none", "the App translates the word");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AFieldOfViewOverPiIsSaidAsTheGameGaveItAndNeverConverted()
|
||||
{
|
||||
// D128. Cyberpunk 2077 gives Streamline its field of view in degrees - 51.0055 to 90 on 2026-11-12 - where the
|
||||
// vendor's header says radians, and the row read "51.0055 - 90 rad (2922.4 deg - 5156.6 deg)". A value over pi
|
||||
// cannot be radians: it is said as given, a second row says what it is not, and nothing is converted.
|
||||
var sampler = new InGameAdvancedSampler();
|
||||
sampler.Take(new InGameAdvanced(InGameStates.Streamline() with { SlFovMinBits = InGameStates.Bits(51.0055f), SlFovMaxBits = InGameStates.Bits(90f) }));
|
||||
|
||||
AdvancedFact projection = Fact(sampler, "sl.constants.projection");
|
||||
Rows(projection).Should().Equal("cameraFOV=51.0055 – 90", "cameraFOV unit=not_radians", "cameraAspectRatio=1.75", "orthographicProjection=off");
|
||||
projection.Value.Rows![0].Token.Should().BeNull("the number is the game's");
|
||||
projection.Value.Rows![1].Token.Should().Be("not_radians", "the App says it in three languages");
|
||||
|
||||
// One value, and FSR's field the same way; a range that only ends over pi is not half radians.
|
||||
var one = new InGameAdvancedSampler();
|
||||
one.Take(new InGameAdvanced(InGameStates.Ffx() with { FfxFovMinBits = InGameStates.Bits(75f), FfxFovMaxBits = InGameStates.Bits(75f) }));
|
||||
Rows(Fact(one, "ffx.upscale.depth")).Should().ContainInOrder("cameraFovAngleVertical=75", "cameraFovAngleVertical unit=not_radians");
|
||||
var mixed = new InGameAdvancedSampler();
|
||||
mixed.Take(new InGameAdvanced(InGameStates.Streamline() with { SlFovMinBits = InGameStates.Bits(1.2f), SlFovMaxBits = InGameStates.Bits(3.5f) }));
|
||||
Rows(Fact(mixed, "sl.constants.projection")).Take(2).Should().Equal("cameraFOV=1.2 – 3.5", "cameraFOV unit=not_radians");
|
||||
|
||||
// Pi itself is a radian: a half-turn, which no game renders, and still not this rule's to refuse.
|
||||
var edge = new InGameAdvancedSampler();
|
||||
edge.Take(new InGameAdvanced(InGameStates.Streamline() with { SlFovMinBits = InGameStates.Bits(3.0f), SlFovMaxBits = InGameStates.Bits(3.0f) }));
|
||||
Rows(Fact(edge, "sl.constants.projection")).Take(2).Should().Equal("cameraFOV=3 rad (171.9°)", "cameraAspectRatio=1.75");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -223,6 +223,32 @@ public sealed class SqliteGameConsentStoreTests
|
||||
(await store.FindAsync(Fingerprint().ExePath, Ct)).Fingerprint.SizeBytes.Should().Be(12345);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AGrantStartsTheCountOfEarlyAbnormalEndsAgain()
|
||||
{
|
||||
// Owner decision D126 (2026-11-12). The count was never set back: Lies of P had two early ends in October, its
|
||||
// user switched hooking on again, and one more - the game's own crash - switched it off at once, under a reason
|
||||
// that says "twice". The grant is the user's act and the only statement that turns hooking on.
|
||||
await using LedgerFixture f = await LedgerFixture.OpenAsync();
|
||||
var store = new SqliteGameConsentStore(f.Db);
|
||||
var games = new SqliteGameRepository(f.Db);
|
||||
ExecutableFingerprint fp = Fingerprint();
|
||||
await store.RecordOperatorAcknowledgementAsync(Ack(fp), Ct);
|
||||
GameRow row = (await games.FindAsync(fp.ExePath, Ct))!;
|
||||
(await games.RecordCrashAsync(row.Id, Ct)).Should().Be(1);
|
||||
(await games.RecordCrashAsync(row.Id, Ct)).Should().Be(2);
|
||||
(await games.AutoDisableHookAsync(row.Id, "ended abnormally twice", DateTimeOffset.UnixEpoch.AddSeconds(9), Ct)).Should().BeTrue();
|
||||
(await games.FindAsync(fp.ExePath, Ct))!.HookEnabled.Should().BeFalse();
|
||||
|
||||
(await store.RecordOperatorAcknowledgementAsync(Ack(fp), Ct)).Should().Be(ConsentWriteOutcome.Written);
|
||||
|
||||
GameRow again = (await games.FindAsync(fp.ExePath, Ct))!;
|
||||
again.HookEnabled.Should().BeTrue();
|
||||
again.HookCrashCount.Should().Be(0, "two more are needed before hooking goes off again");
|
||||
again.HookAutoDisabledReason.Should().Be("ended abnormally twice", "what happened the last time stays on the row");
|
||||
(await games.RecordCrashAsync(row.Id, Ct)).Should().Be(1, "one early end after the grant is one, not three");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AStoreWhoseTableIsGoneRefusesEveryWriteAndConsentsToNothing()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user