Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d5f704c76 | ||
|
|
9411aa0f6f | ||
|
|
4130b7cbe4 | ||
|
|
5db18c9da9 | ||
|
|
d565760830 |
No files matched your search
@@ -154,7 +154,9 @@ jobs:
|
||||
$ref = if ('${{ steps.version.outputs.dry_run }}' -eq 'true') { '${{ github.sha }}' } else { "v$v" }
|
||||
dotnet publish src/FrameLedger.App -c Release -r win-x64 --self-contained -p:PublishReadyToRun=true -p:Version=$v -p:FrameLedgerSourceRef=$ref -o out/app
|
||||
if ($LASTEXITCODE -ne 0) { throw 'App publish failed' }
|
||||
dotnet publish src/FrameLedger.Agent -c Release -r win-x64 --self-contained -p:PublishReadyToRun=true -p:Version=$v -o out/app
|
||||
# beta.14 (D50): the same ref for the Agent - Directory.Build.props stamps it on every assembly, and both
|
||||
# publishes build the same libraries into this one folder.
|
||||
dotnet publish src/FrameLedger.Agent -c Release -r win-x64 --self-contained -p:PublishReadyToRun=true -p:Version=$v -p:FrameLedgerSourceRef=$ref -o out/app
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Agent publish failed' }
|
||||
|
||||
# A self-contained package redistributes the .NET runtime, and its licence and
|
||||
@@ -195,7 +197,8 @@ jobs:
|
||||
if ($missing.Count -gt 0) { throw "out/app is missing: $($missing -join ', ')" }
|
||||
if (Test-Path out/app/FrameLedger.CaptureHost.exe) { throw 'out/app contains the unshipped capture host (12_BUILD: exactly two roots)' }
|
||||
if (@(Get-ChildItem out/app/licenses/dotnet -File -ErrorAction SilentlyContinue).Count -lt 2) { throw 'out/app/licenses/dotnet holds fewer than two files -- the runtime licence step did not run' }
|
||||
./tools/versioninfo-check.ps1 -BuildDir out/app
|
||||
# beta.14 (D50): the managed half too - the eight managed binaries, carrying the tag's full version.
|
||||
./tools/versioninfo-check.ps1 -BuildDir out/app -ManagedDir out/app -ExpectedProductVersion '${{ steps.version.outputs.version }}'
|
||||
if ($LASTEXITCODE -ne 0) { throw 'versioninfo-check over the published tree' }
|
||||
$size = (Get-ChildItem out/app -Recurse -File | Measure-Object Length -Sum).Sum / 1MB
|
||||
Write-Host ("published tree: {0:N0} MB" -f $size)
|
||||
|
||||
@@ -28,11 +28,61 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.1.0-beta.14] - 2026-10-06
|
||||
|
||||
**The fourteenth pre-release: a wheel that scrolls, updates that find this channel and wait for your games, crashes told
|
||||
apart from memory reports, and new measurements.** The same unsigned installer: verify its hash against
|
||||
`SHA256SUMS.txt`, then *More info → Run anyway*. What changed for a user:
|
||||
|
||||
- **The mouse wheel scrolls every page, dialog and chart**; over a chart the wheel scrolls the page and **Ctrl+wheel**
|
||||
zooms the chart. **Settings ▸ Window ▸ Hide scroll bars** draws no bar and still scrolls. The import list is readable
|
||||
in the dark theme.
|
||||
- **Updates come from the channel of the copy you run** — a beta looks for betas — and are never applied on their own
|
||||
when the App starts; restarting to update waits while a game FrameLedger measured is still running, and says so.
|
||||
- **A game that crashed reads *crashed*, and only then**: a Windows memory report about a game no longer counts as a
|
||||
crash, and an Unreal Engine game that opens its crash reporter and closes is recorded as crashed, the reporter named.
|
||||
- **A game starting up or closing during FrameLedger's anti-cheat check** is read again once instead of refused, and a
|
||||
check that could not read a game that had already closed ends the session as the game's own exit.
|
||||
- **New in every session's summary**: time below 30 and 60 FPS and below the monitor's refresh rate, how even the frames
|
||||
were, VSync and tearing, the graphics card's clocks, fan and memory temperature, how much of the time its power limit
|
||||
or heat held it back (NVIDIA), frames per watt, and a render scale chart. Trend and Compare have them too.
|
||||
- **FrameLedger's own programs say what they are** in Explorer and Task Manager (*FrameLedger Agent*).
|
||||
|
||||
**Updating from `0.1.0-beta.13`:**
|
||||
|
||||
1. **First choose *Beta* in Settings ▸ Updates.** beta.13 looks for stable releases by default, and every release so far
|
||||
is a pre-release, so it finds nothing until you do. From beta.14 on the channel follows the copy you run.
|
||||
2. **Update with no game running.** beta.13 still applies a downloaded update the next time the App starts, stopping the
|
||||
Agent to do it; beta.14 no longer does.
|
||||
3. **The database is migrated in place** (schema 0019, new columns only). An earlier version cannot open it afterwards.
|
||||
4. Sessions already stored keep their status — a few may still read *crashed* because Windows logged a memory report
|
||||
about the game. The Privacy Policy (version 2.7) is shown once for you to accept.
|
||||
|
||||
### Added
|
||||
|
||||
- **Settings ▸ Window ▸ Hide scroll bars.** No scroll bar is drawn anywhere in the app while it is on, and everything
|
||||
still scrolls with the mouse wheel, the keyboard and touch. Off by default; it applies at once, to the open windows
|
||||
too, and off brings every bar back.
|
||||
- **New measurements in every session** (recorded from this version on; earlier sessions read N/A):
|
||||
- **time below 30 FPS, below 60 FPS and below the monitor's refresh rate**, and how much one frame's time differs from
|
||||
the next. A game held at its frame limit is not counted as dropping below it for the small wobble every frame limit
|
||||
has — on the developer's machine a game capped at 60 read half its time "below 60" by the plain rule;
|
||||
- **VSync and tearing**: how many of the game's frames asked to wait for the display, and how many allowed tearing
|
||||
(Direct3D games);
|
||||
- **the graphics card's clock speeds, fan speed and memory temperature**, and — on NVIDIA cards — how much of the time
|
||||
its power limit or its temperature held it back;
|
||||
- **frames per watt**: the game's own frames per second for each watt the graphics card drew, never counting generated
|
||||
frames.
|
||||
|
||||
The session's sensor statistics table shows the new card readings in their own units. The database is migrated in
|
||||
place (schema 0019), and an earlier version cannot open it afterwards.
|
||||
- **Where the new measurements are shown:** the session summary has a card for each (the 1% low card also shows the
|
||||
displayed frames' 1% low when frame generation was counted, beside the game's own), a **Render scale** chart — the
|
||||
share of the screen's resolution the game rendered at, over the session — and a **Clocks and fan** chart under
|
||||
Sensors, with the moments the card was held back shaded; the card's memory temperature joins the temperatures chart.
|
||||
A game's **Trend** has nine more metrics and **Compare** nine more rows, where a figure taken over presents says
|
||||
*(presented)* beside one taken over the game's own frames. The **Latency** tab is shown only for a game with a session
|
||||
that measured latency — none does yet.
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -86,6 +136,12 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
- **Over a chart, the wheel scrolls the page; Ctrl+wheel zooms the chart.** ScottPlot zoomed on every wheel, which with
|
||||
the pages scrolling again would have zoomed the chart and scrolled the page at once. Dragging still pans and
|
||||
double-click still resets.
|
||||
- **FrameLedger's own programs say what they are.** In Explorer (*Properties ▸ Details*) `FrameLedger.exe` and
|
||||
`FrameLedger.Agent.exe` now name the product, the author's copyright and what each one does, as the native DLLs always
|
||||
have; Task Manager lists the background service as *FrameLedger Agent* rather than *FrameLedger.Agent*. Until this
|
||||
release the Agent called its company and product "FrameLedger.Agent" and no managed file carried a copyright. The
|
||||
release check now reads both kinds of file and fails when one of them does not name FrameLedger or carries a different
|
||||
copyright line.
|
||||
|
||||
## [0.1.0-beta.13] - 2026-10-04
|
||||
|
||||
|
||||
@@ -69,6 +69,32 @@
|
||||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- beta.14 (D50): every managed binary names the product and who wrote it, as the native ones always have
|
||||
(19_SAFETY: a binary says plainly what it is). Explorer's Properties > Details and Task Manager read these. Until
|
||||
beta.14 the SDK's defaults stood: the Agent's Company and Product read "FrameLedger.Agent", each library's its own
|
||||
assembly name, and no managed binary carried a copyright. The copyright is the native FL_COPYRIGHT
|
||||
(src/native/CMakeLists.txt) word for word: tools/versioninfo-check.ps1 reads both from the built binaries and is
|
||||
red when they differ. The file description is the AssemblyTitle - an entry point sets its own, a library keeps its
|
||||
assembly name - and the Description is the Comments field, the native blocks' sentence for a library. The SDK
|
||||
stamps RepositoryUrl into every assembly as AssemblyMetadata; it is the App's IssueLink.Repository, and the App's
|
||||
AssemblyIdentityTests holds the two equal (a fork changes both - FORKING.md). -->
|
||||
<PropertyGroup>
|
||||
<Company>FrameLedger</Company>
|
||||
<Product>FrameLedger</Product>
|
||||
<Authors>poli0981</Authors>
|
||||
<Copyright>Copyright (C) 2026 poli0981. GPL-3.0-only with additional terms: see NOTICE</Copyright>
|
||||
<Description>Performance measurement tool. Identifies itself deliberately; see https://github.com/poli0981/frameledger</Description>
|
||||
<RepositoryUrl>https://github.com/poli0981/frameledger</RepositoryUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- beta.12: the source a build was made from - release.yml passes the tag (a rehearsal, its commit); a local build has
|
||||
none. The App's links into the repository open THIS version's documents with it (Services/RepositoryLinks.cs).
|
||||
Every assembly since beta.14 (D50), not the App's alone: the two publishes build the same libraries into one
|
||||
out/app, and release.yml passes the same ref to both. -->
|
||||
<ItemGroup Condition="'$(FrameLedgerSourceRef)' != ''">
|
||||
<AssemblyMetadata Include="FrameLedgerSourceRef" Value="$(FrameLedgerSourceRef)" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Test projects: documentation comments are noise, and xUnit's own
|
||||
analyzers already cover what matters there. -->
|
||||
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ share — and migrate — one database, and fight over the same pipe and shared
|
||||
| Logon task | `LogonTask` (the Agent's maintenance verbs) | one task per name |
|
||||
| Issue and help links | `IssueLink.Repository` (`src/FrameLedger.App/Services/IssueLink.cs`) — `RepositoryLinks` builds every document link in the App from it and the source ref `release.yml` passes — plus the Releases link in `guide/01-install.md` and `.github/ISSUE_TEMPLATE/` | your users' reports belong in your tracker |
|
||||
| Who the documents name | `legal/EULA.md`, `legal/DISCLAIMER.md`, `legal/PRIVACY_POLICY.md` name poli0981 as the Developer, with a contact | the person who distributes a build is the one its users deal with; review every claim they make, too — they describe FrameLedger's builds, not yours |
|
||||
| Version information | `FL_COMPANY_NAME` / `FL_PRODUCT_NAME` in `src/native/CMakeLists.txt`, and the `ProductName` that `tools/versioninfo-check.ps1` requires | anti-cheat vendors and users identify the DLLs loaded into games by it (`docs/19_SAFETY_AND_ANTICHEAT.md`); it must name your project |
|
||||
| Version information | `FL_COMPANY_NAME` / `FL_PRODUCT_NAME` / `FL_COPYRIGHT` in `src/native/CMakeLists.txt`; `Company` / `Product` / `Authors` / `Copyright` / `Description` / `RepositoryUrl` in `Directory.Build.props` and the `AssemblyTitle` / `Description` of the App's and the Agent's csproj (since beta.14); and the names `tools/versioninfo-check.ps1` and the two `AssemblyIdentityTests` require | anti-cheat vendors and users identify the DLLs loaded into games and the processes beside them by it (`docs/19_SAFETY_AND_ANTICHEAT.md`); it must name your project, and the copyright line must be one line on every binary — the check compares them |
|
||||
| Checksums | your own `SHA256SUMS.txt` | users verify what *you* built |
|
||||
|
||||
The detection rules and the anti-cheat blocklist (`rules/detection-rules.json`) ship with each build; keeping them
|
||||
|
||||
+15
-1
@@ -5,7 +5,7 @@ hooking on for — and reading the graphics calls the game makes. That is why it
|
||||
resolution, the upscaler, frame generation and ray tracing apart. It is also where its limits come from. This
|
||||
page lists them in plain words; each item links to the document that has the details.
|
||||
|
||||
*Beta software: this page describes version 0.1.0-beta.13.*
|
||||
*Beta software: this page describes version 0.1.0-beta.14.*
|
||||
|
||||
## Games it will not measure
|
||||
|
||||
@@ -64,9 +64,18 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
- **A session whose frame generation changed** (menus, loading, a settings change) shows the factor of the
|
||||
state it spent most of its time in, with the share of the session it covers — never an average of the two.
|
||||
([Metrics](docs/03_METRICS.md))
|
||||
- **Time below 30, 60 FPS and below the refresh rate** (since 0.1.0-beta.14) leaves out the small wobble of a game
|
||||
held at its limit: a frame counts as below 60 when it took 10 % longer than 1/60 s, or when the frames around it ran
|
||||
2 % slower. So a game running steadily just under the line — 59 FPS against 60 — reads partly as at it. Time below
|
||||
the refresh rate needs the monitor's rate, which a session saved after a crash does not have.
|
||||
- **VSync and tearing** (since 0.1.0-beta.14) are what the game *asked* for on each frame; the graphics driver or a
|
||||
variable-refresh display can override it, and FrameLedger cannot see which won. OpenGL and Vulkan games do not say,
|
||||
and read N/A. ([Metrics](docs/03_METRICS.md))
|
||||
|
||||
## Upscaling and ray tracing
|
||||
|
||||
- **The render scale chart** (since 0.1.0-beta.14) is drawn only where the render resolution was measured — the
|
||||
same games as *Render → output resolution* in the accuracy statement; elsewhere it says it was not measured.
|
||||
- The upscaler is read from the game's calls: DLSS and NIS through NVIDIA Streamline, and FSR through AMD's
|
||||
FidelityFX libraries. **Intel XeSS is not read** (its licence forbids it), FSR 2 and upscalers built into the
|
||||
game are not identified, and Vulkan and OpenGL games read N/A. Where no hook saw DLSS but the NVIDIA driver
|
||||
@@ -123,6 +132,11 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
- **CPU temperature** needs *Run the agent as administrator* and the separately installed PawnIO driver, and
|
||||
has not been verified on real hardware yet. CPU load is the time the processor was busy — not Task
|
||||
Manager's "utility" figure, which can exceed 100%. ([Telemetry](docs/18_GPU_VENDOR_APIS.md))
|
||||
- **Whether the graphics card was held back by its power limit or by heat** (since 0.1.0-beta.14) is known only on
|
||||
NVIDIA cards, and only as it was at each once-a-second reading. On other cards it reads N/A.
|
||||
- **Frames per watt** (since 0.1.0-beta.14) counts the game's own frames — never generated ones — against the graphics
|
||||
card's power alone, not the processor's or the whole PC's. It reads N/A where the game's own frame rate is not known.
|
||||
([Metrics](docs/03_METRICS.md))
|
||||
|
||||
## Running the agent as administrator
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ anti-cheat, and look after your data, a page each. What FrameLedger cannot do is
|
||||
[Limitations](LIMITATIONS.md). Both are in the app too (Help ▸ User guide, Help ▸ Limitations).
|
||||
|
||||
<!-- accuracy-block:begin -->
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-10-04.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.13`** (2026-10-04), an unsigned installer built from that tag with its
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-10-06.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.14`** (2026-10-06), an unsigned installer built from that tag with its
|
||||
> checksums published beside it. The source holds the desktop app
|
||||
> (library, store import, charts, settings) and the background Agent, which records a session when a
|
||||
> game in the library runs (unless you switched its recording off), injects only into games you enabled
|
||||
@@ -73,6 +73,14 @@ anti-cheat, and look after your data, a page each. What FrameLedger cannot do is
|
||||
> and charted. **Not measured at all:** the video-memory budget Windows gives a game, which frame
|
||||
> spikes were shader compilation, PC latency (Reflex), and HDR. Stutter count and stutter time are
|
||||
> measured from frame times.
|
||||
> - **Pacing, VSync and the graphics card (since beta.14):** the share of the time below 30 FPS, below 60 FPS and below
|
||||
> the monitor's refresh rate, measured from frame times with small margins so that a game held at its limit is not
|
||||
> counted as below it (a rate less than 2 % under the line reads partly as at it), and how much one frame's time
|
||||
> differs from the next; for Direct3D titles, how many frames asked to wait for the display and how many allowed
|
||||
> tearing — what the game asked, not what the driver did; the graphics card's clock speeds, fan speed and memory
|
||||
> temperature in every session, and, on NVIDIA cards only, how much of the time its power limit or its temperature held
|
||||
> it back, read once a second; and frames per watt — the game's own frames per second for each watt the graphics card
|
||||
> drew, never counting generated frames, `N/A` where the game's own frame rate is not known.
|
||||
> - **Processor and memory:** how busy the processor was (time busy, all cores together — not the
|
||||
> frequency-scaled figure Task Manager draws) and how much system memory was in use, read from
|
||||
> Windows once a second and charted. Processor temperature is read only when the Agent runs as
|
||||
@@ -153,7 +161,7 @@ Elevation is **optional — for everything.** Hooked capture is the normal path
|
||||
|
||||
## Install
|
||||
|
||||
> **The latest pre-release is `v0.1.0-beta.13` (2026-10-04); before it `v0.1.0-beta.12` (2026-10-04), `v0.1.0-beta.11` (2026-10-03), `v0.1.0-beta.10` (2026-09-28), `v0.1.0-beta.9` (2026-09-26), `v0.1.0-beta.8` (2026-09-25), `v0.1.0-beta.7` (2026-09-23), `v0.1.0-beta.6` (2026-09-23), `v0.1.0-beta.5` (2026-09-22), `v0.1.0-beta.4` (2026-09-21), `v0.1.0-beta.3` (2026-09-21), `v0.1.0-beta.2` (2026-09-17) and `v0.1.0-beta.1` (2026-09-16).** They are pre-releases: read `CHANGELOG.md`'s section for the one you install — what it measures, what it does not yet, and how to update — before installing. A source build is `docs/12_BUILD.md`.
|
||||
> **The latest pre-release is `v0.1.0-beta.14` (2026-10-06); before it `v0.1.0-beta.13` (2026-10-04), `v0.1.0-beta.12` (2026-10-04), `v0.1.0-beta.11` (2026-10-03), `v0.1.0-beta.10` (2026-09-28), `v0.1.0-beta.9` (2026-09-26), `v0.1.0-beta.8` (2026-09-25), `v0.1.0-beta.7` (2026-09-23), `v0.1.0-beta.6` (2026-09-23), `v0.1.0-beta.5` (2026-09-22), `v0.1.0-beta.4` (2026-09-21), `v0.1.0-beta.3` (2026-09-21), `v0.1.0-beta.2` (2026-09-17) and `v0.1.0-beta.1` (2026-09-16).** They are pre-releases: read `CHANGELOG.md`'s section for the one you install — what it measures, what it does not yet, and how to update — before installing. A source build is `docs/12_BUILD.md`.
|
||||
|
||||
1. Download the latest `FrameLedger.App-win-Setup.exe` from [Releases](https://github.com/poli0981/frameledger/releases). It installs into `%LOCALAPPDATA%\FrameLedger.App`; your data stays in `%LOCALAPPDATA%\FrameLedger`, and uninstalling asks before touching it.
|
||||
2. SmartScreen may warn — releases are not code-signed (free, open-source project). Verify the SHA-256 checksum published with each release, then **More info → Run anyway**.
|
||||
@@ -200,4 +208,4 @@ GPU telemetry is layered so the project never depends on a proprietary vendor li
|
||||
|
||||
---
|
||||
|
||||
**Status:** pre-release (beta). Thirteen tagged pre-releases so far; see `CHANGELOG.md` for what each one changed and the accuracy block at the top of this file for what is and is not measured. It is not feature-complete, it certainly still has bugs, and `legal/DISCLAIMER.md` §0 says what that means for you.
|
||||
**Status:** pre-release (beta). Fourteen tagged pre-releases so far; see `CHANGELOG.md` for what each one changed and the accuracy block at the top of this file for what is and is not measured. It is not feature-complete, it certainly still has bugs, and `legal/DISCLAIMER.md` §0 says what that means for you.
|
||||
@@ -320,13 +320,27 @@ function Invoke-ProjectGates {
|
||||
# Being plainly identifiable to anti-cheat is a requirement, not packaging
|
||||
# polish (docs/19_SAFETY_AND_ANTICHEAT.md). Reads the built binary, because
|
||||
# what ships is what an anti-cheat vendor sees.
|
||||
#
|
||||
# beta.14 (D50): BOTH HALVES. The rules prove themselves first (ten cases,
|
||||
# nine RED, each for its own reason), then the live pass reads the native five
|
||||
# and the managed eight from the App's and the Agent's build output, whose
|
||||
# ProductVersion is the VERSION file's here (release.yml passes the tag's).
|
||||
# Under -SkipNative the managed half still runs.
|
||||
Write-Step 'versioninfo-check'
|
||||
$versionTool = Join-Path $repo 'tools/versioninfo-check.ps1'
|
||||
if ((Test-Path $versionTool) -and -not $SkipNative) {
|
||||
Invoke-Checked 'versioninfo-check' { & $versionTool -BuildDir (Join-Path $repo "build/native/x64-$($Configuration.ToLower())") }
|
||||
}
|
||||
elseif ($SkipNative) {
|
||||
Skip-Gate 'versioninfo-check' 'native build skipped, so there is no binary to inspect'
|
||||
if (Test-Path $versionTool) {
|
||||
Invoke-Checked 'versioninfo-check (self-test)' { & $versionTool -SelfTest }
|
||||
$managedDirs = @('FrameLedger.App', 'FrameLedger.Agent' | ForEach-Object { Join-Path $repo "src/$_/bin/$Configuration" })
|
||||
$productVersion = (Get-Content (Join-Path $repo 'VERSION') -Raw).Trim()
|
||||
if ($SkipNative) {
|
||||
Invoke-Checked 'versioninfo-check (managed)' { & $versionTool -ManagedOnly -ManagedDir $managedDirs -ExpectedProductVersion $productVersion }
|
||||
Skip-Gate 'versioninfo-check (native)' 'native build skipped, so there is no binary to inspect'
|
||||
}
|
||||
else {
|
||||
Invoke-Checked 'versioninfo-check' {
|
||||
& $versionTool -BuildDir (Join-Path $repo "build/native/x64-$($Configuration.ToLower())") -ManagedDir $managedDirs -ExpectedProductVersion $productVersion
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
Skip-Gate 'versioninfo-check' 'tools/versioninfo-check.ps1 not implemented yet'
|
||||
|
||||
@@ -38,6 +38,9 @@ Let `D` = session duration (first → last present), `F_app` = frames the *game*
|
||||
| **Stutter time %** | `Σ ft_app[stutter] / Σ ft_app × 100` | 1 |
|
||||
| **PC latency** | mean/p95 of `reflexLatencyUs` when Reflex reports it | **1 only** |
|
||||
| **PSO stutter %** | share of stutter frames with `psoCreatedThisFrame > 0` | **1 only** |
|
||||
| **Time below 30 / 60 FPS** (beta.14) | share of `Σ ft_app` in frames that count as below X — `ft > 1.10 × 1000/X`, or the nine-frame rolling median `> 1.02 × 1000/X` (§Pacing) | 1 |
|
||||
| **Time below refresh** (beta.14) | the same over **presents**, X = `display_monitor_hz` — the display's rate, so over what the display received | 1 |
|
||||
| **Frame to frame** (beta.14) | mean `\|ft_app[k] − ft_app[k−1]\|` over neighbouring intervals, ms | 1 |
|
||||
|
||||
**Percentile method:** sort ascending, linear interpolation between closest ranks (NumPy `linear` / Excel `PERCENTILE`). Document it, test it — tools differ and users will compare numbers.
|
||||
|
||||
@@ -90,6 +93,41 @@ toward the session's data-quality warnings.
|
||||
|
||||
**Sufficiency guards (FR-4.8):** 0.1% Low needs ≥ 10,000 application frames, 1% Low ≥ 1,000; otherwise `N/A`.
|
||||
|
||||
## Pacing (beta.14, D49)
|
||||
|
||||
**Time below 30 / 60 FPS and below the refresh rate** are shares of the measured time — `Σ ft (counted) / Σ ft` — so a long
|
||||
hitch weighs what a player sits through, not one frame among many. **Frame to frame** is the mean change from one frame
|
||||
time to the next over neighbouring intervals (`FrameTimeSeries.FollowsBreak`: a pair with an interval left out between —
|
||||
a gap, a pause — is not a pair); it is low when pacing is even whatever the rate.
|
||||
|
||||
**Which frames count as below X — and why not "longer than 1000 / X".** The present-to-present interval of a game held
|
||||
at X jitters around `1000 / X` by a few tenths of a millisecond, half of it on the long side. Measured on a copy of the
|
||||
owner's ledger (2026-10-06): a GIRLS' FRONTLINE 2 session capped at 60 (median 16.63 ms, 296,380 frames) reads **50.0 %**
|
||||
of its time "below 60" under the plain rule, and a rolling mean does not help — the local average of a game held at 60
|
||||
sits on the threshold. So a frame counts when **it is itself more than 10 % longer** than `1000 / X` (a long frame, never
|
||||
jitter) **or the median of the nine frames around it** (`RollingMedian`, the stutter rule's centered window and edges) **is
|
||||
more than 2 % longer** (a rate that stays below X). The same session reads 9.6 % (its time below 30 alone is 4.7 %); with
|
||||
a 0.4 ms jitter a steady 58 FPS reads 93 %, a steady 60.2 reads 0.7 %, and a 100 ms hitch counts its own 100 ms and no
|
||||
neighbour's. **The cost, stated:** a rate less than 2 % under X (58.8–60 FPS for 60) reads partly as at X — a steady 59
|
||||
reads 40 %. `Domain.Metrics.FramePacing`; `FramePacingTests` pins each of these.
|
||||
|
||||
**Which series.** 30, 60 and frame to frame are over `ft_app` — application frames where generated frames were counted
|
||||
(rule 6: generated frames do not make a game run at 60), the presents otherwise, labelled `(presented)` as every
|
||||
present-only statistic is. **The refresh share is over the presents**, generated ones included: it is the display's rate,
|
||||
and what matters there is what the display received — a ×4 frame-generation session on a 240 Hz display reads near 0 %,
|
||||
and over its application frames it would read 100 % whatever the pacing. It needs `display_monitor_hz` (the display
|
||||
tally's, §Display mode): a session recovered from its crash file has none, and reads N/A. **Sufficiency:** the 1 % low's
|
||||
1,000 frames; below it every value is N/A.
|
||||
|
||||
## Sync — what the presents asked for (beta.14, D49)
|
||||
|
||||
`vsync_present_pct` is the share of the dominant stream's presents with a sync interval of one or more (the game asked
|
||||
to wait for the display), `tearing_allowed_pct` the share with `DXGI_PRESENT_ALLOW_TEARING`. Both arguments were in every
|
||||
Direct3D record since P1 (`FL_MEASURED_PRESENT_ARGS`) and read by nothing; `sessions.sync_interval_mode` (0001) gets its
|
||||
first writer with them — `on` (every present), `off` (none), `mixed`. **Asked, not obtained:** a driver setting or a
|
||||
variable-refresh display can override the request, and nothing in the process says which won. OpenGL's
|
||||
`wglSwapBuffers` and Vulkan's `vkQueuePresentKHR` carry neither argument: N/A, never 0 %. Tier 1 only.
|
||||
|
||||
## Frame Generation — ground truth (Tier 1)
|
||||
|
||||
This is the metric the rewrite exists for. Resolution ladder, highest confidence first; the winning rung is stored in `fg_source`:
|
||||
@@ -602,6 +640,12 @@ Tier 2 has none of this: `upscaler = unknown`, ratio `N/A`.
|
||||
> bookkeeping is per process, not per settings change. **Nothing native changed and no NGX hook was added**: the
|
||||
> licence bar in `20_OPEN_QUESTIONS` stands.
|
||||
|
||||
**The render scale over time (beta.14, D49).** The session summary draws `100 × √(render pixels / output pixels)` — the
|
||||
per-axis scale, `100 / upscale_ratio` — as steps over the session: from the `render_res` blob where the resolution
|
||||
varied (the finalizer stores it only then), a flat line at the row's extent where it did not, and a sentence where the
|
||||
upscaler's parameters were never measured (`App.Charts.RenderScaleSeries`). The Trend and Compare read the row's
|
||||
`upscale_ratio`, the dominant extent.
|
||||
|
||||
## RT / PT / RR — evidence-based tri-state
|
||||
|
||||
Tri-state `Yes | No | N/A` per session with `source` (`measured | manual | inherited`).
|
||||
@@ -798,6 +842,27 @@ Per session over 1 Hz samples: `avg` (mean of non-null), `max` — and since bet
|
||||
series. Sensor timeline aligned to the frame timeline via the shared QPC epoch captured at session start. Fields with no
|
||||
data are `N/A`, never 0.
|
||||
|
||||
**The card's clocks and limits (beta.14, D49), both tiers.** The core and memory clock (MHz), the fan (RPM) and the
|
||||
memory temperature were in the samples before (L2 reads them, L3 too) and stored nowhere; they are series now
|
||||
(`gpu_core_clock`, `gpu_mem_clock`, `gpu_fan`, `gpu_mem_temp`) with `avg_gpu_core_clock_mhz`, `avg_gpu_mem_clock_mhz`,
|
||||
`avg_gpu_fan_rpm` and `max_gpu_mem_temp`. **What held the card back** is NVAPI's perf-decrease reasons
|
||||
(`GpuSample.ThrottleReasons`, L3 only): `gpu_power_limit` / `gpu_thermal_limit` read 100 on a tick whose reasons include
|
||||
the power limit (`0x2`) / thermal slowdown (`0x1`) and 0 on one whose reasons do not, so their mean — `power_limit_pct`,
|
||||
`thermal_limit_pct` — is the share of ticks held back. A card no layer reports reasons for (every card but NVIDIA's) has
|
||||
no answer: N/A, never "not limited". `throttle_pct` (any reason) is unchanged.
|
||||
|
||||
## Efficiency (beta.14, D49)
|
||||
|
||||
`app_frames_per_joule` = the application frame rate ÷ the card's average board power — FPS per watt, frames per joule.
|
||||
**Never the displayed rate** (rule 6): a generated frame costs the card a fraction of a rendered one, and counting it would
|
||||
sell frame generation as efficiency. The application rate is known when frame generation was counted over the session
|
||||
(Native FPS; a counted `none` makes it the presented rate), or when no frame-generation runtime was loaded
|
||||
(`presented_qualifier = no_fg_runtime`). **Null** for `census_not_run`, `fg_runtime_loaded` and `none_withheld`, for a
|
||||
session whose generation changed state (its steady state covers a share of the session, and the power is the whole
|
||||
session's), without a power reading, and at Tier 2 (no frames). The power is the **graphics card's** — not the
|
||||
processor's, not the whole PC's — averaged over the session's sensor ticks. `Domain.Metrics.EnergyEfficiency`,
|
||||
`SessionAggregator.ApplyEfficiency`.
|
||||
|
||||
## Accuracy budget ~~(shown in Help → About metrics)~~
|
||||
|
||||
*(Corrected 2026-10-04: no such page exists. Users read these limits in `LIMITATIONS.md` (Help ▸ Limitations) and in
|
||||
@@ -814,6 +879,10 @@ data are `N/A`, never 0.
|
||||
| PC latency | as reported by Reflex | not available |
|
||||
| Display mode (beta.10) | per 100 ms sample: exclusive fullscreen as the swap chain answers it (DXGI; OpenGL and Vulkan cannot say), borderless, windowed, minimised; the window's size from user32 | per 1 s sample, from the window alone: windowed, minimised, or *fullscreen or borderless* — never split |
|
||||
| GPU temp / load / power | vendor API accuracy, ±1 s sampling | same |
|
||||
| GPU clocks / fan / memory temperature (beta.14) | vendor API accuracy, ±1 s sampling | same |
|
||||
| GPU power / thermal limit (beta.14) | NVAPI's perf-decrease reasons once a second — a limit that came and went between two ticks is not seen; NVIDIA only, N/A on every other card | same |
|
||||
| Time below 30 / 60 / refresh (beta.14) | from the frame times above, with the margins of §Pacing — a rate less than 2 % under the threshold reads partly as at it | **not available** |
|
||||
| Efficiency (beta.14) | the application rate's accuracy over the board-power sensor's; N/A wherever the application rate is not known | **not available** |
|
||||
| CPU temperature | sensor-inherent ±1–2 °C, needs LHM + PawnIO + elevation. **Read since 2026-09-21** (`Telemetry.LhmCpuTemperatureReader`: the package sensor, else the hottest core) and **unmeasured on real hardware** — no elevated run with PawnIO has been taken (`20_OPEN_QUESTIONS` §CPU) | same |
|
||||
| CPU load | **time busy over elapsed, every logical processor** (`GetSystemTimes`, 1 Hz, unprivileged; since 2026-09-21). Not Task Manager's "utility", which is frequency-scaled and exceeds 100 under turbo — the two are different numbers and this one is stated as what it is. Null on a session's first tick (no interval yet), never 0 | same |
|
||||
| System memory in use | physical memory in use machine-wide, MiB (`GlobalMemoryStatusEx`, 1 Hz, unprivileged; since 2026-09-21). The machine's, not the game's | same |
|
||||
|
||||
+26
-2
@@ -223,7 +223,8 @@ CREATE TABLE sessions (
|
||||
-- presentation
|
||||
api TEXT, present_mode TEXT, swap_effect TEXT,
|
||||
hdr_flag TEXT NOT NULL DEFAULT 'na', hdr_source TEXT, -- tri-state, like rt/rr beside it
|
||||
sync_interval_mode TEXT, -- observed vsync behavior
|
||||
sync_interval_mode TEXT, -- observed vsync behavior: on|off|mixed — first written in beta.14 (0019's
|
||||
-- §Sync), NULL where no present carried its arguments (OpenGL, Vulkan, Tier 2)
|
||||
|
||||
-- upscaling / FG (measured at tier 1)
|
||||
upscaler TEXT, -- none|dlss|fsr2|fsr3|fsr4|xess|nis|unknown, and fsr since 2026-09-04 (FL_UPSCALER_FSR_UNVERSIONED; added 2026-10-04)
|
||||
@@ -297,6 +298,16 @@ CREATE TABLE sessions (
|
||||
game_memory_source TEXT, -- counters,ex2,ex,held,opened — the reads that answered
|
||||
sensor_stats_json TEXT, -- {"gpu_temp":{"N":…,"Mean":…,"Median":…,"Min":…,"Max":…}, …}
|
||||
|
||||
-- schema 0019 (2026-10-06, beta.14, D49): pacing (hooked), the present arguments (Direct3D), the card's clocks and limits
|
||||
-- (both tiers) and efficiency (hooked) — 03_METRICS §Pacing, §Sync, §Sensor aggregates, §Efficiency
|
||||
time_below_30_pct REAL, time_below_60_pct REAL,
|
||||
time_below_refresh_pct REAL, -- over presents, at display_monitor_hz; NULL without a rate
|
||||
frametime_delta_mean_ms REAL, -- mean |ft[k] - ft[k-1]| over neighbouring intervals
|
||||
vsync_present_pct REAL, tearing_allowed_pct REAL, -- shares of the presents that carried their arguments
|
||||
avg_gpu_core_clock_mhz REAL, avg_gpu_mem_clock_mhz REAL, avg_gpu_fan_rpm REAL, max_gpu_mem_temp REAL,
|
||||
power_limit_pct REAL, thermal_limit_pct REAL, -- shares of the ticks that carried reasons: NVIDIA (L3) only
|
||||
app_frames_per_joule REAL, -- application FPS / average GPU board power; never displayed frames (rule 6)
|
||||
|
||||
-- schema 0016 (2026-09-27, beta.10): the display mode, both tiers (03_METRICS §Display mode). Milliseconds per mode,
|
||||
-- each sample standing for the time until the next (100 ms hooked, 1 s at Tier 2), a pause not counted; nowindow is
|
||||
-- outside every share. NULL before, on a session recovered from its .partial file, and where the loop never sampled —
|
||||
@@ -364,7 +375,10 @@ CREATE TABLE sensor_blobs (
|
||||
series TEXT NOT NULL, -- cpu_temp|gpu_temp|gpu_hotspot|gpu_load|gpu_power|vram_proc|vram_adapter|cpu_load|ram_mb
|
||||
-- (vram_proc was listed here from 0001 and never written); since schema 0018 (beta.12,
|
||||
-- D43) also game_vram_dedicated|game_vram_shared|game_ram_private|game_ram_ws|game_commit,
|
||||
-- MiB — the game process's own memory (Application.Recording.SensorSeriesCatalog)
|
||||
-- MiB — the game process's own memory (Application.Recording.SensorSeriesCatalog); since
|
||||
-- beta.14 (D49) also gpu_core_clock|gpu_mem_clock (MHz), gpu_fan (RPM), gpu_mem_temp (°C)
|
||||
-- and gpu_power_limit|gpu_thermal_limit (100 or 0 per tick, NVIDIA only) — a series name
|
||||
-- needs no migration
|
||||
-- cpu_load / ram_mb / cpu_temp and sessions.avg_cpu_load, avg_cpu_temp, max_cpu_temp,
|
||||
-- avg_ram_mb were in schema 0001 with NO producer until 2026-09-21 (Telemetry.SystemTelemetrySource
|
||||
-- on the poller's tick). Rows before that date hold NULL, which is what they measured; no migration.
|
||||
@@ -636,6 +650,16 @@ Sequential embedded SQL (`Migrations/0001_init.sql`, `0002_*.sql`, …), applied
|
||||
> `SqliteSessionRepositoryTests.ASessionRoundTripsColumnForColumn`,
|
||||
> `PartialSessionFileTests.TheGameMemoryRoundTripsAndANarrowSensorsChunkFromBeta11StillReads`.
|
||||
|
||||
> **`0019_pacing_sync_gpu_limits.sql` (beta.14, 2026-10-06, owner decision D49) — pacing, sync, the card, efficiency.**
|
||||
> Thirteen REAL columns, ADD COLUMN only: `time_below_{30,60,refresh}_pct`, `frametime_delta_mean_ms`,
|
||||
> `vsync_present_pct`, `tearing_allowed_pct`, `avg_gpu_{core,mem}_clock_mhz`, `avg_gpu_fan_rpm`, `max_gpu_mem_temp`,
|
||||
> `power_limit_pct`, `thermal_limit_pct`, `app_frames_per_joule`. Written by the recorder's aggregation
|
||||
> (`SessionAggregator.ApplyPacing` / `ApplySync` / `ApplyEfficiency` for a hooked session, `WithSensorAggregates` for the
|
||||
> card on both tiers); `sync_interval_mode` (0001) gets its first writer beside them. A session before it reads N/A — no
|
||||
> value is computed after the fact. The `.partial` needs no change: the six new sensor series are fields every sample
|
||||
> already carried. `LatestVersion` is 19; `LedgerDatabaseTests.ScriptNineteenAddsThePacingAndCardColumnsAndAnEarlierSessionHasNone`,
|
||||
> `SqliteSessionRepositoryTests.ASessionRoundTripsColumnForColumn`. **A beta.13 cannot open a ledger beta.14 migrated.**
|
||||
|
||||
> **Every open used to migrate, and one that should not have did — 2026-09-16.** The Agent's `--console sessions`,
|
||||
> a verb that prints, was run against the owner's ledger while the file on disk was at schema 2 and applied 0003 and
|
||||
> 0004 to it. `LedgerDatabase.OpenReadOnlyAsync` exists since that day: an existing file, `PRAGMA query_only`, no
|
||||
|
||||
+38
-1
@@ -399,7 +399,14 @@ All screens are `Page`s registered with the navigation page provider and navigat
|
||||
> per-present `vram_proc` (a held 1 Hz sample) and~~ the adapter-wide `vram_adapter` sensor ~~as two
|
||||
> differently-labelled series~~ (corrected 2026-10-03: the Overlay never produced `vram_proc`, so the game's line was
|
||||
> never drawn on any session; beta.12's two memory plots are described above). **Latency**: the `latency_us` blob with the stored avg / p95 lines, shown only
|
||||
> when Reflex reported (`reflex_active`); otherwise the tab says so.
|
||||
> when Reflex reported (`reflex_active`); otherwise the tab says so. **Since beta.14 the tab itself is shown only when one
|
||||
> of the game's sessions measured latency** (`GameDetailViewModel.AnyLatency`): nothing measures Reflex today, and a tab
|
||||
> that could only say "no data" was noise.
|
||||
>
|
||||
> **Trend, beta.14 (D49):** nine more metrics — *Time below 60 FPS %*, *Display under refresh rate %*, *Frame to frame
|
||||
> ms*, *Render scale %* (`100 / upscale_ratio`), *VSync share %* and *Frames per watt* from hooked sessions; *Avg GPU core
|
||||
> clock MHz*, *Max GPU memory °C* and *Held back by power limit %* from every session's telemetry. Each has its own unit
|
||||
> (ms, MHz and FPS/W are new axes); a session recorded before beta.14 has no point (`TrendSeriesBuilderTests`).
|
||||
>
|
||||
> **Trend, corrected 2026-09-25 (beta.8, owner item 6: "does Trend really work?").** It did not, on first open: the
|
||||
> view model started loading before the page existed, and a load that finished first raised `TrendPresented` to nobody
|
||||
@@ -431,6 +438,29 @@ All screens are `Page`s registered with the navigation page provider and navigat
|
||||
### Session summary (secondary `FluentWindow`, also the post-session toast target)
|
||||
Stat cards (Avg uses `FpsReadout`, Median, 1% Low, 0.1% Low, Min/Max, σ, stutter %, duration, **Display** — beta.10: the mode shown longest with its share and the window's size, both tiers; **VRAM (this game)** and **RAM (this game)** — beta.12: the median with the peak beneath, both tiers), **Statistics per series** (beta.12: every stored series' mean / median / minimum / peak), TriState chips, API/PresentMode/upscaler line, **the display line** (beta.10: every mode's share, the changes, the window on its monitor at its refresh rate, the back buffer and swap effect, and what the facts rested on — "the swap chain said whether it was exclusive" or "from the window alone: exclusive fullscreen cannot be told from borderless"; absent for a session recorded before), crash `InfoBar` (Severity=Error) when `crashed`, frametime chart, sensor strip, tags/notes editor, Export buttons.
|
||||
|
||||
> **beta.14 (D49): the new measurements, as cards and charts.** The cards come in three methods (`AddFrameCards`,
|
||||
> `AddPacingCards`, `AddMachineCards`), every value read from the row — never recomputed — and N/A on a row written before
|
||||
> beta.14:
|
||||
> - **Time below 60 FPS** with *below 30* and *display under {refresh} Hz* beneath it — the refresh share named for the
|
||||
> display because it is over the presents the display received (`03_METRICS` §Pacing) — and **Frame to frame**; both
|
||||
> carry *(presented)* where the session's statistics are over presents, as the lows do.
|
||||
> - **VSync** (*{share} of frames*, with *tearing allowed* beneath), **Ray tracing** (*{share} of frames* and rays per
|
||||
> pixel — the card appears only where ray tracing was measured), **Game in focus** (foreground ticks over drain ticks)
|
||||
> and **Capture quality** (gaps · lost records · faults).
|
||||
> - The **1% Low** card carries *displayed: {presents' 1% low}* beneath it where frames were generated (rule 6: beside the
|
||||
> game's own, never instead of it).
|
||||
> - **GPU clocks** (core · memory, with fan and memory temperature beneath), **GPU held back** (power · heat, NVIDIA only)
|
||||
> and **Frames per watt** (*the game's own frames, GPU power only*).
|
||||
>
|
||||
> Charts: **Render scale** under Distribution (`Charts/RenderScaleChart` over `RenderScaleSeries`: `100 × √(render pixels /
|
||||
> output pixels)` as steps — from the `render_res` blob where the resolution varied, a flat line at the row's extent where
|
||||
> it did not, and a sentence where the upscaler's parameters were never measured), and on **Sensors** the card's memory
|
||||
> temperature on the temperatures plot (its own palette colour, `Chart_SensorTertiary`: no existing one was 60 apart from
|
||||
> all six beside it) and a fourth plot, **Clocks and fan** — core and memory clock in MHz, the fan in RPM on the right, and
|
||||
> the ticks its power limit or heat held it back shaded behind them; collapsed when the session stored none of these.
|
||||
> Tests: `SessionSummaryViewModelTests` (the new cards, a row before beta.14 at N/A, the displayed low),
|
||||
> `RenderScaleAndClocksTests`, `ChartMathTests`.
|
||||
>
|
||||
> **Built 2026-09-14 (P3 PR-6).** `Windows/SessionSummaryWindow` (a secondary `FluentWindow` with its own
|
||||
> `ContentDialogHost`), opened from a Sessions-tab row (double-click or Open) and from the Dashboard's recent
|
||||
> list. Stat cards read the STORED aggregates — never recomputed — with the lows labelled *(presented)* when
|
||||
@@ -535,6 +565,13 @@ Session picker (2–5, cross-game allowed) → overlaid percentile curves + stat
|
||||
>
|
||||
> **beta.10:** three rows after Duration — *Display mode* (every share), *Window* and *Monitor* (with its refresh
|
||||
> rate) — facts, not scores: no mode is better than another, so none is ever marked best, and every tier has them.
|
||||
>
|
||||
> **beta.14 (D49):** *Time below 60 FPS* and *Frame to frame* (lower is better), *Display under refresh rate* (lower is
|
||||
> better), *VSync share* and *Render scale* (settings: no best), *Avg GPU core clock* and *Held back by power limit*
|
||||
> (facts: no best), *Max GPU memory °C* (lower) and *Frames per watt* (higher). **A statistic a present-only session has
|
||||
> over its presents carries *(presented)* in its cell** — the median, the lows, stutter, time below 60, frame to frame —
|
||||
> beside a session whose same statistic is over the game's own frames; the best is decided on the number, never the label
|
||||
> (`CompareViewModel.Row`'s label, `CompareViewModelTests`).
|
||||
|
||||
### Logs
|
||||
Tail view of `ui-*.log` / `agent-*.log` (toggle), level filter, search (`ui:AutoSuggestBox`), pause-scroll; buttons: Open logs folder, Export bug bundle (routes to 10_LOGGING flow).
|
||||
|
||||
+29
-4
@@ -44,7 +44,7 @@ Compiler/linker flags (enforced in CMake, not per-target ad hoc): `/std:c++20 /M
|
||||
|
||||
**No AMD or Intel GPU *telemetry* SDK is vendored.** Those vendors' sensors are covered by LibreHardwareMonitor and the DXGI/PDH baseline (`18_GPU_VENDOR_APIS`). A build that pulls in Intel IGCL or AMD ADLX material is a licensing regression, not a feature — CI greps for it. **The AMD FidelityFX ffx-api headers (MIT by exception, tag v2.3.0) ARE vendored since 2026-09-04**, for the Overlay's upscaler hook and for types only — `fl_fidelityfx_headers` above, `18_GPU_VENDOR_APIS` §AMD for the licence reading, and `license-check.ps1` §2d for the per-file gate. Intel's XeSS SDK failed the checklist and nothing of it is here.
|
||||
|
||||
**VERSIONINFO is mandatory** on ~~`FrameLedger.Overlay.dll` and `FrameLedger.VkLayer.dll`~~ every shipped native — the five `tools/versioninfo-check.ps1` lists (corrected 2026-10-04): real `CompanyName`, `ProductName=FrameLedger`, `FileDescription`, version. Identifiability is a requirement (`19_SAFETY`), and a CI check fails the build if the resource block is missing.
|
||||
**VERSIONINFO is mandatory** on ~~`FrameLedger.Overlay.dll` and `FrameLedger.VkLayer.dll`~~ every shipped native — the five `tools/versioninfo-check.ps1` lists (corrected 2026-10-04): real `CompanyName`, `ProductName=FrameLedger`, `FileDescription`, version. Identifiability is a requirement (`19_SAFETY`), and a CI check fails the build if the resource block is missing. **Since beta.14 (D50) the managed binaries are held to the same** — §Version, *Identity*.
|
||||
|
||||
## Managed build & native integration
|
||||
|
||||
@@ -170,6 +170,29 @@ two products claiming to be one.
|
||||
- `release.yml` refuses a tag whose numeric core is not the file's. Bumping the version is one edit to
|
||||
`VERSION`, in the same commit as the changelog section, before the tag.
|
||||
|
||||
**Identity (beta.14, D50).** Every binary names the product, says what it is and carries one copyright line. Until
|
||||
beta.14 only the native blocks did: the managed ones carried the SDK's defaults — the Agent's company and product read
|
||||
`FrameLedger.Agent`, each library's its own assembly name — and no copyright, and those blocks are what Explorer's
|
||||
*Properties ▸ Details* and Task Manager show (Task Manager lists the Agent by its file description).
|
||||
|
||||
| Field | Native (`src/native/CMakeLists.txt`) | Managed (`Directory.Build.props`, the two entry points' csproj) |
|
||||
|---|---|---|
|
||||
| CompanyName, ProductName | `FL_COMPANY_NAME`, `FL_PRODUCT_NAME` = `FrameLedger` | `Company`, `Product` = `FrameLedger` |
|
||||
| LegalCopyright | `FL_COPYRIGHT` | `Copyright` — the same line, word for word |
|
||||
| FileDescription | each target's `fl_add_version_resource` description | `AssemblyTitle`: `FrameLedger` (App), `FrameLedger Agent` (Agent); a library keeps its assembly name |
|
||||
| Comments | the identification sentence | `Description` — the same sentence for a library, a line of its own for each entry point |
|
||||
| FileVersion / ProductVersion | the numeric core, `x.y.z.0` | `x.y.z.0` / the full version (`-p:Version`, a pre-release's tag included) |
|
||||
| OriginalFilename | the file's own name | the assembly's (`FrameLedger.dll`) — the apphost `.exe` carries a copy of its assembly's block |
|
||||
|
||||
Also stamped on every assembly: `AssemblyMetadata("RepositoryUrl")` (the SDK, from `RepositoryUrl`; the App test holds
|
||||
it equal to `IssueLink.Repository`) and, when `release.yml` passes it, `FrameLedgerSourceRef` — the App csproj's alone
|
||||
until beta.14, now `Directory.Build.props`', and passed to both publishes. `tools/versioninfo-check.ps1` reads all of it
|
||||
from the BUILT binaries — the native five and, with `-ManagedDir`, the managed eight (`FrameLedger.exe`/`.dll`,
|
||||
`FrameLedger.Agent.exe`/`.dll`, Domain, Application, Infrastructure, Shared) — and is red when a copyright differs
|
||||
anywhere, when a managed `ProductVersion` is not `-ExpectedProductVersion` (required: a comparison with nothing passes
|
||||
everything), or when an apphost does not carry its assembly's block; its `-SelfTest` (ten cases, nine RED, each for the
|
||||
reason it names) runs first. `AssemblyIdentityTests` (App and Agent) pins the source against `FL_COPYRIGHT`.
|
||||
|
||||
The Velopack package version is the tag's (`vpk pack --packVersion`), and `UpdateManager.CurrentVersion` reads
|
||||
the installed package's manifest — not the assembly — which is why the two are made to agree here rather than
|
||||
assumed to.
|
||||
@@ -179,7 +202,7 @@ assumed to.
|
||||
```
|
||||
cmake --build --preset x64-release
|
||||
dotnet publish src/FrameLedger.App -c Release -r win-x64 --self-contained -p:PublishReadyToRun=true -p:FrameLedgerSourceRef={tag} -o out/app
|
||||
dotnet publish src/FrameLedger.Agent -c Release -r win-x64 --self-contained -p:PublishReadyToRun=true -o out/app
|
||||
dotnet publish src/FrameLedger.Agent -c Release -r win-x64 --self-contained -p:PublishReadyToRun=true -p:FrameLedgerSourceRef={tag} -o out/app
|
||||
vpk download github --repoUrl https://github.com/poli0981/frameledger --channel win --pre --outputDir out/release # beta.13: the previous release, for a delta
|
||||
vpk pack --packId FrameLedger.App --packVersion {ver} --packDir out/app --mainExe FrameLedger.exe --packTitle FrameLedger --packAuthors FrameLedger --releaseNotes out/notes.md --outputDir out/release
|
||||
```
|
||||
@@ -189,7 +212,9 @@ vpk pack --packId FrameLedger.App --packVersion {ver} --packDir out/app --mainEx
|
||||
> take `-p:Version=<tag>` (§Version). No `--icon`: `assets/icon.ico` does not exist, and this line named it
|
||||
> for six weeks. **Since beta.12 the App also takes `-p:FrameLedgerSourceRef`** — the tag, or for a rehearsal the
|
||||
> commit — stamped as assembly metadata so its links into the repository open THIS version's documents
|
||||
> (`Services/RepositoryLinks`); a build without it links to `main`.
|
||||
> (`Services/RepositoryLinks`); a build without it links to `main`. **Since beta.14 the Agent takes it too**, because
|
||||
> `Directory.Build.props` stamps it on every assembly and both publishes build the same libraries into `out/app` (§Version,
|
||||
> *Identity*).
|
||||
>
|
||||
> **The package id is `FrameLedger.App`, and this line said `FrameLedger` until 2026-09-14 — which would have
|
||||
> deleted every user's ledger on uninstall.** Velopack installs into `%LOCALAPPDATA%\<packId>` and removes that
|
||||
@@ -256,7 +281,7 @@ document the app displays for acceptance (FR-11) is a defect, not a template.
|
||||
7. `tools/coverage-gate.ps1` — reads this run's cobertura reports; self-arming, and armed today for
|
||||
`FrameLedger.Domain` and `FrameLedger.Application`
|
||||
8. `tools/rules-validate.ps1` (schema + `anticheat` block sanity — a malformed or empty blocklist is a safety bug)
|
||||
9. `tools/versioninfo-check.ps1` — reads the built binary, because what ships is what an anti-cheat vendor sees; since P4 PR-5 it also compares every `FileVersion` against the `VERSION` file (§Version)
|
||||
9. `tools/versioninfo-check.ps1` — reads the built binary, because what ships is what an anti-cheat vendor sees; since P4 PR-5 it also compares every `FileVersion` against the `VERSION` file (§Version); **since beta.14 (D50) both halves run — the self-test, then the native five and the managed eight from the App's and the Agent's build output** (`-ManagedDir`, `-ExpectedProductVersion` = `VERSION`), one copyright across all of them (§Version, *Identity*). Under `-SkipNative` the managed half still runs
|
||||
10. `tools/chokepoint-check.ps1` — injection and evasion primitives confined to one file, native **and** managed, plus the `FL_GUARD_TESTABLE` symbol check against the shipped artifacts
|
||||
11. **`tools/hookinventory-check.ps1`** — three passes: A resolves every vendor symbol the Overlay names against `docs/vendor-exports.json`, B sweeps for stray literals, C reads the BUILT Overlay's import table and asserts it imports no vendor module. C skips loudly under `-SkipNative`. **Missing from this list until 2026-08-28**, which is §R10 happening again
|
||||
12. **`tools/package-closure-check.ps1`** — both halves: the self-test (5 cases, 4 of which must go RED) **and** a live pass over this repository. It walks the transitive `ProjectReference` closure of the two publish roots below and fails on anything outside the allowlist, naming the reference edge. `FrameLedger.CaptureHost` is an injecting entry point kept out of the package by construction, and `20_OPEN_QUESTIONS` §S27 is closed on exactly that basis
|
||||
|
||||
+4
-1
@@ -135,7 +135,10 @@ FrameLedger uses the **`poli0981/.github` ops repo** where its templates fit, an
|
||||
- **The published tree asserted by name**: `FrameLedger.exe`, `FrameLedger.Agent.exe`, the ~~four~~ five shipped natives
|
||||
`versioninfo-check` lists (`FrameLedger.ProcessStats.dll` since beta.12 — corrected 2026-10-04), `rules/detection-rules.json`; `FrameLedger.CaptureHost.exe` absent (`12_BUILD`:
|
||||
exactly two roots — `package-closure-check` proves it statically, this reads the directory); `versioninfo-check`
|
||||
run again over `out/app`, because a `.targets`-staged DLL that failed to copy is a warning to `dotnet publish`.
|
||||
run again over `out/app`, because a `.targets`-staged DLL that failed to copy is a warning to `dotnet publish` —
|
||||
**since beta.14 (D50) with its managed half** (`-ManagedDir out/app -ExpectedProductVersion <tag>`): the eight managed
|
||||
binaries name FrameLedger, carry the tag's full version and the native binaries' copyright line (`12_BUILD` §Version,
|
||||
*Identity*). Both publishes take `-p:FrameLedgerSourceRef` since beta.14.
|
||||
- **since beta.13, `vpk download github --pre` first**, so `vpk pack` finds the previous release's full package in
|
||||
`out/release` and writes a delta; after the pack, what `assets.win.json` names is kept and the rest (the previous full
|
||||
package) moves to `out/previous`, the feed and `RELEASES` are filtered to this build, and a downloaded previous package
|
||||
|
||||
@@ -22,7 +22,7 @@ These are permanently out of scope. A PR implementing any of them is rejected re
|
||||
- Reading or writing game memory outside the arguments of APIs we hooked
|
||||
- Kernel drivers of our own
|
||||
|
||||
The DLL ships with its real filename, a populated VERSIONINFO block (`CompanyName`, `ProductName=FrameLedger`, version), and named kernel objects that clearly say `FrameLedger`. Being identifiable is a feature.
|
||||
The DLL ships with its real filename, a populated VERSIONINFO block (`CompanyName`, `ProductName=FrameLedger`, version), and named kernel objects that clearly say `FrameLedger`. Being identifiable is a feature. Since beta.14 (D50) the Agent — the process that injects — and the App say the same about themselves: `FrameLedger` as company and product, *FrameLedger Agent* as the Agent's description, the native binaries' copyright line (`12_BUILD` §Version, *Identity*; `tools/versioninfo-check.ps1` reads both kinds).
|
||||
|
||||
## The anti-cheat guard (hard gate)
|
||||
|
||||
|
||||
+75
-1
@@ -1869,7 +1869,7 @@ PR-7 the release.*
|
||||
|
||||
**Owner-only, added to the list below:** item 9.
|
||||
|
||||
## **START HERE** — 2026-10-04, the beta.13 train: the four follow-ups the beta.12 audit left
|
||||
## ~~**START HERE**~~ — 2026-10-04, the beta.13 train: the four follow-ups the beta.12 audit left *(struck 2026-10-06: the head is §beta.14 below)*
|
||||
|
||||
*Status is `CHANGELOG.md` `[0.1.0-beta.13]`; this is what no other file carries. The owner asked (2026-10-04) for the
|
||||
four chips the beta.12 documentation audit had left — §S23-3's wording, the App tests' culture races, L1's adapter, the
|
||||
@@ -1904,6 +1904,69 @@ than N/A (`FlShmHandshake.AdapterLuid`'s own comment), and a finding on the PC i
|
||||
|
||||
**Owner-only, added to the list below:** item 10.
|
||||
|
||||
## **START HERE** — 2026-10-06, the beta.14 train: contrast and the wheel, the update audit, crash reporters, assembly metadata, new measurements
|
||||
|
||||
*Status is `CHANGELOG.md` `[0.1.0-beta.14]`; this is what no other file carries. The owner's list (2026-10-05, with a
|
||||
screenshot of the import list in the dark theme): the contrast, a review of the update logic, games recorded as crashed
|
||||
by an engine's crash reporter (prevention; SILENT HILL 2 as the example), assembly metadata, new metrics and charts, and
|
||||
a wheel that scrolls with an option to hide the scroll bars. Nine stacked PRs — PR-1 contrast and the wheel, PR-2 the
|
||||
scroll-bar option, PR-3 the update audit, PR-4 the guard's retry, PR-5 crash classification, PR-6 assembly metadata,
|
||||
PR-7 the metrics' Agent half (schema 0019), PR-8 their App half, PR-9 the release — plus one test fix (#268).*
|
||||
|
||||
**Decisions (owner, 2026-10-05, asked before the plan — do not re-ask):**
|
||||
|
||||
- **D47 — the update channel follows the running copy.** `update.channel` gained `auto`, the default: a pre-release
|
||||
copy asks for pre-releases, a stable one for stable; an explicit *Stable* or *Beta* in Settings wins
|
||||
(`Update/UpdateChannelPolicy`). Until beta.14 the default was `stable` and every release is a pre-release, so an
|
||||
installed copy never found an update (the owner's own `velopack` log: "No releases found").
|
||||
- **D48 — the guard's narrow fix, both halves.** A scan-set member still loading (`ERROR_PARTIAL_COPY`) or already gone
|
||||
is read again once, ~250 ms later, before the guard refuses; still unreadable still refuses, and `ACCESS_DENIED` is
|
||||
never retried. A refused re-scan for a could-not-read reason (`ProcessUnreadable`, `ModuleScanFailed`,
|
||||
`ProcessTreeUnavailable` — never a finding) when the game itself had exited ends as the game's exit
|
||||
(`ExitScanRelabel`, the note `scan_at_exit=`). CLAUDE.md rule 2 is unchanged: a failure still refuses.
|
||||
- **D49 — all four metric groups.** The render scale over time; time below 30 / 60 / the refresh rate and frame to frame;
|
||||
the facts the row stored and nothing showed (VSync and tearing, ray tracing's share, focus, capture quality, the
|
||||
displayed 1 % low); the card's clocks, fan, memory temperature, limits, and frames per watt.
|
||||
- **D50 — the managed binaries' identity.** Company and Product "FrameLedger", the copyright the native `FL_COPYRIGHT`
|
||||
word for word; `versioninfo-check` reads both kinds and compares them.
|
||||
|
||||
**Traps met on the way:**
|
||||
|
||||
- **WPF UI 4.3.0 keys its DataGrid styles** (`DefaultDataGridRowStyle`) and defines no implicit row style: a `RowStyle`
|
||||
`BasedOn="{StaticResource {x:Type DataGridRow}}"` falls through to Aero2's row and `SystemColors.WindowBrush` — white
|
||||
under the dark theme's white text. Its `CheckBox` has `MinWidth` 120. Both in `16_WPFUI_SYNTAX` §Gotchas now.
|
||||
- **`NavigationViewContentPresenter` makes a `Page`'s `CanContentScroll` true and wraps it in its own scroller**; a page's
|
||||
own root `ScrollViewer` is then measured unbounded, has nothing to scroll, and still marks every wheel handled. ScottPlot
|
||||
never marks the wheel handled.
|
||||
- **`Keyboard.Modifiers` is the machine's real keyboard, from any thread** (a fresh background thread's `GetKeyState`
|
||||
reported the machine's NumLock): a local gate went red on the chart-wheel test while a Ctrl was held. A test that sends
|
||||
input sets the keys itself (`ChartWheel.CurrentModifiers`, #268).
|
||||
- **Velopack 1.2.0 applies a downloaded update at the next start by default** (`SetAutoApplyOnStartup`), before FR-12's
|
||||
check and with the Agent killed; `VelopackHooks` turns it off and a pending package is adopted instead.
|
||||
- **The plain "time below X" rule fabricates drops**: a game capped at 60 read 50.0 % "below 60" from present-timing
|
||||
jitter (measured on a copy of the owner's ledger); a rolling mean does not help. The margins of `FramePacing` and what
|
||||
they cost are in `03_METRICS` §Pacing.
|
||||
- **A WER 1001 is not a crash by its number**: `RADAR_PRE_LEAK_64` is Windows' memory-leak detector, and a substring match
|
||||
on the executable's name stored an ordinary The Witcher 3 session as crashed. `CrashEventMatcher` reads the event name
|
||||
and the typed process id.
|
||||
- **No chart palette colour was 60 apart from all six on the temperatures plot** — `Chart_Histogram` equals
|
||||
`Chart_Native` — so the seventh line got a key of its own (`Chart_SensorTertiary`); `ChartMathTests` caught it.
|
||||
- **Meziantou's MA0051 (60 lines, 40 statements) split** `FrameTimeSeries`'s two builders into one `Kept` accumulator,
|
||||
the summary's cards into three methods and Compare's rows into two; `dotnet format` wants one property per line in an
|
||||
object initializer, even in a test.
|
||||
- **The `fl_ring` anti-vacuity flake** (§Traps) fired on #264's CI and passed on the re-run, as written.
|
||||
- **`git describe` is 31 characters ten commits after a tag** (`v0.1.0-beta.13-10-g15ec7c1c5fd4`) — the most
|
||||
`FlShmHandshake.buildId` holds. `ShmHandshakeValidatorTests` appended `"x"` to the id for its mismatch case, the helper
|
||||
cut it back to 31, and the check read `Ok`: red from the tenth commit after every tag, locally and on CI (#273 uses
|
||||
another id of the same length).
|
||||
- **"The job was not acquired by Runner of type hosted even after multiple attempts"**: with seven CI runs in flight a
|
||||
queued Windows job was cancelled after ~15 minutes, twice, without a step having run. Nothing in the code; re-run the
|
||||
job when fewer runs are queued.
|
||||
- **The Privacy Policy 2.7 holds the merge of PR-5 and PR-7**: their wording (§4 the crash reports and the programs a
|
||||
game starts, §1 the card's sensor series) is the owner's to approve before they land, as the plan said.
|
||||
|
||||
**Owner-only, added to the list below:** item 11.
|
||||
|
||||
## Owner-only — no PR can close these
|
||||
|
||||
1. **§S23-2 — branch protection.** `Rules / validate` is not a required status check on
|
||||
@@ -1968,6 +2031,17 @@ than N/A (`FlShmHandshake.AdapterLuid`'s own comment), and a finding on the PC i
|
||||
running for any game, start a hook-enabled game — the notice says the anti-cheat is running on this PC, not in
|
||||
the game. (c) **Two graphics cards**, if a machine with them is at hand: the Sensors chart's GPU figures are the
|
||||
game's card. (d) The `ja` review of the new safety strings, with the others still marked for it.
|
||||
11. **beta.14 on real hardware.** (a) **The update from beta.13:** choose *Beta* in Settings ▸ Updates, Help ▸ Check for
|
||||
updates, then *Restart to update* with no game running; Settings then reads *Automatic (Beta)*. The `velopack:` lines
|
||||
in `ui-*.log` say what was downloaded — a delta of about 2 MB; say so if it was the full package. (b) **Explorer ▸
|
||||
Properties ▸ Details** of `FrameLedger.exe` and `FrameLedger.Agent.exe` name FrameLedger and the copyright; Task Manager
|
||||
lists *FrameLedger Agent*. (c) **The wheel** on every page, the dialogs and the summary window; over a chart the wheel
|
||||
scrolls the page and Ctrl+wheel zooms; the Logs page follows the newest line. (d) **Hide scroll bars** on and off,
|
||||
without a restart. (e) **The import list in the dark theme**, and Compare's tick boxes. (f) **A crash**: an Unreal game
|
||||
that crashes reads *crashed (… CrashReportClient.exe)*; The Witcher 3 closed normally no longer reads *crashed*. (g)
|
||||
**The new measurements** on the RTX 5080: the VSync share against the game's own VSync setting, the render scale
|
||||
against the DLSS mode, the clocks, fan and limits. (h) The `ja` strings marked `review`. (i) **The Privacy Policy 2.7
|
||||
wording — before PR-5 and PR-7 merge.**
|
||||
|
||||
**Answered 2026-08-05, do not re-ask:** remove `gameguard` and keep `guard` (approved
|
||||
over a red `Rules` gate, with the reasoning recorded in the merge commit); vendor NVAPI
|
||||
|
||||
@@ -63,6 +63,14 @@ 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.7 of the Privacy Policy changed (0.1.0-beta.14)
|
||||
|
||||
§4 says two things the software reads to tell a crash from an ordinary exit: the crash reports Windows keeps in its
|
||||
Application log about a tracked game — read since P2 and never stated until 2.7 — and the names of the programs a tracked
|
||||
game starts, so that an engine's own crash reporter is recognised (beta.14 PR-5). §1 lists the graphics card's clock
|
||||
speeds, fan speed, memory temperature and power or thermal limit among the stored sensor series (beta.14 PR-7, D49): they
|
||||
were read before and are stored since.
|
||||
|
||||
### What version 2.6 of the Privacy Policy changed
|
||||
|
||||
It names the game's own memory use (since beta.12, read from outside the game in every session) where version 2.5
|
||||
|
||||
@@ -18,6 +18,14 @@ A value FrameLedger could not measure reads **N/A** — never 0, and never an es
|
||||
- **1% low** and **0.1% low** are the frame rate of the slowest 1% and 0.1% of frames: the further they fall below the
|
||||
average, the less smooth the game felt. **Stutter** counts frames that took much longer than the frames around them,
|
||||
and the share of time they took.
|
||||
- **Time below 60 FPS** (with *below 30* and *display under* your monitor's refresh rate beneath it) is how much of the
|
||||
session ran slower than that. A game held at its limit is not counted as dropping below it for the tiny wobble every
|
||||
frame limit has. **Frame to frame** is how much one frame's time differs from the next: lower is smoother.
|
||||
- **VSync** is how many frames asked to wait for the display, and *tearing allowed* how many did not mind tearing — what
|
||||
the game asked; your graphics driver can still override it.
|
||||
- **GPU clocks**, the fan and the video memory's temperature are the card's own readings. **GPU held back** says how much
|
||||
of the time its power limit or its temperature slowed it down (NVIDIA cards only). **Frames per watt** is the game's
|
||||
own frames per second for each watt the graphics card drew — generated frames never count.
|
||||
|
||||
## Memory
|
||||
|
||||
@@ -38,8 +46,10 @@ correct it by hand — your correction is labelled as yours.
|
||||
|
||||
- **Frametime** — how long each frame took. Spikes are stutters.
|
||||
- **Distribution** — how often each frame rate occurred.
|
||||
- **Sensors** — temperatures, load and power; video memory; memory. The game's own line and the whole card's or the
|
||||
whole PC's are drawn separately.
|
||||
- **Render scale** — the share of the screen's resolution the game rendered at before upscaling (100% means no
|
||||
upscaling), and when it changed.
|
||||
- **Sensors** — temperatures, load and power; video memory; memory; and the card's clocks and fan, with the moments it
|
||||
was held back shaded. The game's own line and the whole card's or the whole PC's are drawn separately.
|
||||
- **Trend** (on the game's page) — one point per session over time, for example before and after a driver update.
|
||||
Changes to your hardware or driver are marked on it.
|
||||
- **Compare** (in the navigation on the left) — pick sessions, even of different games, and see them side by side.
|
||||
|
||||
+10
-2
@@ -11,8 +11,8 @@
|
||||
that changes what FrameLedger.Overlay or the capture host does; date the change.
|
||||
HTML comments are not part of the block.
|
||||
-->
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-10-04.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.13`** (2026-10-04), an unsigned installer built from that tag with its
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-10-06.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.14`** (2026-10-06), an unsigned installer built from that tag with its
|
||||
> checksums published beside it. The source holds the desktop app
|
||||
> (library, store import, charts, settings) and the background Agent, which records a session when a
|
||||
> game in the library runs (unless you switched its recording off), injects only into games you enabled
|
||||
@@ -75,6 +75,14 @@
|
||||
> and charted. **Not measured at all:** the video-memory budget Windows gives a game, which frame
|
||||
> spikes were shader compilation, PC latency (Reflex), and HDR. Stutter count and stutter time are
|
||||
> measured from frame times.
|
||||
> - **Pacing, VSync and the graphics card (since beta.14):** the share of the time below 30 FPS, below 60 FPS and below
|
||||
> the monitor's refresh rate, measured from frame times with small margins so that a game held at its limit is not
|
||||
> counted as below it (a rate less than 2 % under the line reads partly as at it), and how much one frame's time
|
||||
> differs from the next; for Direct3D titles, how many frames asked to wait for the display and how many allowed
|
||||
> tearing — what the game asked, not what the driver did; the graphics card's clock speeds, fan speed and memory
|
||||
> temperature in every session, and, on NVIDIA cards only, how much of the time its power limit or its temperature held
|
||||
> it back, read once a second; and frames per watt — the game's own frames per second for each watt the graphics card
|
||||
> drew, never counting generated frames, `N/A` where the game's own frame rate is not known.
|
||||
> - **Processor and memory:** how busy the processor was (time busy, all cores together — not the
|
||||
> frequency-scaled figure Task Manager draws) and how much system memory was in use, read from
|
||||
> Windows once a second and charted. Processor temperature is read only when the Agent runs as
|
||||
|
||||
+10
-2
@@ -113,8 +113,8 @@ Software running inside another process can, in principle, destabilize it. Frame
|
||||
Frame timing is derived from high-resolution timestamps taken at the moment the game presents each frame; upscaling, frame-generation and ray-tracing state are read from the parameters the game passes to those APIs. This is substantially more accurate than inferring settings from files on disk, but **no measurement is guaranteed to be exact**:
|
||||
|
||||
<!-- accuracy-block:begin -->
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-10-04.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.13`** (2026-10-04), an unsigned installer built from that tag with its
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-10-06.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.14`** (2026-10-06), an unsigned installer built from that tag with its
|
||||
> checksums published beside it. The source holds the desktop app
|
||||
> (library, store import, charts, settings) and the background Agent, which records a session when a
|
||||
> game in the library runs (unless you switched its recording off), injects only into games you enabled
|
||||
@@ -177,6 +177,14 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
|
||||
> and charted. **Not measured at all:** the video-memory budget Windows gives a game, which frame
|
||||
> spikes were shader compilation, PC latency (Reflex), and HDR. Stutter count and stutter time are
|
||||
> measured from frame times.
|
||||
> - **Pacing, VSync and the graphics card (since beta.14):** the share of the time below 30 FPS, below 60 FPS and below
|
||||
> the monitor's refresh rate, measured from frame times with small margins so that a game held at its limit is not
|
||||
> counted as below it (a rate less than 2 % under the line reads partly as at it), and how much one frame's time
|
||||
> differs from the next; for Direct3D titles, how many frames asked to wait for the display and how many allowed
|
||||
> tearing — what the game asked, not what the driver did; the graphics card's clock speeds, fan speed and memory
|
||||
> temperature in every session, and, on NVIDIA cards only, how much of the time its power limit or its temperature held
|
||||
> it back, read once a second; and frames per watt — the game's own frames per second for each watt the graphics card
|
||||
> drew, never counting generated frames, `N/A` where the game's own frame rate is not known.
|
||||
> - **Processor and memory:** how busy the processor was (time busy, all cores together — not the
|
||||
> frequency-scaled figure Task Manager draws) and how much system memory was in use, read from
|
||||
> Windows once a second and charted. Processor temperature is read only when the Agent runs as
|
||||
|
||||
@@ -9,7 +9,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).
|
||||
- Performance sessions: frame timing series, computed statistics, hardware sensor series (temperatures, load, memory usage), 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.
|
||||
- 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.
|
||||
- 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.
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<AssemblyName>FrameLedger.Agent</AssemblyName>
|
||||
<RootNamespace>FrameLedger.Agent</RootNamespace>
|
||||
<!-- beta.14 (D50): Task Manager lists a process by its file description, and until beta.14 this one read
|
||||
"FrameLedger.Agent" - the SDK's default, the assembly name - with the same as its company and product. -->
|
||||
<AssemblyTitle>FrameLedger Agent</AssemblyTitle>
|
||||
<Description>FrameLedger Agent: watches the games you added and records their sessions. Identifies itself deliberately; see https://github.com/poli0981/frameledger</Description>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -25,13 +25,15 @@ public sealed record ChartPalette(
|
||||
Color SensorSecondary,
|
||||
Color Segment,
|
||||
Color Histogram,
|
||||
Color Percentile)
|
||||
Color Percentile,
|
||||
Color SensorTertiary)
|
||||
{
|
||||
/// <summary>The keys both dictionaries must carry, in the record's order.</summary>
|
||||
public static readonly IReadOnlyList<string> Keys =
|
||||
[
|
||||
"Chart_Figure", "Chart_Data", "Chart_Axis", "Chart_Grid", "Chart_Native", "Chart_Displayed", "Chart_Stutter",
|
||||
"Chart_StutterPso", "Chart_Sensor", "Chart_SensorSecondary", "Chart_Segment", "Chart_Histogram", "Chart_Percentile",
|
||||
"Chart_SensorTertiary",
|
||||
];
|
||||
|
||||
private static readonly Dictionary<ApplicationTheme, ChartPalette> _cache = [];
|
||||
@@ -57,7 +59,7 @@ public sealed record ChartPalette(
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(dictionary);
|
||||
Color[] c = [.. Keys.Select(k => Convert(dictionary, k))];
|
||||
return new ChartPalette(c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7], c[8], c[9], c[10], c[11], c[12]);
|
||||
return new ChartPalette(c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7], c[8], c[9], c[10], c[11], c[12], c[13]);
|
||||
}
|
||||
|
||||
/// <summary>The colour a key names — how a chart that assigns palette entries to series by name reads them (<c>SensorsChart</c>).</summary>
|
||||
@@ -76,6 +78,7 @@ public sealed record ChartPalette(
|
||||
"Chart_Segment" => Segment,
|
||||
"Chart_Histogram" => Histogram,
|
||||
"Chart_Percentile" => Percentile,
|
||||
"Chart_SensorTertiary" => SensorTertiary,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(key), key, "not a chart palette key"),
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<!-- SPDX-License-Identifier: GPL-3.0-only -->
|
||||
<!-- Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE -->
|
||||
|
||||
<UserControl x:Class="FrameLedger.App.Charts.RenderScaleChart"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||||
xmlns:res="clr-namespace:FrameLedger.App"
|
||||
xmlns:sp="clr-namespace:ScottPlot.WPF;assembly=ScottPlot.WPF">
|
||||
<!-- 08_UI §Session summary (beta.14, D49): the render scale over the session, as steps; a line saying it was not measured
|
||||
where the upscaler's parameters never were. -->
|
||||
<Grid>
|
||||
<sp:WpfPlot x:Name="Plot" />
|
||||
<ui:TextBlock x:Name="NotMeasured" Appearance="Secondary" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||
Text="{x:Static res:Strings.Chart_RenderScale_NotMeasured}" Visibility="Collapsed" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,52 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using ScottPlot;
|
||||
using ScottPlot.Plottables;
|
||||
|
||||
namespace FrameLedger.App.Charts;
|
||||
|
||||
/// <summary>
|
||||
/// The render scale over a session (beta.14, D49; <see cref="RenderScaleSeries"/>): a step line — a scale holds until the next
|
||||
/// change — and, where the upscaler's parameters were never measured, a sentence saying so instead of an empty plot.
|
||||
/// </summary>
|
||||
public partial class RenderScaleChart : UserControl
|
||||
{
|
||||
public RenderScaleChart()
|
||||
{
|
||||
InitializeComponent();
|
||||
ChartTheme.Attach(Plot);
|
||||
}
|
||||
|
||||
/// <summary>The points drawn by the last <see cref="Show"/>; 0 when the scale was not measured.</summary>
|
||||
public int DrawnPoints { get; private set; }
|
||||
|
||||
public void Show(SessionSeries? series, SessionRow? row)
|
||||
{
|
||||
ScottPlot.Plot plot = Plot.Plot;
|
||||
plot.Clear();
|
||||
ChartTheme.Apply(plot);
|
||||
plot.XLabel(Strings.Chart_Axis_TimeFromFirstFrame);
|
||||
plot.YLabel(Strings.Chart_Axis_RenderScale);
|
||||
(double[] xs, double[] ys) = row is null ? ([], []) : RenderScaleSeries.Of(series, row);
|
||||
DrawnPoints = xs.Length;
|
||||
if (xs.Length > 0)
|
||||
{
|
||||
Scatter line = plot.Add.Scatter(xs, ys, ChartTheme.Current.Native);
|
||||
line.ConnectStyle = ConnectStyle.StepHorizontal;
|
||||
line.MarkerSize = 0;
|
||||
line.LineWidth = 2;
|
||||
plot.Axes.AutoScale();
|
||||
|
||||
// A scale reads against 0 and 100 %: an axis fitted to one flat line would make 66.7 % look like a cliff.
|
||||
plot.Axes.SetLimitsY(0, Math.Max(100, ys.Max() * 1.05));
|
||||
}
|
||||
|
||||
NotMeasured.Visibility = xs.Length > 0 ? Visibility.Collapsed : Visibility.Visible;
|
||||
Plot.Visibility = xs.Length > 0 ? Visibility.Visible : Visibility.Hidden;
|
||||
Plot.Refresh();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using FrameLedger.Application.Persistence;
|
||||
|
||||
namespace FrameLedger.App.Charts;
|
||||
|
||||
/// <summary>
|
||||
/// The render scale over a session (beta.14, D49): <c>100 × √(render pixels / output pixels)</c> — the per-axis scale
|
||||
/// <c>03_METRICS</c> §Upscaling names, so DLSS Quality's 1707×960 of 2560×1440 reads 66.7 %. Per present from the
|
||||
/// <c>render_res</c> blob where the resolution varied, a flat line at the row's extent where it did not (the finalizer stores
|
||||
/// the blob only then), and nothing where the upscaler's parameters were never measured.
|
||||
/// </summary>
|
||||
internal static class RenderScaleSeries
|
||||
{
|
||||
/// <summary>The scale in percent, or null when either size is unknown (0 is the writer's "unknown").</summary>
|
||||
public static double? Scale(int renderW, int renderH, int outputW, int outputH) =>
|
||||
renderW > 0 && renderH > 0 && outputW > 0 && outputH > 0
|
||||
? 100.0 * Math.Sqrt((double)renderW * renderH / ((double)outputW * outputH))
|
||||
: null;
|
||||
|
||||
/// <summary>
|
||||
/// Seconds from the first present and the scale there — only the points where the scale changes, and the last one, since
|
||||
/// a scale holds until the next change and a 300,000-present session has a handful (drawn as steps). Empty when nothing
|
||||
/// was measured.
|
||||
/// </summary>
|
||||
public static (double[] Xs, double[] Ys) Of(SessionSeries? series, SessionRow row)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(row);
|
||||
if (series is null || series.Presents == 0)
|
||||
{
|
||||
return ([], []);
|
||||
}
|
||||
|
||||
if (series.RenderRes is { } quads && quads.Length >= 4 * series.Presents)
|
||||
{
|
||||
return Changes(series, quads);
|
||||
}
|
||||
|
||||
return Scale(row.RenderW ?? 0, row.RenderH ?? 0, row.OutputW ?? 0, row.OutputH ?? 0) is double flat
|
||||
? ([0, series.DurationS], [flat, flat])
|
||||
: ([], []);
|
||||
}
|
||||
|
||||
private static (double[] Xs, double[] Ys) Changes(SessionSeries series, ushort[] quads)
|
||||
{
|
||||
var xs = new List<double>();
|
||||
var ys = new List<double>();
|
||||
double? last = null;
|
||||
int lastIndex = -1;
|
||||
for (int i = 0; i < series.Presents; i++)
|
||||
{
|
||||
if (Scale(quads[4 * i], quads[4 * i + 1], quads[4 * i + 2], quads[4 * i + 3]) is not double s)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
lastIndex = i;
|
||||
if (last is double previous && Math.Abs(previous - s) < 1e-9)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
xs.Add(series.TimesS[i]);
|
||||
ys.Add(s);
|
||||
last = s;
|
||||
}
|
||||
|
||||
// The last measured present closes the final step, so a scale held to the end is drawn to the end.
|
||||
if (last is double end && xs.Count > 0 && series.TimesS[lastIndex] > xs[^1])
|
||||
{
|
||||
xs.Add(series.TimesS[lastIndex]);
|
||||
ys.Add(end);
|
||||
}
|
||||
|
||||
return ([.. xs], [.. ys]);
|
||||
}
|
||||
}
|
||||
@@ -16,5 +16,11 @@
|
||||
<sp:WpfPlot x:Name="Vram" Height="220" Margin="0,6,0,0" />
|
||||
<ui:TextBlock Margin="0,12,0,0" FontTypography="BodyStrong" Text="{x:Static res:Strings.Sensors_Ram_Header}" />
|
||||
<sp:WpfPlot x:Name="Ram" Height="220" Margin="0,6,0,0" />
|
||||
<!-- beta.14 (D49): the card's clocks (MHz) and fan (RPM, right axis), with the ticks its power limit or heat held it
|
||||
back shaded. Collapsed when the session stored none of them. -->
|
||||
<StackPanel x:Name="ClocksSection">
|
||||
<ui:TextBlock Margin="0,12,0,0" FontTypography="BodyStrong" Text="{x:Static res:Strings.Sensors_Clocks_Header}" />
|
||||
<sp:WpfPlot x:Name="Clocks" Height="220" Margin="0,6,0,0" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using FrameLedger.App.Services;
|
||||
using FrameLedger.Application.Recording;
|
||||
@@ -28,6 +29,7 @@ public partial class SensorsChart : UserControl
|
||||
[
|
||||
("gpu_temp", "Chart_Sensor", false),
|
||||
("gpu_hotspot", "Chart_Stutter", false),
|
||||
(SensorSeriesCatalog.GpuMemTemp, "Chart_SensorTertiary", false),
|
||||
("gpu_load", "Chart_Native", false),
|
||||
("gpu_power", "Chart_SensorSecondary", true),
|
||||
("cpu_temp", "Chart_Percentile", false),
|
||||
@@ -52,6 +54,21 @@ public partial class SensorsChart : UserControl
|
||||
(SensorSeriesCatalog.RamSystem, "Chart_Percentile"),
|
||||
];
|
||||
|
||||
/// <summary>The clocks plot's lines (beta.14): core and memory clock on the MHz axis, the fan on the right-hand RPM axis.</summary>
|
||||
internal static readonly IReadOnlyList<(string Series, string PaletteKey, bool Rpm)> ClocksPlot =
|
||||
[
|
||||
(SensorSeriesCatalog.GpuCoreClock, "Chart_Native", false),
|
||||
(SensorSeriesCatalog.GpuMemClock, "Chart_Displayed", false),
|
||||
(SensorSeriesCatalog.GpuFan, "Chart_SensorSecondary", true),
|
||||
];
|
||||
|
||||
/// <summary>The limits shaded on the clocks plot (beta.14): the ticks each one held the card back, NVIDIA only.</summary>
|
||||
internal static readonly IReadOnlyList<(string Series, string PaletteKey)> LimitSpans =
|
||||
[
|
||||
(SensorSeriesCatalog.GpuPowerLimit, "Chart_Stutter"),
|
||||
(SensorSeriesCatalog.GpuThermalLimit, "Chart_StutterPso"),
|
||||
];
|
||||
|
||||
private const double _mibPerGb = 1024.0;
|
||||
|
||||
public SensorsChart()
|
||||
@@ -60,8 +77,12 @@ public partial class SensorsChart : UserControl
|
||||
ChartTheme.Attach(Temps);
|
||||
ChartTheme.Attach(Vram);
|
||||
ChartTheme.Attach(Ram);
|
||||
ChartTheme.Attach(Clocks);
|
||||
}
|
||||
|
||||
/// <summary>The shaded spans the last <see cref="Show"/> drew on the clocks plot.</summary>
|
||||
public int LimitSpansDrawn { get; private set; }
|
||||
|
||||
public int DrawnSeries { get; private set; }
|
||||
|
||||
/// <summary>The temperatures plot, for a test's look at its axes.</summary>
|
||||
@@ -73,6 +94,104 @@ public partial class SensorsChart : UserControl
|
||||
DrawTemps(series);
|
||||
DrawMemory(Vram, series, VideoMemoryPlot);
|
||||
DrawMemory(Ram, series, SystemMemoryPlot);
|
||||
DrawClocks(series);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The card's clocks and fan (beta.14), and every run of ticks a limit held it back as a shaded span behind them — a span
|
||||
/// from the first such tick to the next tick that was not, so one tick reads as a second. The section collapses for a
|
||||
/// session that stored none of these series (recorded before beta.14, or a card no layer reads them on).
|
||||
/// </summary>
|
||||
private void DrawClocks(SessionSeries? series)
|
||||
{
|
||||
ScottPlot.Plot plot = Clocks.Plot;
|
||||
plot.Clear();
|
||||
ChartTheme.Apply(plot);
|
||||
plot.XLabel(TimeAxisLabel(series));
|
||||
plot.YLabel(Strings.Sensors_Axis_Mhz);
|
||||
LimitSpansDrawn = 0;
|
||||
bool any = false;
|
||||
if (series is not null)
|
||||
{
|
||||
ChartPalette p = ChartTheme.Current;
|
||||
foreach ((string name, string key) in LimitSpans)
|
||||
{
|
||||
string label = string.Equals(name, SensorSeriesCatalog.GpuPowerLimit, StringComparison.Ordinal) ? Strings.Sensors_Limit_Power : Strings.Sensors_Limit_Thermal;
|
||||
LimitSpansDrawn += Spans(plot, series, name, label, p.ByKey(key));
|
||||
}
|
||||
|
||||
foreach ((string name, string key, bool rpm) in ClocksPlot)
|
||||
{
|
||||
bool drawn = Line(plot, series, name, Label(name), p.ByKey(key), rpm ? plot.Axes.Right : null);
|
||||
any |= drawn;
|
||||
if (drawn && rpm)
|
||||
{
|
||||
plot.Axes.Right.Label.Text = Strings.Sensors_Axis_Rpm;
|
||||
}
|
||||
}
|
||||
|
||||
any |= LimitSpansDrawn > 0;
|
||||
plot.Axes.AutoScale();
|
||||
plot.ShowLegend(Alignment.UpperRight);
|
||||
}
|
||||
|
||||
ClocksSection.Visibility = any ? Visibility.Visible : Visibility.Collapsed;
|
||||
Clocks.Refresh();
|
||||
}
|
||||
|
||||
/// <summary>Shades every run of ticks whose value is 100 (held back) in <paramref name="name"/>; how many spans it drew.</summary>
|
||||
private static int Spans(ScottPlot.Plot plot, SessionSeries series, string name, string label, Color color)
|
||||
{
|
||||
SensorSeries? limit = series.Sensors.FirstOrDefault(s => string.Equals(s.Name, name, StringComparison.Ordinal));
|
||||
if (limit is null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int drawn = 0;
|
||||
foreach ((double from, double to) in LimitRuns(limit))
|
||||
{
|
||||
VerticalSpan span = plot.Add.VerticalSpan(from, to, color.WithAlpha(0.18));
|
||||
span.LineWidth = 0;
|
||||
if (drawn++ == 0)
|
||||
{
|
||||
span.LegendText = label;
|
||||
}
|
||||
}
|
||||
|
||||
return drawn;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The runs of ticks held back, as (start, end) seconds: from a tick at 100 to the next tick, and through every tick at
|
||||
/// 100 after it — the reading holds for the second until the next. Pure, for the tests.
|
||||
/// </summary>
|
||||
internal static IReadOnlyList<(double From, double To)> LimitRuns(SensorSeries limit)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(limit);
|
||||
var runs = new List<(double, double)>();
|
||||
double? start = null;
|
||||
for (int i = 0; i < limit.Values.Length; i++)
|
||||
{
|
||||
bool held = limit.Values[i] >= 50;
|
||||
if (held && start is null)
|
||||
{
|
||||
start = limit.TimesS[i];
|
||||
}
|
||||
else if (!held && start is double s)
|
||||
{
|
||||
runs.Add((s, limit.TimesS[i]));
|
||||
start = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (start is double open)
|
||||
{
|
||||
double last = limit.TimesS[^1];
|
||||
runs.Add((open, last > open ? last + (last - limit.TimesS[Math.Max(0, limit.TimesS.Length - 2)]) : open + 1));
|
||||
}
|
||||
|
||||
return runs;
|
||||
}
|
||||
|
||||
/// <summary>The time axis says where its zero is: the first frame when the sensors sit on the frames' axis, the session's start otherwise.</summary>
|
||||
|
||||
@@ -68,4 +68,29 @@ public enum TrendMetric
|
||||
DisplayBorderlessShare,
|
||||
|
||||
DisplayWindowedShare,
|
||||
|
||||
/// <summary>
|
||||
/// The nine below are beta.14's (D49): pacing and efficiency from the hooks, the card's clock, memory temperature and power
|
||||
/// limit from the telemetry every session records. A session before beta.14 has no point on any of them.
|
||||
/// </summary>
|
||||
TimeBelow60,
|
||||
|
||||
/// <summary>The share of the presented time below the monitor's refresh rate — what the display received.</summary>
|
||||
TimeBelowRefresh,
|
||||
|
||||
FrameToFrame,
|
||||
|
||||
/// <summary>The render scale, <c>100 / upscale_ratio</c> — the per-axis scale of the session's dominant extent.</summary>
|
||||
RenderScale,
|
||||
|
||||
VsyncShare,
|
||||
|
||||
GpuCoreClock,
|
||||
|
||||
MaxGpuMemTemp,
|
||||
|
||||
PowerLimitShare,
|
||||
|
||||
/// <summary>Application frames per watt of the card's power — never displayed frames (rule 6).</summary>
|
||||
Efficiency,
|
||||
}
|
||||
@@ -52,7 +52,10 @@ public static class TrendSeriesBuilder
|
||||
public static string UnitOf(TrendMetric metric) => metric switch
|
||||
{
|
||||
TrendMetric.PresentedFps or TrendMetric.NativeFps or TrendMetric.Displayed or TrendMetric.P1Low or TrendMetric.P01Low => Strings.Trend_Unit_Fps,
|
||||
TrendMetric.MaxGpuTemp or TrendMetric.MaxCpuTemp => Strings.Trend_Unit_Celsius,
|
||||
TrendMetric.MaxGpuTemp or TrendMetric.MaxCpuTemp or TrendMetric.MaxGpuMemTemp => Strings.Trend_Unit_Celsius,
|
||||
TrendMetric.FrameToFrame => Strings.Trend_Unit_Ms,
|
||||
TrendMetric.GpuCoreClock => Strings.Trend_Unit_Mhz,
|
||||
TrendMetric.Efficiency => Strings.Trend_Unit_FpsPerWatt,
|
||||
TrendMetric.AvgGpuPower => Strings.Trend_Unit_Watts,
|
||||
TrendMetric.AvgRam or TrendMetric.GameVramMedian or TrendMetric.GameVramPeak or TrendMetric.GameRamMedian or TrendMetric.GameRamPeak => Strings.Trend_Unit_Gigabytes,
|
||||
TrendMetric.FgFactor => Strings.Trend_Unit_Factor,
|
||||
@@ -106,7 +109,8 @@ public static class TrendSeriesBuilder
|
||||
/// </summary>
|
||||
public static bool IsMachineMetric(TrendMetric metric) => metric is TrendMetric.MaxGpuTemp or TrendMetric.AvgGpuLoad or TrendMetric.AvgGpuPower
|
||||
or TrendMetric.AvgCpuLoad or TrendMetric.MaxCpuTemp or TrendMetric.AvgRam
|
||||
or TrendMetric.GameVramMedian or TrendMetric.GameVramPeak or TrendMetric.GameRamMedian or TrendMetric.GameRamPeak;
|
||||
or TrendMetric.GameVramMedian or TrendMetric.GameVramPeak or TrendMetric.GameRamMedian or TrendMetric.GameRamPeak
|
||||
or TrendMetric.GpuCoreClock or TrendMetric.MaxGpuMemTemp or TrendMetric.PowerLimitShare;
|
||||
|
||||
public static int ExcludedCount(IReadOnlyList<SessionRow> rows, TrendMetric metric)
|
||||
{
|
||||
@@ -170,10 +174,25 @@ public static class TrendSeriesBuilder
|
||||
TrendMetric.DisplayExclusiveShare => DisplayShare(row, DisplayMode.ExclusiveFullscreen),
|
||||
TrendMetric.DisplayBorderlessShare => DisplayShare(row, DisplayMode.Borderless),
|
||||
TrendMetric.DisplayWindowedShare => DisplayShare(row, DisplayMode.Windowed),
|
||||
_ => null,
|
||||
_ => Beta14ValueOf(row, metric),
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>beta.14 (D49): the values of schema 0019 — null on a row written before it, as on one where nothing measured them.</summary>
|
||||
private static double? Beta14ValueOf(SessionRow row, TrendMetric metric) => metric switch
|
||||
{
|
||||
TrendMetric.TimeBelow60 => row.TimeBelow60Pct,
|
||||
TrendMetric.TimeBelowRefresh => row.TimeBelowRefreshPct,
|
||||
TrendMetric.FrameToFrame => row.FrametimeDeltaMeanMs,
|
||||
TrendMetric.RenderScale => row.UpscaleRatio is > 0 ? 100.0 / row.UpscaleRatio.Value : null,
|
||||
TrendMetric.VsyncShare => row.VsyncPresentPct,
|
||||
TrendMetric.GpuCoreClock => row.AvgGpuCoreClockMhz,
|
||||
TrendMetric.MaxGpuMemTemp => row.MaxGpuMemTemp,
|
||||
TrendMetric.PowerLimitShare => row.PowerLimitPct,
|
||||
TrendMetric.Efficiency => row.AppFramesPerJoule,
|
||||
_ => null,
|
||||
};
|
||||
|
||||
/// <summary>MiB as stored, in GB as Task Manager counts them (1 GB = 1024 MiB).</summary>
|
||||
private static double? Gb(double? mib) => mib / 1024.0;
|
||||
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
<!-- 11_UPDATER (P4 PR-5): Velopack must run before any window exists, so the
|
||||
entry point is Program.Main rather than the generated App.Main. -->
|
||||
<StartupObject>FrameLedger.App.Program</StartupObject>
|
||||
<!-- beta.14 (D50): the file description Explorer and Task Manager show, and the Comments line. The company, product
|
||||
and copyright are every assembly's (Directory.Build.props). -->
|
||||
<AssemblyTitle>FrameLedger</AssemblyTitle>
|
||||
<Description>FrameLedger: records game performance sessions and shows them over time. Identifies itself deliberately; see https://github.com/poli0981/frameledger</Description>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -57,13 +61,6 @@
|
||||
<EmbeddedResource Include="..\..\guide\*.md" LogicalName="guide/%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- beta.12: the source this build was made from, so the App's links into the repository open THIS version's documents
|
||||
(Services/RepositoryLinks.cs). release.yml passes the tag (a rehearsal, its commit); a local build has none and links
|
||||
to main. -->
|
||||
<ItemGroup Condition="'$(FrameLedgerSourceRef)' != ''">
|
||||
<AssemblyMetadata Include="FrameLedgerSourceRef" Value="$(FrameLedgerSourceRef)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- P4 PR-6: the licence texts travel with the package (legal/THIRD_PARTY_NOTICES.md: "Full license texts must be
|
||||
shipped in legal/licenses/ in release packages"). PUBLISH ONLY: a build output has no recipient, and copying
|
||||
|
||||
@@ -386,7 +386,7 @@
|
||||
<charts:SensorsChart x:Name="Sensors" Visibility="{Binding ViewModel.SelectedHasSensors, Converter={StaticResource BoolToVis}}" />
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
<TabItem Header="{x:Static vm:GameDetailViewModel.TabLatency}">
|
||||
<TabItem Header="{x:Static vm:GameDetailViewModel.TabLatency}" Visibility="{Binding ViewModel.AnyLatency, Converter={StaticResource BoolToVis}}">
|
||||
<StackPanel Margin="0,12,0,0">
|
||||
<ui:TextBlock Appearance="Secondary" TextWrapping="Wrap" Text="{Binding ViewModel.SelectedNote}"
|
||||
Visibility="{Binding ViewModel.SelectedNote, Converter={StaticResource NullToCollapsed}}" />
|
||||
|
||||
@@ -75,6 +75,24 @@ public static class Formats
|
||||
/// <summary>A GPU's power as <c>215 W</c>; null → N/A.</summary>
|
||||
public static string Power(double? watts) => watts is double w ? w.ToString("0", CultureInfo.CurrentCulture) + " W" : Strings.Common_NotAvailable;
|
||||
|
||||
/// <summary>
|
||||
/// A share of time or of frames as <c>9.6%</c> (beta.14) — one decimal, because the small shares are the telling ones: a
|
||||
/// game held at its limit reads 0.4 % below it, not "0%"; null → N/A, never 0%.
|
||||
/// </summary>
|
||||
public static string Share(double? pct) => pct is double v ? v.ToString("0.0", CultureInfo.CurrentCulture) + "%" : Strings.Common_NotAvailable;
|
||||
|
||||
/// <summary>A frame-time difference as <c>0.88 ms</c> (beta.14); null → N/A.</summary>
|
||||
public static string Milliseconds(double? ms) => ms is double v ? string.Format(CultureInfo.CurrentCulture, Strings.Format_Milliseconds_Format, v) : Strings.Common_NotAvailable;
|
||||
|
||||
/// <summary>Application frames per joule as <c>0.31 FPS/W</c> (beta.14) — frames per second over watts; null → N/A.</summary>
|
||||
public static string FramesPerJoule(double? perJoule) => perJoule is double v ? string.Format(CultureInfo.CurrentCulture, Strings.Format_FramesPerJoule_Format, v) : Strings.Common_NotAvailable;
|
||||
|
||||
/// <summary>A clock as <c>2,655 MHz</c> (beta.14); null → N/A.</summary>
|
||||
public static string Frequency(double? mhz) => mhz is double f ? string.Format(CultureInfo.CurrentCulture, Strings.Format_Frequency_Format, f) : Strings.Common_NotAvailable;
|
||||
|
||||
/// <summary>A fan's speed as <c>1,450 RPM</c> (beta.14); null → N/A.</summary>
|
||||
public static string Rpm(double? rpm) => rpm is double r ? string.Format(CultureInfo.CurrentCulture, Strings.Format_Rpm_Format, r) : Strings.Common_NotAvailable;
|
||||
|
||||
/// <summary><c>1485×835 → 2560×1440</c>, or one pair when only one is known, or N/A.</summary>
|
||||
public static string Resolution(int? renderW, int? renderH, int? outputW, int? outputH)
|
||||
{
|
||||
|
||||
@@ -8,13 +8,13 @@ namespace FrameLedger.App.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Links into the repository at the source THIS build was made from (beta.12): <c>release.yml</c> passes the release's tag
|
||||
/// (<c>-p:FrameLedgerSourceRef=v0.1.0-beta.12</c>, a rehearsal its commit), which the App csproj stamps as assembly
|
||||
/// metadata; a local build carries none and links to <c>main</c>. Until beta.12 every link said <c>blob/main</c>, so an
|
||||
/// (<c>-p:FrameLedgerSourceRef=v0.1.0-beta.12</c>, a rehearsal its commit), which <c>Directory.Build.props</c> stamps as
|
||||
/// assembly metadata (the App csproj until beta.14); a local build carries none and links to <c>main</c>. Until beta.12 every link said <c>blob/main</c>, so an
|
||||
/// installed release opened documents that had moved on since it was built — a different EULA from the one it showed.
|
||||
/// </summary>
|
||||
public static partial class RepositoryLinks
|
||||
{
|
||||
/// <summary>The metadata key the App csproj writes.</summary>
|
||||
/// <summary>The metadata key <c>Directory.Build.props</c> writes.</summary>
|
||||
public const string MetadataKey = "FrameLedgerSourceRef";
|
||||
|
||||
/// <summary>The branch a build without a stamped source links to.</summary>
|
||||
|
||||
@@ -49,14 +49,28 @@ public static class SensorStatsTable
|
||||
SensorSeriesCatalog.GameRamPrivate => Strings.Sensors_Series_GameRam,
|
||||
SensorSeriesCatalog.GameRamWorkingSet => Strings.Sensors_Series_GameRamWs,
|
||||
SensorSeriesCatalog.GameCommit => Strings.Sensors_Series_GameCommit,
|
||||
SensorSeriesCatalog.GpuCoreClock => Strings.Sensors_Series_GpuCoreClock,
|
||||
SensorSeriesCatalog.GpuMemClock => Strings.Sensors_Series_GpuMemClock,
|
||||
SensorSeriesCatalog.GpuFan => Strings.Sensors_Series_GpuFan,
|
||||
SensorSeriesCatalog.GpuMemTemp => Strings.Sensors_Series_GpuMemTemp,
|
||||
SensorSeriesCatalog.GpuPowerLimit => Strings.Sensors_Series_GpuPowerLimit,
|
||||
SensorSeriesCatalog.GpuThermalLimit => Strings.Sensors_Series_GpuThermalLimit,
|
||||
_ => series,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Each series in its own unit. Until beta.14 everything that was not a temperature, a load or a power was memory — so a
|
||||
/// clock stored after it would have printed its MHz as megabytes; a series this build does not know prints as itself.
|
||||
/// </summary>
|
||||
private static Func<double?, string> FormatOf(string series) => series switch
|
||||
{
|
||||
SensorSeriesCatalog.GpuTemp or SensorSeriesCatalog.GpuHotspot or SensorSeriesCatalog.CpuTemp => Formats.Temperature,
|
||||
SensorSeriesCatalog.GpuLoad or SensorSeriesCatalog.CpuLoad => Formats.Percent,
|
||||
SensorSeriesCatalog.GpuTemp or SensorSeriesCatalog.GpuHotspot or SensorSeriesCatalog.CpuTemp or SensorSeriesCatalog.GpuMemTemp => Formats.Temperature,
|
||||
SensorSeriesCatalog.GpuLoad or SensorSeriesCatalog.CpuLoad or SensorSeriesCatalog.GpuPowerLimit or SensorSeriesCatalog.GpuThermalLimit => Formats.Percent,
|
||||
SensorSeriesCatalog.GpuPower => Formats.Power,
|
||||
_ => Formats.Memory,
|
||||
SensorSeriesCatalog.GpuCoreClock or SensorSeriesCatalog.GpuMemClock => Formats.Frequency,
|
||||
SensorSeriesCatalog.GpuFan => Formats.Rpm,
|
||||
SensorSeriesCatalog.VramAdapter or SensorSeriesCatalog.RamSystem or SensorSeriesCatalog.GameVramDedicated or SensorSeriesCatalog.GameVramShared
|
||||
or SensorSeriesCatalog.GameRamPrivate or SensorSeriesCatalog.GameRamWorkingSet or SensorSeriesCatalog.GameCommit => Formats.Memory,
|
||||
_ => static v => v?.ToString("N1", CultureInfo.CurrentCulture) ?? Strings.Common_NotAvailable,
|
||||
};
|
||||
}
|
||||
Generated
+180
@@ -106,6 +106,7 @@ public static class Strings
|
||||
nameof(Chart_Axis_Fps),
|
||||
nameof(Chart_Axis_Frametime),
|
||||
nameof(Chart_Axis_Percentile),
|
||||
nameof(Chart_Axis_RenderScale),
|
||||
nameof(Chart_Axis_Sensor),
|
||||
nameof(Chart_Axis_Time),
|
||||
nameof(Chart_Axis_TimeFromFirstFrame),
|
||||
@@ -115,6 +116,7 @@ public static class Strings
|
||||
nameof(Chart_Note_NoApplicationFrames),
|
||||
nameof(Chart_Note_OutsideRange_Format),
|
||||
nameof(Chart_Note_PresentsTiming),
|
||||
nameof(Chart_RenderScale_NotMeasured),
|
||||
nameof(Chart_Series_AppFrames),
|
||||
nameof(Chart_Series_Displayed),
|
||||
nameof(Chart_Series_GpuLoad),
|
||||
@@ -156,19 +158,28 @@ public static class Strings
|
||||
nameof(Compare_Metric_Display),
|
||||
nameof(Compare_Metric_Displayed),
|
||||
nameof(Compare_Metric_Duration),
|
||||
nameof(Compare_Metric_Efficiency),
|
||||
nameof(Compare_Metric_FrameToFrame),
|
||||
nameof(Compare_Metric_GameRamMedian),
|
||||
nameof(Compare_Metric_GameRamPeak),
|
||||
nameof(Compare_Metric_GameVramMedian),
|
||||
nameof(Compare_Metric_GameVramPeak),
|
||||
nameof(Compare_Metric_GpuCoreClock),
|
||||
nameof(Compare_Metric_MaxCpuTemp),
|
||||
nameof(Compare_Metric_MaxGpuMemTemp),
|
||||
nameof(Compare_Metric_MaxGpuTemp),
|
||||
nameof(Compare_Metric_Median),
|
||||
nameof(Compare_Metric_Monitor),
|
||||
nameof(Compare_Metric_Native),
|
||||
nameof(Compare_Metric_P01Low),
|
||||
nameof(Compare_Metric_P1Low),
|
||||
nameof(Compare_Metric_PowerLimit),
|
||||
nameof(Compare_Metric_Presented),
|
||||
nameof(Compare_Metric_RenderScale),
|
||||
nameof(Compare_Metric_StutterPct),
|
||||
nameof(Compare_Metric_TimeBelow60),
|
||||
nameof(Compare_Metric_TimeBelowRefresh),
|
||||
nameof(Compare_Metric_Vsync),
|
||||
nameof(Compare_Metric_Window),
|
||||
nameof(Compare_Mixed_Body),
|
||||
nameof(Compare_Mixed_Legend),
|
||||
@@ -375,12 +386,16 @@ public static class Strings
|
||||
nameof(FirstRun_Title),
|
||||
nameof(Format_Duration_HoursMinutes_Format),
|
||||
nameof(Format_Duration_MinutesSeconds_Format),
|
||||
nameof(Format_FramesPerJoule_Format),
|
||||
nameof(Format_Frequency_Format),
|
||||
nameof(Format_Memory_Gb_Format),
|
||||
nameof(Format_Memory_Mb_Format),
|
||||
nameof(Format_Milliseconds_Format),
|
||||
nameof(Format_Playtime_Hours_Format),
|
||||
nameof(Format_Playtime_Minutes_Format),
|
||||
nameof(Format_Resolution_Format),
|
||||
nameof(Format_Resolution_Single_Format),
|
||||
nameof(Format_Rpm_Format),
|
||||
nameof(Format_Temperature_Format),
|
||||
nameof(Fps_Census_NoRuntime),
|
||||
nameof(Fps_Census_NoRuntime_Tooltip),
|
||||
@@ -676,8 +691,13 @@ public static class Strings
|
||||
nameof(Rules_Update_NoAgent),
|
||||
nameof(Rules_Update_Title),
|
||||
nameof(Sensors_Axis_Gb),
|
||||
nameof(Sensors_Axis_Mhz),
|
||||
nameof(Sensors_Axis_Rpm),
|
||||
nameof(Sensors_Axis_Watts),
|
||||
nameof(Sensors_Clocks_Header),
|
||||
nameof(Sensors_Empty),
|
||||
nameof(Sensors_Limit_Power),
|
||||
nameof(Sensors_Limit_Thermal),
|
||||
nameof(Sensors_Ram_Header),
|
||||
nameof(Sensors_Series_CpuLoad),
|
||||
nameof(Sensors_Series_CpuTemp),
|
||||
@@ -686,10 +706,16 @@ public static class Strings
|
||||
nameof(Sensors_Series_GameRamWs),
|
||||
nameof(Sensors_Series_GameVram),
|
||||
nameof(Sensors_Series_GameVramShared),
|
||||
nameof(Sensors_Series_GpuCoreClock),
|
||||
nameof(Sensors_Series_GpuFan),
|
||||
nameof(Sensors_Series_GpuHotspot),
|
||||
nameof(Sensors_Series_GpuLoad),
|
||||
nameof(Sensors_Series_GpuMemClock),
|
||||
nameof(Sensors_Series_GpuMemTemp),
|
||||
nameof(Sensors_Series_GpuPower),
|
||||
nameof(Sensors_Series_GpuPowerLimit),
|
||||
nameof(Sensors_Series_GpuTemp),
|
||||
nameof(Sensors_Series_GpuThermalLimit),
|
||||
nameof(Sensors_Series_Ram),
|
||||
nameof(Sensors_Series_VramAdapter),
|
||||
nameof(Sensors_Temps_Header),
|
||||
@@ -846,14 +872,27 @@ public static class Strings
|
||||
nameof(Summary_Notes_Placeholder),
|
||||
nameof(Summary_NotFound),
|
||||
nameof(Summary_Open),
|
||||
nameof(Summary_RenderScale_Header),
|
||||
nameof(Summary_Save),
|
||||
nameof(Summary_Saved),
|
||||
nameof(Summary_Show_Displayed),
|
||||
nameof(Summary_Show_Sensors),
|
||||
nameof(Summary_Stat_Avg),
|
||||
nameof(Summary_Stat_Below30_Format),
|
||||
nameof(Summary_Stat_BelowRefresh_Format),
|
||||
nameof(Summary_Stat_Capture),
|
||||
nameof(Summary_Stat_Capture_Format),
|
||||
nameof(Summary_Stat_Clocks_Format),
|
||||
nameof(Summary_Stat_Cpu),
|
||||
nameof(Summary_Stat_Display),
|
||||
nameof(Summary_Stat_DisplayedLow_Format),
|
||||
nameof(Summary_Stat_Duration),
|
||||
nameof(Summary_Stat_Efficiency),
|
||||
nameof(Summary_Stat_Efficiency_Note),
|
||||
nameof(Summary_Stat_FanMemTemp_Format),
|
||||
nameof(Summary_Stat_Focus),
|
||||
nameof(Summary_Stat_Focus_Format),
|
||||
nameof(Summary_Stat_FrameToFrame),
|
||||
nameof(Summary_Stat_GameRam),
|
||||
nameof(Summary_Stat_GameRam_Suffix_Format),
|
||||
nameof(Summary_Stat_GameRamWs),
|
||||
@@ -861,16 +900,25 @@ public static class Strings
|
||||
nameof(Summary_Stat_GameVram),
|
||||
nameof(Summary_Stat_GameVram_Suffix_Format),
|
||||
nameof(Summary_Stat_Gpu),
|
||||
nameof(Summary_Stat_GpuClocks),
|
||||
nameof(Summary_Stat_GpuLimits),
|
||||
nameof(Summary_Stat_Limits_Format),
|
||||
nameof(Summary_Stat_LoadTemp_Format),
|
||||
nameof(Summary_Stat_Median),
|
||||
nameof(Summary_Stat_MinMax),
|
||||
nameof(Summary_Stat_MinMax_Format),
|
||||
nameof(Summary_Stat_OfFrames_Format),
|
||||
nameof(Summary_Stat_P01Low),
|
||||
nameof(Summary_Stat_P1Low),
|
||||
nameof(Summary_Stat_RaysPerPixel_Format),
|
||||
nameof(Summary_Stat_RayTracing),
|
||||
nameof(Summary_Stat_StdDev),
|
||||
nameof(Summary_Stat_StdDev_Format),
|
||||
nameof(Summary_Stat_Stutter),
|
||||
nameof(Summary_Stat_Stutter_Format),
|
||||
nameof(Summary_Stat_Tearing_Format),
|
||||
nameof(Summary_Stat_TimeBelow60),
|
||||
nameof(Summary_Stat_Vsync),
|
||||
nameof(Summary_Tags_Placeholder),
|
||||
nameof(Summary_Tier2_Body),
|
||||
nameof(Summary_Tier2_Why_Blocked_Format),
|
||||
@@ -935,23 +983,35 @@ public static class Strings
|
||||
nameof(Trend_Metric_Displayed),
|
||||
nameof(Trend_Metric_DisplayExclusive),
|
||||
nameof(Trend_Metric_DisplayWindowed),
|
||||
nameof(Trend_Metric_Efficiency),
|
||||
nameof(Trend_Metric_FgFactor),
|
||||
nameof(Trend_Metric_FrameToFrame),
|
||||
nameof(Trend_Metric_GameRamMedian),
|
||||
nameof(Trend_Metric_GameRamPeak),
|
||||
nameof(Trend_Metric_GameVramMedian),
|
||||
nameof(Trend_Metric_GameVramPeak),
|
||||
nameof(Trend_Metric_GpuCoreClock),
|
||||
nameof(Trend_Metric_Label),
|
||||
nameof(Trend_Metric_MaxCpuTemp),
|
||||
nameof(Trend_Metric_MaxGpuMemTemp),
|
||||
nameof(Trend_Metric_MaxGpuTemp),
|
||||
nameof(Trend_Metric_NativeFps),
|
||||
nameof(Trend_Metric_P01Low),
|
||||
nameof(Trend_Metric_P1Low),
|
||||
nameof(Trend_Metric_PowerLimitShare),
|
||||
nameof(Trend_Metric_PresentedFps),
|
||||
nameof(Trend_Metric_RenderScale),
|
||||
nameof(Trend_Metric_TimeBelow60),
|
||||
nameof(Trend_Metric_TimeBelowRefresh),
|
||||
nameof(Trend_Metric_VsyncShare),
|
||||
nameof(Trend_Partial_Note),
|
||||
nameof(Trend_Unit_Celsius),
|
||||
nameof(Trend_Unit_Factor),
|
||||
nameof(Trend_Unit_Fps),
|
||||
nameof(Trend_Unit_FpsPerWatt),
|
||||
nameof(Trend_Unit_Gigabytes),
|
||||
nameof(Trend_Unit_Mhz),
|
||||
nameof(Trend_Unit_Ms),
|
||||
nameof(Trend_Unit_Percent),
|
||||
nameof(Trend_Unit_Watts),
|
||||
nameof(Uninstall_DataFolder_Body),
|
||||
@@ -1143,6 +1203,8 @@ public static class Strings
|
||||
|
||||
public static string Chart_Axis_Percentile => ResourceManager.GetString(nameof(Chart_Axis_Percentile), Culture) ?? nameof(Chart_Axis_Percentile);
|
||||
|
||||
public static string Chart_Axis_RenderScale => ResourceManager.GetString(nameof(Chart_Axis_RenderScale), Culture) ?? nameof(Chart_Axis_RenderScale);
|
||||
|
||||
public static string Chart_Axis_Sensor => ResourceManager.GetString(nameof(Chart_Axis_Sensor), Culture) ?? nameof(Chart_Axis_Sensor);
|
||||
|
||||
public static string Chart_Axis_Time => ResourceManager.GetString(nameof(Chart_Axis_Time), Culture) ?? nameof(Chart_Axis_Time);
|
||||
@@ -1161,6 +1223,8 @@ public static class Strings
|
||||
|
||||
public static string Chart_Note_PresentsTiming => ResourceManager.GetString(nameof(Chart_Note_PresentsTiming), Culture) ?? nameof(Chart_Note_PresentsTiming);
|
||||
|
||||
public static string Chart_RenderScale_NotMeasured => ResourceManager.GetString(nameof(Chart_RenderScale_NotMeasured), Culture) ?? nameof(Chart_RenderScale_NotMeasured);
|
||||
|
||||
public static string Chart_Series_AppFrames => ResourceManager.GetString(nameof(Chart_Series_AppFrames), Culture) ?? nameof(Chart_Series_AppFrames);
|
||||
|
||||
public static string Chart_Series_Displayed => ResourceManager.GetString(nameof(Chart_Series_Displayed), Culture) ?? nameof(Chart_Series_Displayed);
|
||||
@@ -1243,6 +1307,10 @@ public static class Strings
|
||||
|
||||
public static string Compare_Metric_Duration => ResourceManager.GetString(nameof(Compare_Metric_Duration), Culture) ?? nameof(Compare_Metric_Duration);
|
||||
|
||||
public static string Compare_Metric_Efficiency => ResourceManager.GetString(nameof(Compare_Metric_Efficiency), Culture) ?? nameof(Compare_Metric_Efficiency);
|
||||
|
||||
public static string Compare_Metric_FrameToFrame => ResourceManager.GetString(nameof(Compare_Metric_FrameToFrame), Culture) ?? nameof(Compare_Metric_FrameToFrame);
|
||||
|
||||
public static string Compare_Metric_GameRamMedian => ResourceManager.GetString(nameof(Compare_Metric_GameRamMedian), Culture) ?? nameof(Compare_Metric_GameRamMedian);
|
||||
|
||||
public static string Compare_Metric_GameRamPeak => ResourceManager.GetString(nameof(Compare_Metric_GameRamPeak), Culture) ?? nameof(Compare_Metric_GameRamPeak);
|
||||
@@ -1251,8 +1319,12 @@ public static class Strings
|
||||
|
||||
public static string Compare_Metric_GameVramPeak => ResourceManager.GetString(nameof(Compare_Metric_GameVramPeak), Culture) ?? nameof(Compare_Metric_GameVramPeak);
|
||||
|
||||
public static string Compare_Metric_GpuCoreClock => ResourceManager.GetString(nameof(Compare_Metric_GpuCoreClock), Culture) ?? nameof(Compare_Metric_GpuCoreClock);
|
||||
|
||||
public static string Compare_Metric_MaxCpuTemp => ResourceManager.GetString(nameof(Compare_Metric_MaxCpuTemp), Culture) ?? nameof(Compare_Metric_MaxCpuTemp);
|
||||
|
||||
public static string Compare_Metric_MaxGpuMemTemp => ResourceManager.GetString(nameof(Compare_Metric_MaxGpuMemTemp), Culture) ?? nameof(Compare_Metric_MaxGpuMemTemp);
|
||||
|
||||
public static string Compare_Metric_MaxGpuTemp => ResourceManager.GetString(nameof(Compare_Metric_MaxGpuTemp), Culture) ?? nameof(Compare_Metric_MaxGpuTemp);
|
||||
|
||||
public static string Compare_Metric_Median => ResourceManager.GetString(nameof(Compare_Metric_Median), Culture) ?? nameof(Compare_Metric_Median);
|
||||
@@ -1265,10 +1337,20 @@ public static class Strings
|
||||
|
||||
public static string Compare_Metric_P1Low => ResourceManager.GetString(nameof(Compare_Metric_P1Low), Culture) ?? nameof(Compare_Metric_P1Low);
|
||||
|
||||
public static string Compare_Metric_PowerLimit => ResourceManager.GetString(nameof(Compare_Metric_PowerLimit), Culture) ?? nameof(Compare_Metric_PowerLimit);
|
||||
|
||||
public static string Compare_Metric_Presented => ResourceManager.GetString(nameof(Compare_Metric_Presented), Culture) ?? nameof(Compare_Metric_Presented);
|
||||
|
||||
public static string Compare_Metric_RenderScale => ResourceManager.GetString(nameof(Compare_Metric_RenderScale), Culture) ?? nameof(Compare_Metric_RenderScale);
|
||||
|
||||
public static string Compare_Metric_StutterPct => ResourceManager.GetString(nameof(Compare_Metric_StutterPct), Culture) ?? nameof(Compare_Metric_StutterPct);
|
||||
|
||||
public static string Compare_Metric_TimeBelow60 => ResourceManager.GetString(nameof(Compare_Metric_TimeBelow60), Culture) ?? nameof(Compare_Metric_TimeBelow60);
|
||||
|
||||
public static string Compare_Metric_TimeBelowRefresh => ResourceManager.GetString(nameof(Compare_Metric_TimeBelowRefresh), Culture) ?? nameof(Compare_Metric_TimeBelowRefresh);
|
||||
|
||||
public static string Compare_Metric_Vsync => ResourceManager.GetString(nameof(Compare_Metric_Vsync), Culture) ?? nameof(Compare_Metric_Vsync);
|
||||
|
||||
public static string Compare_Metric_Window => ResourceManager.GetString(nameof(Compare_Metric_Window), Culture) ?? nameof(Compare_Metric_Window);
|
||||
|
||||
public static string Compare_Mixed_Body => ResourceManager.GetString(nameof(Compare_Mixed_Body), Culture) ?? nameof(Compare_Mixed_Body);
|
||||
@@ -1681,10 +1763,16 @@ public static class Strings
|
||||
|
||||
public static string Format_Duration_MinutesSeconds_Format => ResourceManager.GetString(nameof(Format_Duration_MinutesSeconds_Format), Culture) ?? nameof(Format_Duration_MinutesSeconds_Format);
|
||||
|
||||
public static string Format_FramesPerJoule_Format => ResourceManager.GetString(nameof(Format_FramesPerJoule_Format), Culture) ?? nameof(Format_FramesPerJoule_Format);
|
||||
|
||||
public static string Format_Frequency_Format => ResourceManager.GetString(nameof(Format_Frequency_Format), Culture) ?? nameof(Format_Frequency_Format);
|
||||
|
||||
public static string Format_Memory_Gb_Format => ResourceManager.GetString(nameof(Format_Memory_Gb_Format), Culture) ?? nameof(Format_Memory_Gb_Format);
|
||||
|
||||
public static string Format_Memory_Mb_Format => ResourceManager.GetString(nameof(Format_Memory_Mb_Format), Culture) ?? nameof(Format_Memory_Mb_Format);
|
||||
|
||||
public static string Format_Milliseconds_Format => ResourceManager.GetString(nameof(Format_Milliseconds_Format), Culture) ?? nameof(Format_Milliseconds_Format);
|
||||
|
||||
public static string Format_Playtime_Hours_Format => ResourceManager.GetString(nameof(Format_Playtime_Hours_Format), Culture) ?? nameof(Format_Playtime_Hours_Format);
|
||||
|
||||
public static string Format_Playtime_Minutes_Format => ResourceManager.GetString(nameof(Format_Playtime_Minutes_Format), Culture) ?? nameof(Format_Playtime_Minutes_Format);
|
||||
@@ -1693,6 +1781,8 @@ public static class Strings
|
||||
|
||||
public static string Format_Resolution_Single_Format => ResourceManager.GetString(nameof(Format_Resolution_Single_Format), Culture) ?? nameof(Format_Resolution_Single_Format);
|
||||
|
||||
public static string Format_Rpm_Format => ResourceManager.GetString(nameof(Format_Rpm_Format), Culture) ?? nameof(Format_Rpm_Format);
|
||||
|
||||
public static string Format_Temperature_Format => ResourceManager.GetString(nameof(Format_Temperature_Format), Culture) ?? nameof(Format_Temperature_Format);
|
||||
|
||||
public static string Fps_Census_NoRuntime => ResourceManager.GetString(nameof(Fps_Census_NoRuntime), Culture) ?? nameof(Fps_Census_NoRuntime);
|
||||
@@ -2283,10 +2373,20 @@ public static class Strings
|
||||
|
||||
public static string Sensors_Axis_Gb => ResourceManager.GetString(nameof(Sensors_Axis_Gb), Culture) ?? nameof(Sensors_Axis_Gb);
|
||||
|
||||
public static string Sensors_Axis_Mhz => ResourceManager.GetString(nameof(Sensors_Axis_Mhz), Culture) ?? nameof(Sensors_Axis_Mhz);
|
||||
|
||||
public static string Sensors_Axis_Rpm => ResourceManager.GetString(nameof(Sensors_Axis_Rpm), Culture) ?? nameof(Sensors_Axis_Rpm);
|
||||
|
||||
public static string Sensors_Axis_Watts => ResourceManager.GetString(nameof(Sensors_Axis_Watts), Culture) ?? nameof(Sensors_Axis_Watts);
|
||||
|
||||
public static string Sensors_Clocks_Header => ResourceManager.GetString(nameof(Sensors_Clocks_Header), Culture) ?? nameof(Sensors_Clocks_Header);
|
||||
|
||||
public static string Sensors_Empty => ResourceManager.GetString(nameof(Sensors_Empty), Culture) ?? nameof(Sensors_Empty);
|
||||
|
||||
public static string Sensors_Limit_Power => ResourceManager.GetString(nameof(Sensors_Limit_Power), Culture) ?? nameof(Sensors_Limit_Power);
|
||||
|
||||
public static string Sensors_Limit_Thermal => ResourceManager.GetString(nameof(Sensors_Limit_Thermal), Culture) ?? nameof(Sensors_Limit_Thermal);
|
||||
|
||||
public static string Sensors_Ram_Header => ResourceManager.GetString(nameof(Sensors_Ram_Header), Culture) ?? nameof(Sensors_Ram_Header);
|
||||
|
||||
public static string Sensors_Series_CpuLoad => ResourceManager.GetString(nameof(Sensors_Series_CpuLoad), Culture) ?? nameof(Sensors_Series_CpuLoad);
|
||||
@@ -2303,14 +2403,26 @@ public static class Strings
|
||||
|
||||
public static string Sensors_Series_GameVramShared => ResourceManager.GetString(nameof(Sensors_Series_GameVramShared), Culture) ?? nameof(Sensors_Series_GameVramShared);
|
||||
|
||||
public static string Sensors_Series_GpuCoreClock => ResourceManager.GetString(nameof(Sensors_Series_GpuCoreClock), Culture) ?? nameof(Sensors_Series_GpuCoreClock);
|
||||
|
||||
public static string Sensors_Series_GpuFan => ResourceManager.GetString(nameof(Sensors_Series_GpuFan), Culture) ?? nameof(Sensors_Series_GpuFan);
|
||||
|
||||
public static string Sensors_Series_GpuHotspot => ResourceManager.GetString(nameof(Sensors_Series_GpuHotspot), Culture) ?? nameof(Sensors_Series_GpuHotspot);
|
||||
|
||||
public static string Sensors_Series_GpuLoad => ResourceManager.GetString(nameof(Sensors_Series_GpuLoad), Culture) ?? nameof(Sensors_Series_GpuLoad);
|
||||
|
||||
public static string Sensors_Series_GpuMemClock => ResourceManager.GetString(nameof(Sensors_Series_GpuMemClock), Culture) ?? nameof(Sensors_Series_GpuMemClock);
|
||||
|
||||
public static string Sensors_Series_GpuMemTemp => ResourceManager.GetString(nameof(Sensors_Series_GpuMemTemp), Culture) ?? nameof(Sensors_Series_GpuMemTemp);
|
||||
|
||||
public static string Sensors_Series_GpuPower => ResourceManager.GetString(nameof(Sensors_Series_GpuPower), Culture) ?? nameof(Sensors_Series_GpuPower);
|
||||
|
||||
public static string Sensors_Series_GpuPowerLimit => ResourceManager.GetString(nameof(Sensors_Series_GpuPowerLimit), Culture) ?? nameof(Sensors_Series_GpuPowerLimit);
|
||||
|
||||
public static string Sensors_Series_GpuTemp => ResourceManager.GetString(nameof(Sensors_Series_GpuTemp), Culture) ?? nameof(Sensors_Series_GpuTemp);
|
||||
|
||||
public static string Sensors_Series_GpuThermalLimit => ResourceManager.GetString(nameof(Sensors_Series_GpuThermalLimit), Culture) ?? nameof(Sensors_Series_GpuThermalLimit);
|
||||
|
||||
public static string Sensors_Series_Ram => ResourceManager.GetString(nameof(Sensors_Series_Ram), Culture) ?? nameof(Sensors_Series_Ram);
|
||||
|
||||
public static string Sensors_Series_VramAdapter => ResourceManager.GetString(nameof(Sensors_Series_VramAdapter), Culture) ?? nameof(Sensors_Series_VramAdapter);
|
||||
@@ -2623,6 +2735,8 @@ public static class Strings
|
||||
|
||||
public static string Summary_Open => ResourceManager.GetString(nameof(Summary_Open), Culture) ?? nameof(Summary_Open);
|
||||
|
||||
public static string Summary_RenderScale_Header => ResourceManager.GetString(nameof(Summary_RenderScale_Header), Culture) ?? nameof(Summary_RenderScale_Header);
|
||||
|
||||
public static string Summary_Save => ResourceManager.GetString(nameof(Summary_Save), Culture) ?? nameof(Summary_Save);
|
||||
|
||||
public static string Summary_Saved => ResourceManager.GetString(nameof(Summary_Saved), Culture) ?? nameof(Summary_Saved);
|
||||
@@ -2633,12 +2747,36 @@ public static class Strings
|
||||
|
||||
public static string Summary_Stat_Avg => ResourceManager.GetString(nameof(Summary_Stat_Avg), Culture) ?? nameof(Summary_Stat_Avg);
|
||||
|
||||
public static string Summary_Stat_Below30_Format => ResourceManager.GetString(nameof(Summary_Stat_Below30_Format), Culture) ?? nameof(Summary_Stat_Below30_Format);
|
||||
|
||||
public static string Summary_Stat_BelowRefresh_Format => ResourceManager.GetString(nameof(Summary_Stat_BelowRefresh_Format), Culture) ?? nameof(Summary_Stat_BelowRefresh_Format);
|
||||
|
||||
public static string Summary_Stat_Capture => ResourceManager.GetString(nameof(Summary_Stat_Capture), Culture) ?? nameof(Summary_Stat_Capture);
|
||||
|
||||
public static string Summary_Stat_Capture_Format => ResourceManager.GetString(nameof(Summary_Stat_Capture_Format), Culture) ?? nameof(Summary_Stat_Capture_Format);
|
||||
|
||||
public static string Summary_Stat_Clocks_Format => ResourceManager.GetString(nameof(Summary_Stat_Clocks_Format), Culture) ?? nameof(Summary_Stat_Clocks_Format);
|
||||
|
||||
public static string Summary_Stat_Cpu => ResourceManager.GetString(nameof(Summary_Stat_Cpu), Culture) ?? nameof(Summary_Stat_Cpu);
|
||||
|
||||
public static string Summary_Stat_Display => ResourceManager.GetString(nameof(Summary_Stat_Display), Culture) ?? nameof(Summary_Stat_Display);
|
||||
|
||||
public static string Summary_Stat_DisplayedLow_Format => ResourceManager.GetString(nameof(Summary_Stat_DisplayedLow_Format), Culture) ?? nameof(Summary_Stat_DisplayedLow_Format);
|
||||
|
||||
public static string Summary_Stat_Duration => ResourceManager.GetString(nameof(Summary_Stat_Duration), Culture) ?? nameof(Summary_Stat_Duration);
|
||||
|
||||
public static string Summary_Stat_Efficiency => ResourceManager.GetString(nameof(Summary_Stat_Efficiency), Culture) ?? nameof(Summary_Stat_Efficiency);
|
||||
|
||||
public static string Summary_Stat_Efficiency_Note => ResourceManager.GetString(nameof(Summary_Stat_Efficiency_Note), Culture) ?? nameof(Summary_Stat_Efficiency_Note);
|
||||
|
||||
public static string Summary_Stat_FanMemTemp_Format => ResourceManager.GetString(nameof(Summary_Stat_FanMemTemp_Format), Culture) ?? nameof(Summary_Stat_FanMemTemp_Format);
|
||||
|
||||
public static string Summary_Stat_Focus => ResourceManager.GetString(nameof(Summary_Stat_Focus), Culture) ?? nameof(Summary_Stat_Focus);
|
||||
|
||||
public static string Summary_Stat_Focus_Format => ResourceManager.GetString(nameof(Summary_Stat_Focus_Format), Culture) ?? nameof(Summary_Stat_Focus_Format);
|
||||
|
||||
public static string Summary_Stat_FrameToFrame => ResourceManager.GetString(nameof(Summary_Stat_FrameToFrame), Culture) ?? nameof(Summary_Stat_FrameToFrame);
|
||||
|
||||
public static string Summary_Stat_GameRam => ResourceManager.GetString(nameof(Summary_Stat_GameRam), Culture) ?? nameof(Summary_Stat_GameRam);
|
||||
|
||||
public static string Summary_Stat_GameRam_Suffix_Format => ResourceManager.GetString(nameof(Summary_Stat_GameRam_Suffix_Format), Culture) ?? nameof(Summary_Stat_GameRam_Suffix_Format);
|
||||
@@ -2653,6 +2791,12 @@ public static class Strings
|
||||
|
||||
public static string Summary_Stat_Gpu => ResourceManager.GetString(nameof(Summary_Stat_Gpu), Culture) ?? nameof(Summary_Stat_Gpu);
|
||||
|
||||
public static string Summary_Stat_GpuClocks => ResourceManager.GetString(nameof(Summary_Stat_GpuClocks), Culture) ?? nameof(Summary_Stat_GpuClocks);
|
||||
|
||||
public static string Summary_Stat_GpuLimits => ResourceManager.GetString(nameof(Summary_Stat_GpuLimits), Culture) ?? nameof(Summary_Stat_GpuLimits);
|
||||
|
||||
public static string Summary_Stat_Limits_Format => ResourceManager.GetString(nameof(Summary_Stat_Limits_Format), Culture) ?? nameof(Summary_Stat_Limits_Format);
|
||||
|
||||
public static string Summary_Stat_LoadTemp_Format => ResourceManager.GetString(nameof(Summary_Stat_LoadTemp_Format), Culture) ?? nameof(Summary_Stat_LoadTemp_Format);
|
||||
|
||||
public static string Summary_Stat_Median => ResourceManager.GetString(nameof(Summary_Stat_Median), Culture) ?? nameof(Summary_Stat_Median);
|
||||
@@ -2661,10 +2805,16 @@ public static class Strings
|
||||
|
||||
public static string Summary_Stat_MinMax_Format => ResourceManager.GetString(nameof(Summary_Stat_MinMax_Format), Culture) ?? nameof(Summary_Stat_MinMax_Format);
|
||||
|
||||
public static string Summary_Stat_OfFrames_Format => ResourceManager.GetString(nameof(Summary_Stat_OfFrames_Format), Culture) ?? nameof(Summary_Stat_OfFrames_Format);
|
||||
|
||||
public static string Summary_Stat_P01Low => ResourceManager.GetString(nameof(Summary_Stat_P01Low), Culture) ?? nameof(Summary_Stat_P01Low);
|
||||
|
||||
public static string Summary_Stat_P1Low => ResourceManager.GetString(nameof(Summary_Stat_P1Low), Culture) ?? nameof(Summary_Stat_P1Low);
|
||||
|
||||
public static string Summary_Stat_RaysPerPixel_Format => ResourceManager.GetString(nameof(Summary_Stat_RaysPerPixel_Format), Culture) ?? nameof(Summary_Stat_RaysPerPixel_Format);
|
||||
|
||||
public static string Summary_Stat_RayTracing => ResourceManager.GetString(nameof(Summary_Stat_RayTracing), Culture) ?? nameof(Summary_Stat_RayTracing);
|
||||
|
||||
public static string Summary_Stat_StdDev => ResourceManager.GetString(nameof(Summary_Stat_StdDev), Culture) ?? nameof(Summary_Stat_StdDev);
|
||||
|
||||
public static string Summary_Stat_StdDev_Format => ResourceManager.GetString(nameof(Summary_Stat_StdDev_Format), Culture) ?? nameof(Summary_Stat_StdDev_Format);
|
||||
@@ -2673,6 +2823,12 @@ public static class Strings
|
||||
|
||||
public static string Summary_Stat_Stutter_Format => ResourceManager.GetString(nameof(Summary_Stat_Stutter_Format), Culture) ?? nameof(Summary_Stat_Stutter_Format);
|
||||
|
||||
public static string Summary_Stat_Tearing_Format => ResourceManager.GetString(nameof(Summary_Stat_Tearing_Format), Culture) ?? nameof(Summary_Stat_Tearing_Format);
|
||||
|
||||
public static string Summary_Stat_TimeBelow60 => ResourceManager.GetString(nameof(Summary_Stat_TimeBelow60), Culture) ?? nameof(Summary_Stat_TimeBelow60);
|
||||
|
||||
public static string Summary_Stat_Vsync => ResourceManager.GetString(nameof(Summary_Stat_Vsync), Culture) ?? nameof(Summary_Stat_Vsync);
|
||||
|
||||
public static string Summary_Tags_Placeholder => ResourceManager.GetString(nameof(Summary_Tags_Placeholder), Culture) ?? nameof(Summary_Tags_Placeholder);
|
||||
|
||||
public static string Summary_Tier2_Body => ResourceManager.GetString(nameof(Summary_Tier2_Body), Culture) ?? nameof(Summary_Tier2_Body);
|
||||
@@ -2801,8 +2957,12 @@ public static class Strings
|
||||
|
||||
public static string Trend_Metric_DisplayWindowed => ResourceManager.GetString(nameof(Trend_Metric_DisplayWindowed), Culture) ?? nameof(Trend_Metric_DisplayWindowed);
|
||||
|
||||
public static string Trend_Metric_Efficiency => ResourceManager.GetString(nameof(Trend_Metric_Efficiency), Culture) ?? nameof(Trend_Metric_Efficiency);
|
||||
|
||||
public static string Trend_Metric_FgFactor => ResourceManager.GetString(nameof(Trend_Metric_FgFactor), Culture) ?? nameof(Trend_Metric_FgFactor);
|
||||
|
||||
public static string Trend_Metric_FrameToFrame => ResourceManager.GetString(nameof(Trend_Metric_FrameToFrame), Culture) ?? nameof(Trend_Metric_FrameToFrame);
|
||||
|
||||
public static string Trend_Metric_GameRamMedian => ResourceManager.GetString(nameof(Trend_Metric_GameRamMedian), Culture) ?? nameof(Trend_Metric_GameRamMedian);
|
||||
|
||||
public static string Trend_Metric_GameRamPeak => ResourceManager.GetString(nameof(Trend_Metric_GameRamPeak), Culture) ?? nameof(Trend_Metric_GameRamPeak);
|
||||
@@ -2811,10 +2971,14 @@ public static class Strings
|
||||
|
||||
public static string Trend_Metric_GameVramPeak => ResourceManager.GetString(nameof(Trend_Metric_GameVramPeak), Culture) ?? nameof(Trend_Metric_GameVramPeak);
|
||||
|
||||
public static string Trend_Metric_GpuCoreClock => ResourceManager.GetString(nameof(Trend_Metric_GpuCoreClock), Culture) ?? nameof(Trend_Metric_GpuCoreClock);
|
||||
|
||||
public static string Trend_Metric_Label => ResourceManager.GetString(nameof(Trend_Metric_Label), Culture) ?? nameof(Trend_Metric_Label);
|
||||
|
||||
public static string Trend_Metric_MaxCpuTemp => ResourceManager.GetString(nameof(Trend_Metric_MaxCpuTemp), Culture) ?? nameof(Trend_Metric_MaxCpuTemp);
|
||||
|
||||
public static string Trend_Metric_MaxGpuMemTemp => ResourceManager.GetString(nameof(Trend_Metric_MaxGpuMemTemp), Culture) ?? nameof(Trend_Metric_MaxGpuMemTemp);
|
||||
|
||||
public static string Trend_Metric_MaxGpuTemp => ResourceManager.GetString(nameof(Trend_Metric_MaxGpuTemp), Culture) ?? nameof(Trend_Metric_MaxGpuTemp);
|
||||
|
||||
public static string Trend_Metric_NativeFps => ResourceManager.GetString(nameof(Trend_Metric_NativeFps), Culture) ?? nameof(Trend_Metric_NativeFps);
|
||||
@@ -2823,8 +2987,18 @@ public static class Strings
|
||||
|
||||
public static string Trend_Metric_P1Low => ResourceManager.GetString(nameof(Trend_Metric_P1Low), Culture) ?? nameof(Trend_Metric_P1Low);
|
||||
|
||||
public static string Trend_Metric_PowerLimitShare => ResourceManager.GetString(nameof(Trend_Metric_PowerLimitShare), Culture) ?? nameof(Trend_Metric_PowerLimitShare);
|
||||
|
||||
public static string Trend_Metric_PresentedFps => ResourceManager.GetString(nameof(Trend_Metric_PresentedFps), Culture) ?? nameof(Trend_Metric_PresentedFps);
|
||||
|
||||
public static string Trend_Metric_RenderScale => ResourceManager.GetString(nameof(Trend_Metric_RenderScale), Culture) ?? nameof(Trend_Metric_RenderScale);
|
||||
|
||||
public static string Trend_Metric_TimeBelow60 => ResourceManager.GetString(nameof(Trend_Metric_TimeBelow60), Culture) ?? nameof(Trend_Metric_TimeBelow60);
|
||||
|
||||
public static string Trend_Metric_TimeBelowRefresh => ResourceManager.GetString(nameof(Trend_Metric_TimeBelowRefresh), Culture) ?? nameof(Trend_Metric_TimeBelowRefresh);
|
||||
|
||||
public static string Trend_Metric_VsyncShare => ResourceManager.GetString(nameof(Trend_Metric_VsyncShare), Culture) ?? nameof(Trend_Metric_VsyncShare);
|
||||
|
||||
public static string Trend_Partial_Note => ResourceManager.GetString(nameof(Trend_Partial_Note), Culture) ?? nameof(Trend_Partial_Note);
|
||||
|
||||
public static string Trend_Unit_Celsius => ResourceManager.GetString(nameof(Trend_Unit_Celsius), Culture) ?? nameof(Trend_Unit_Celsius);
|
||||
@@ -2833,8 +3007,14 @@ public static class Strings
|
||||
|
||||
public static string Trend_Unit_Fps => ResourceManager.GetString(nameof(Trend_Unit_Fps), Culture) ?? nameof(Trend_Unit_Fps);
|
||||
|
||||
public static string Trend_Unit_FpsPerWatt => ResourceManager.GetString(nameof(Trend_Unit_FpsPerWatt), Culture) ?? nameof(Trend_Unit_FpsPerWatt);
|
||||
|
||||
public static string Trend_Unit_Gigabytes => ResourceManager.GetString(nameof(Trend_Unit_Gigabytes), Culture) ?? nameof(Trend_Unit_Gigabytes);
|
||||
|
||||
public static string Trend_Unit_Mhz => ResourceManager.GetString(nameof(Trend_Unit_Mhz), Culture) ?? nameof(Trend_Unit_Mhz);
|
||||
|
||||
public static string Trend_Unit_Ms => ResourceManager.GetString(nameof(Trend_Unit_Ms), Culture) ?? nameof(Trend_Unit_Ms);
|
||||
|
||||
public static string Trend_Unit_Percent => ResourceManager.GetString(nameof(Trend_Unit_Percent), Culture) ?? nameof(Trend_Unit_Percent);
|
||||
|
||||
public static string Trend_Unit_Watts => ResourceManager.GetString(nameof(Trend_Unit_Watts), Culture) ?? nameof(Trend_Unit_Watts);
|
||||
|
||||
@@ -3865,4 +3865,244 @@
|
||||
<value>クラッシュ(ゲームがクラッシュ レポーター {0} を起動しました)</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuCoreClock" xml:space="preserve">
|
||||
<value>GPU コアクロック MHz</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuMemClock" xml:space="preserve">
|
||||
<value>GPU メモリクロック MHz</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuFan" xml:space="preserve">
|
||||
<value>GPU ファン RPM</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuMemTemp" xml:space="preserve">
|
||||
<value>GPU メモリ °C</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuPowerLimit" xml:space="preserve">
|
||||
<value>GPU 電力制限 %</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuThermalLimit" xml:space="preserve">
|
||||
<value>GPU 温度制限 %</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Format_Frequency_Format" xml:space="preserve">
|
||||
<value>{0:N0} MHz</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Format_Rpm_Format" xml:space="preserve">
|
||||
<value>{0:N0} RPM</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Format_Milliseconds_Format" xml:space="preserve">
|
||||
<value>{0:0.00} ms</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Format_FramesPerJoule_Format" xml:space="preserve">
|
||||
<value>{0:0.00} FPS/W</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_TimeBelow60" xml:space="preserve">
|
||||
<value>60 FPS 未満の時間</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Below30_Format" xml:space="preserve">
|
||||
<value>30 未満: {0}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_BelowRefresh_Format" xml:space="preserve">
|
||||
<value>表示 {0} Hz 未満: {1}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_FrameToFrame" xml:space="preserve">
|
||||
<value>フレーム間の変動</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Vsync" xml:space="preserve">
|
||||
<value>VSync</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_OfFrames_Format" xml:space="preserve">
|
||||
<value>フレームの {0}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Tearing_Format" xml:space="preserve">
|
||||
<value>ティアリング許可: {0}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_RayTracing" xml:space="preserve">
|
||||
<value>レイトレーシング</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_RaysPerPixel_Format" xml:space="preserve">
|
||||
<value>1 ピクセルあたり {0:0.00} レイ</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Focus" xml:space="preserve">
|
||||
<value>ゲームがアクティブ</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Focus_Format" xml:space="preserve">
|
||||
<value>時間の {0}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Capture" xml:space="preserve">
|
||||
<value>記録の品質</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Capture_Format" xml:space="preserve">
|
||||
<value>欠落 {0:N0} · 消失 {1:N0} · 障害 {2:N0}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_DisplayedLow_Format" xml:space="preserve">
|
||||
<value>表示: {0}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_GpuClocks" xml:space="preserve">
|
||||
<value>GPU クロック</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Clocks_Format" xml:space="preserve">
|
||||
<value>コア {0} · メモリ {1}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_FanMemTemp_Format" xml:space="preserve">
|
||||
<value>ファン {0} · メモリ {1}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_GpuLimits" xml:space="preserve">
|
||||
<value>GPU の制限</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Limits_Format" xml:space="preserve">
|
||||
<value>電力 {0} · 温度 {1}</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Efficiency" xml:space="preserve">
|
||||
<value>ワットあたりのフレーム</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_Stat_Efficiency_Note" xml:space="preserve">
|
||||
<value>ゲーム自身のフレーム・GPU 電力のみ</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Summary_RenderScale_Header" xml:space="preserve">
|
||||
<value>レンダースケール</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Chart_Axis_RenderScale" xml:space="preserve">
|
||||
<value>レンダースケール %</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Chart_RenderScale_NotMeasured" xml:space="preserve">
|
||||
<value>このセッションではレンダー解像度を測定していません。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Clocks_Header" xml:space="preserve">
|
||||
<value>クロックとファン</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Axis_Mhz" xml:space="preserve">
|
||||
<value>MHz</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Axis_Rpm" xml:space="preserve">
|
||||
<value>RPM</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Limit_Power" xml:space="preserve">
|
||||
<value>電力制限</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Sensors_Limit_Thermal" xml:space="preserve">
|
||||
<value>温度制限</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Metric_TimeBelow60" xml:space="preserve">
|
||||
<value>60 FPS 未満の時間 %</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Metric_TimeBelowRefresh" xml:space="preserve">
|
||||
<value>リフレッシュレート未満の表示 %</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Metric_FrameToFrame" xml:space="preserve">
|
||||
<value>フレーム間の変動 ms</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Metric_RenderScale" xml:space="preserve">
|
||||
<value>レンダースケール %</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Metric_VsyncShare" xml:space="preserve">
|
||||
<value>VSync の割合 %</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Metric_GpuCoreClock" xml:space="preserve">
|
||||
<value>平均GPUコアクロック MHz</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Metric_MaxGpuMemTemp" xml:space="preserve">
|
||||
<value>GPU メモリ最高 °C</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Metric_PowerLimitShare" xml:space="preserve">
|
||||
<value>電力制限の割合 %</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Metric_Efficiency" xml:space="preserve">
|
||||
<value>ワットあたりのフレーム</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Unit_Ms" xml:space="preserve">
|
||||
<value>ms</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Unit_Mhz" xml:space="preserve">
|
||||
<value>MHz</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Trend_Unit_FpsPerWatt" xml:space="preserve">
|
||||
<value>FPS/W</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Compare_Metric_TimeBelow60" xml:space="preserve">
|
||||
<value>60 FPS 未満の時間</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Compare_Metric_TimeBelowRefresh" xml:space="preserve">
|
||||
<value>リフレッシュレート未満の表示</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Compare_Metric_FrameToFrame" xml:space="preserve">
|
||||
<value>フレーム間の変動</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Compare_Metric_Vsync" xml:space="preserve">
|
||||
<value>VSync の割合</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Compare_Metric_RenderScale" xml:space="preserve">
|
||||
<value>レンダースケール</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Compare_Metric_GpuCoreClock" xml:space="preserve">
|
||||
<value>平均GPUコアクロック</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Compare_Metric_MaxGpuMemTemp" xml:space="preserve">
|
||||
<value>GPU メモリ最高 °C</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Compare_Metric_PowerLimit" xml:space="preserve">
|
||||
<value>電力制限の割合</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Compare_Metric_Efficiency" xml:space="preserve">
|
||||
<value>ワットあたりのフレーム</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
</root>
|
||||
@@ -2909,4 +2909,184 @@ The documents below are the full terms; this summary does not replace them.</val
|
||||
<data name="Exit_CrashReporter_Format" xml:space="preserve">
|
||||
<value>crashed (the game started its crash reporter, {0})</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuCoreClock" xml:space="preserve">
|
||||
<value>GPU core clock MHz</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuMemClock" xml:space="preserve">
|
||||
<value>GPU memory clock MHz</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuFan" xml:space="preserve">
|
||||
<value>GPU fan RPM</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuMemTemp" xml:space="preserve">
|
||||
<value>GPU memory °C</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuPowerLimit" xml:space="preserve">
|
||||
<value>GPU held back by its power limit %</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuThermalLimit" xml:space="preserve">
|
||||
<value>GPU held back by heat %</value>
|
||||
</data>
|
||||
<data name="Format_Frequency_Format" xml:space="preserve">
|
||||
<value>{0:N0} MHz</value>
|
||||
</data>
|
||||
<data name="Format_Rpm_Format" xml:space="preserve">
|
||||
<value>{0:N0} RPM</value>
|
||||
</data>
|
||||
<data name="Format_Milliseconds_Format" xml:space="preserve">
|
||||
<value>{0:0.00} ms</value>
|
||||
</data>
|
||||
<data name="Format_FramesPerJoule_Format" xml:space="preserve">
|
||||
<value>{0:0.00} FPS/W</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_TimeBelow60" xml:space="preserve">
|
||||
<value>Time below 60 FPS</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Below30_Format" xml:space="preserve">
|
||||
<value>below 30: {0}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_BelowRefresh_Format" xml:space="preserve">
|
||||
<value>display under {0} Hz: {1}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_FrameToFrame" xml:space="preserve">
|
||||
<value>Frame to frame</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Vsync" xml:space="preserve">
|
||||
<value>VSync</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_OfFrames_Format" xml:space="preserve">
|
||||
<value>{0} of frames</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Tearing_Format" xml:space="preserve">
|
||||
<value>tearing allowed: {0}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_RayTracing" xml:space="preserve">
|
||||
<value>Ray tracing</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_RaysPerPixel_Format" xml:space="preserve">
|
||||
<value>{0:0.00} rays per pixel</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Focus" xml:space="preserve">
|
||||
<value>Game in focus</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Focus_Format" xml:space="preserve">
|
||||
<value>{0} of the time</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Capture" xml:space="preserve">
|
||||
<value>Capture quality</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Capture_Format" xml:space="preserve">
|
||||
<value>{0:N0} gaps · {1:N0} lost · {2:N0} faults</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_DisplayedLow_Format" xml:space="preserve">
|
||||
<value>displayed: {0}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_GpuClocks" xml:space="preserve">
|
||||
<value>GPU clocks</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Clocks_Format" xml:space="preserve">
|
||||
<value>{0} core · {1} memory</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_FanMemTemp_Format" xml:space="preserve">
|
||||
<value>fan {0} · memory {1}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_GpuLimits" xml:space="preserve">
|
||||
<value>GPU held back</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Limits_Format" xml:space="preserve">
|
||||
<value>power {0} · heat {1}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Efficiency" xml:space="preserve">
|
||||
<value>Frames per watt</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Efficiency_Note" xml:space="preserve">
|
||||
<value>the game's own frames, GPU power only</value>
|
||||
</data>
|
||||
<data name="Summary_RenderScale_Header" xml:space="preserve">
|
||||
<value>Render scale</value>
|
||||
</data>
|
||||
<data name="Chart_Axis_RenderScale" xml:space="preserve">
|
||||
<value>Render scale %</value>
|
||||
</data>
|
||||
<data name="Chart_RenderScale_NotMeasured" xml:space="preserve">
|
||||
<value>The render resolution was not measured in this session.</value>
|
||||
</data>
|
||||
<data name="Sensors_Clocks_Header" xml:space="preserve">
|
||||
<value>Clocks and fan</value>
|
||||
</data>
|
||||
<data name="Sensors_Axis_Mhz" xml:space="preserve">
|
||||
<value>MHz</value>
|
||||
</data>
|
||||
<data name="Sensors_Axis_Rpm" xml:space="preserve">
|
||||
<value>RPM</value>
|
||||
</data>
|
||||
<data name="Sensors_Limit_Power" xml:space="preserve">
|
||||
<value>held back by its power limit</value>
|
||||
</data>
|
||||
<data name="Sensors_Limit_Thermal" xml:space="preserve">
|
||||
<value>held back by heat</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_TimeBelow60" xml:space="preserve">
|
||||
<value>Time below 60 FPS %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_TimeBelowRefresh" xml:space="preserve">
|
||||
<value>Display under refresh rate %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_FrameToFrame" xml:space="preserve">
|
||||
<value>Frame to frame ms</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_RenderScale" xml:space="preserve">
|
||||
<value>Render scale %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_VsyncShare" xml:space="preserve">
|
||||
<value>VSync share %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_GpuCoreClock" xml:space="preserve">
|
||||
<value>Avg GPU core clock MHz</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_MaxGpuMemTemp" xml:space="preserve">
|
||||
<value>Max GPU memory °C</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_PowerLimitShare" xml:space="preserve">
|
||||
<value>Held back by power limit %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_Efficiency" xml:space="preserve">
|
||||
<value>Frames per watt</value>
|
||||
</data>
|
||||
<data name="Trend_Unit_Ms" xml:space="preserve">
|
||||
<value>ms</value>
|
||||
</data>
|
||||
<data name="Trend_Unit_Mhz" xml:space="preserve">
|
||||
<value>MHz</value>
|
||||
</data>
|
||||
<data name="Trend_Unit_FpsPerWatt" xml:space="preserve">
|
||||
<value>FPS/W</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_TimeBelow60" xml:space="preserve">
|
||||
<value>Time below 60 FPS</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_TimeBelowRefresh" xml:space="preserve">
|
||||
<value>Display under refresh rate</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_FrameToFrame" xml:space="preserve">
|
||||
<value>Frame to frame</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_Vsync" xml:space="preserve">
|
||||
<value>VSync share</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_RenderScale" xml:space="preserve">
|
||||
<value>Render scale</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_GpuCoreClock" xml:space="preserve">
|
||||
<value>Avg GPU core clock</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_MaxGpuMemTemp" xml:space="preserve">
|
||||
<value>Max GPU memory °C</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_PowerLimit" xml:space="preserve">
|
||||
<value>Held back by power limit</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_Efficiency" xml:space="preserve">
|
||||
<value>Frames per watt</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -2904,4 +2904,184 @@ Các văn bản bên dưới là điều khoản đầy đủ; bản tóm tắt
|
||||
<data name="Exit_CrashReporter_Format" xml:space="preserve">
|
||||
<value>bị crash (game đã mở trình báo lỗi crash của nó, {0})</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuCoreClock" xml:space="preserve">
|
||||
<value>Xung nhịp lõi GPU MHz</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuMemClock" xml:space="preserve">
|
||||
<value>Xung nhịp bộ nhớ GPU MHz</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuFan" xml:space="preserve">
|
||||
<value>Quạt GPU vòng/phút</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuMemTemp" xml:space="preserve">
|
||||
<value>Bộ nhớ GPU °C</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuPowerLimit" xml:space="preserve">
|
||||
<value>GPU bị giới hạn công suất %</value>
|
||||
</data>
|
||||
<data name="Sensors_Series_GpuThermalLimit" xml:space="preserve">
|
||||
<value>GPU bị giới hạn do nhiệt %</value>
|
||||
</data>
|
||||
<data name="Format_Frequency_Format" xml:space="preserve">
|
||||
<value>{0:N0} MHz</value>
|
||||
</data>
|
||||
<data name="Format_Rpm_Format" xml:space="preserve">
|
||||
<value>{0:N0} vòng/phút</value>
|
||||
</data>
|
||||
<data name="Format_Milliseconds_Format" xml:space="preserve">
|
||||
<value>{0:0.00} ms</value>
|
||||
</data>
|
||||
<data name="Format_FramesPerJoule_Format" xml:space="preserve">
|
||||
<value>{0:0.00} FPS/W</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_TimeBelow60" xml:space="preserve">
|
||||
<value>Thời gian dưới 60 FPS</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Below30_Format" xml:space="preserve">
|
||||
<value>dưới 30: {0}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_BelowRefresh_Format" xml:space="preserve">
|
||||
<value>màn hình dưới {0} Hz: {1}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_FrameToFrame" xml:space="preserve">
|
||||
<value>Chênh lệch giữa các frame</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Vsync" xml:space="preserve">
|
||||
<value>VSync</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_OfFrames_Format" xml:space="preserve">
|
||||
<value>{0} số frame</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Tearing_Format" xml:space="preserve">
|
||||
<value>cho phép xé hình: {0}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_RayTracing" xml:space="preserve">
|
||||
<value>Ray tracing</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_RaysPerPixel_Format" xml:space="preserve">
|
||||
<value>{0:0.00} tia mỗi điểm ảnh</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Focus" xml:space="preserve">
|
||||
<value>Game đang được chọn</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Focus_Format" xml:space="preserve">
|
||||
<value>{0} thời gian</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Capture" xml:space="preserve">
|
||||
<value>Chất lượng ghi</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Capture_Format" xml:space="preserve">
|
||||
<value>{0:N0} khoảng trống · {1:N0} bị mất · {2:N0} lỗi</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_DisplayedLow_Format" xml:space="preserve">
|
||||
<value>hiển thị: {0}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_GpuClocks" xml:space="preserve">
|
||||
<value>Xung nhịp GPU</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Clocks_Format" xml:space="preserve">
|
||||
<value>{0} lõi · {1} bộ nhớ</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_FanMemTemp_Format" xml:space="preserve">
|
||||
<value>quạt {0} · bộ nhớ {1}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_GpuLimits" xml:space="preserve">
|
||||
<value>GPU bị giới hạn</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Limits_Format" xml:space="preserve">
|
||||
<value>công suất {0} · nhiệt {1}</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Efficiency" xml:space="preserve">
|
||||
<value>Frame mỗi watt</value>
|
||||
</data>
|
||||
<data name="Summary_Stat_Efficiency_Note" xml:space="preserve">
|
||||
<value>chỉ frame của game, chỉ công suất GPU</value>
|
||||
</data>
|
||||
<data name="Summary_RenderScale_Header" xml:space="preserve">
|
||||
<value>Tỉ lệ render</value>
|
||||
</data>
|
||||
<data name="Chart_Axis_RenderScale" xml:space="preserve">
|
||||
<value>Tỉ lệ render %</value>
|
||||
</data>
|
||||
<data name="Chart_RenderScale_NotMeasured" xml:space="preserve">
|
||||
<value>Phiên này không đo được độ phân giải render.</value>
|
||||
</data>
|
||||
<data name="Sensors_Clocks_Header" xml:space="preserve">
|
||||
<value>Xung nhịp và quạt</value>
|
||||
</data>
|
||||
<data name="Sensors_Axis_Mhz" xml:space="preserve">
|
||||
<value>MHz</value>
|
||||
</data>
|
||||
<data name="Sensors_Axis_Rpm" xml:space="preserve">
|
||||
<value>vòng/phút</value>
|
||||
</data>
|
||||
<data name="Sensors_Limit_Power" xml:space="preserve">
|
||||
<value>bị giới hạn công suất</value>
|
||||
</data>
|
||||
<data name="Sensors_Limit_Thermal" xml:space="preserve">
|
||||
<value>bị giới hạn do nhiệt</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_TimeBelow60" xml:space="preserve">
|
||||
<value>Thời gian dưới 60 FPS %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_TimeBelowRefresh" xml:space="preserve">
|
||||
<value>Màn hình dưới tần số quét %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_FrameToFrame" xml:space="preserve">
|
||||
<value>Chênh lệch giữa các frame ms</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_RenderScale" xml:space="preserve">
|
||||
<value>Tỉ lệ render %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_VsyncShare" xml:space="preserve">
|
||||
<value>Tỉ lệ VSync %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_GpuCoreClock" xml:space="preserve">
|
||||
<value>Xung nhịp lõi GPU TB MHz</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_MaxGpuMemTemp" xml:space="preserve">
|
||||
<value>Bộ nhớ GPU tối đa °C</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_PowerLimitShare" xml:space="preserve">
|
||||
<value>Bị giới hạn công suất %</value>
|
||||
</data>
|
||||
<data name="Trend_Metric_Efficiency" xml:space="preserve">
|
||||
<value>Frame mỗi watt</value>
|
||||
</data>
|
||||
<data name="Trend_Unit_Ms" xml:space="preserve">
|
||||
<value>ms</value>
|
||||
</data>
|
||||
<data name="Trend_Unit_Mhz" xml:space="preserve">
|
||||
<value>MHz</value>
|
||||
</data>
|
||||
<data name="Trend_Unit_FpsPerWatt" xml:space="preserve">
|
||||
<value>FPS/W</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_TimeBelow60" xml:space="preserve">
|
||||
<value>Thời gian dưới 60 FPS</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_TimeBelowRefresh" xml:space="preserve">
|
||||
<value>Màn hình dưới tần số quét</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_FrameToFrame" xml:space="preserve">
|
||||
<value>Chênh lệch giữa các frame</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_Vsync" xml:space="preserve">
|
||||
<value>Tỉ lệ VSync</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_RenderScale" xml:space="preserve">
|
||||
<value>Tỉ lệ render</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_GpuCoreClock" xml:space="preserve">
|
||||
<value>Xung nhịp lõi GPU TB</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_MaxGpuMemTemp" xml:space="preserve">
|
||||
<value>Bộ nhớ GPU tối đa °C</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_PowerLimit" xml:space="preserve">
|
||||
<value>Bị giới hạn công suất</value>
|
||||
</data>
|
||||
<data name="Compare_Metric_Efficiency" xml:space="preserve">
|
||||
<value>Frame mỗi watt</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -22,4 +22,7 @@
|
||||
<Color x:Key="Chart_Histogram">#CC4CC2FF</Color>
|
||||
<!-- Not a second gold beside Chart_SensorSecondary (beta.8): the Sensors tab draws both. -->
|
||||
<Color x:Key="Chart_Percentile">#FFFF79C6</Color>
|
||||
<!-- beta.14: the seventh line on the temperatures plot (the card's memory temperature) — no colour above is 60 apart
|
||||
from all six beside it. -->
|
||||
<Color x:Key="Chart_SensorTertiary">#FFE6E6E6</Color>
|
||||
</ResourceDictionary>
|
||||
@@ -18,4 +18,6 @@
|
||||
<Color x:Key="Chart_Histogram">#CC0A6FB3</Color>
|
||||
<!-- Not Chart_SensorSecondary's gold (beta.8): the Sensors tab draws both, and in this theme they were one colour. -->
|
||||
<Color x:Key="Chart_Percentile">#FF795548</Color>
|
||||
<!-- beta.14: the seventh line on the temperatures plot (the card's memory temperature). -->
|
||||
<Color x:Key="Chart_SensorTertiary">#FFBE008C</Color>
|
||||
</ResourceDictionary>
|
||||
@@ -182,13 +182,45 @@ public sealed partial class CompareViewModel : ObservableObject
|
||||
{
|
||||
Rows.Clear();
|
||||
SessionRow[] rows = [.. picked.Select(static c => c.Row)];
|
||||
AddFrameRows(rows);
|
||||
AddMachineRows(rows);
|
||||
Rows.Add(new CompareRowViewModel(Strings.Compare_Metric_Duration, [.. rows.Select(static r => new CompareCell(Formats.Duration(r.DurationSeconds), false))]));
|
||||
|
||||
// beta.10: how each session was shown, both tiers. Facts, not scores: no mode is better than another, so none is best.
|
||||
Rows.Add(new CompareRowViewModel(Strings.Compare_Metric_Display, [.. rows.Select(static r => new CompareCell(DisplayText.Shares(DisplayText.Of(r)), false))]));
|
||||
Rows.Add(new CompareRowViewModel(Strings.Compare_Metric_Window, [.. rows.Select(static r => new CompareCell(DisplayText.Window(DisplayText.Of(r)), false))]));
|
||||
Rows.Add(new CompareRowViewModel(Strings.Compare_Metric_Monitor, [.. rows.Select(static r => new CompareCell(DisplayText.Monitor(DisplayText.Of(r)), false))]));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The frame rate's rows, hooked sessions only. A statistic a present-only session has over its presents is labelled
|
||||
/// <c>(presented)</c> in its cell (beta.14, rule 6) — beside a session whose same statistic is over the game's own frames,
|
||||
/// an unlabelled number would compare two different things as one.
|
||||
/// </summary>
|
||||
private void AddFrameRows(SessionRow[] rows)
|
||||
{
|
||||
Rows.Add(Row(Strings.Compare_Metric_Native, rows, static r => FpsPresentation.FromRow(r) is { Kind: FpsReadoutKind.Generated or FpsReadoutKind.None } m ? m.Native : null, Formats.Fps, higherIsBetter: true));
|
||||
Rows.Add(Row(Strings.Compare_Metric_Displayed, rows, static r => FpsPresentation.FromRow(r) is { Kind: FpsReadoutKind.Generated } m ? m.Displayed : null, Formats.Fps, higherIsBetter: true));
|
||||
Rows.Add(Row(Strings.Compare_Metric_Presented, rows, static r => FpsPresentation.FromRow(r) is { Kind: FpsReadoutKind.Presented or FpsReadoutKind.IdentifiedUncounted } m ? m.Presented : null, Formats.Fps, higherIsBetter: true));
|
||||
Rows.Add(Row(Strings.Compare_Metric_Median, rows, static r => r.Tier == Domain.Sessions.CaptureTier.Hooked ? r.MedianFps : null, Formats.Fps, higherIsBetter: true));
|
||||
Rows.Add(Row(Strings.Compare_Metric_P1Low, rows, static r => r.Tier == Domain.Sessions.CaptureTier.Hooked ? r.P1LowFps : null, Formats.Fps, higherIsBetter: true));
|
||||
Rows.Add(Row(Strings.Compare_Metric_P01Low, rows, static r => r.Tier == Domain.Sessions.CaptureTier.Hooked ? r.P01LowFps : null, Formats.Fps, higherIsBetter: true));
|
||||
Rows.Add(Row(Strings.Compare_Metric_StutterPct, rows, static r => r.Tier == Domain.Sessions.CaptureTier.Hooked ? r.StutterTimePct : null, static v => v is double d ? d.ToString("0.0", CultureInfo.CurrentCulture) + "%" : Strings.Common_NotAvailable, higherIsBetter: false));
|
||||
Rows.Add(Row(Strings.Compare_Metric_Median, rows, static r => Hooked(r, r.MedianFps), Formats.Fps, higherIsBetter: true, PresentedLabel));
|
||||
Rows.Add(Row(Strings.Compare_Metric_P1Low, rows, static r => Hooked(r, r.P1LowFps), Formats.Fps, higherIsBetter: true, PresentedLabel));
|
||||
Rows.Add(Row(Strings.Compare_Metric_P01Low, rows, static r => Hooked(r, r.P01LowFps), Formats.Fps, higherIsBetter: true, PresentedLabel));
|
||||
Rows.Add(Row(Strings.Compare_Metric_StutterPct, rows, static r => Hooked(r, r.StutterTimePct), Formats.Share, higherIsBetter: false, PresentedLabel));
|
||||
|
||||
// beta.14 (D49): pacing — less time below 60 and less change from frame to frame is better; the refresh share is the
|
||||
// display's, over presents, generated frames included, and is named for it rather than labelled presented.
|
||||
Rows.Add(Row(Strings.Compare_Metric_TimeBelow60, rows, static r => Hooked(r, r.TimeBelow60Pct), Formats.Share, higherIsBetter: false, PresentedLabel));
|
||||
Rows.Add(Row(Strings.Compare_Metric_TimeBelowRefresh, rows, static r => Hooked(r, r.TimeBelowRefreshPct), Formats.Share, higherIsBetter: false));
|
||||
Rows.Add(Row(Strings.Compare_Metric_FrameToFrame, rows, static r => Hooked(r, r.FrametimeDeltaMeanMs), Formats.Milliseconds, higherIsBetter: false, PresentedLabel));
|
||||
|
||||
// What the presents asked for, and the render scale: settings, not scores — no best.
|
||||
Rows.Add(Row(Strings.Compare_Metric_Vsync, rows, static r => Hooked(r, r.VsyncPresentPct), Formats.Share, higherIsBetter: null));
|
||||
Rows.Add(Row(Strings.Compare_Metric_RenderScale, rows, static r => r.UpscaleRatio is > 0 ? 100.0 / r.UpscaleRatio.Value : null, Formats.Share, higherIsBetter: null));
|
||||
}
|
||||
|
||||
/// <summary>The machine's rows, both tiers.</summary>
|
||||
private void AddMachineRows(SessionRow[] rows)
|
||||
{
|
||||
Rows.Add(Row(Strings.Compare_Metric_MaxGpuTemp, rows, static r => r.MaxGpuTemp, Formats.Temperature, higherIsBetter: false));
|
||||
// A load is neither better high nor low (beta.8): a GPU at 99 % may be the bottleneck or simply busy, so neither row
|
||||
// names a best.
|
||||
@@ -202,20 +234,28 @@ public sealed partial class CompareViewModel : ObservableObject
|
||||
Rows.Add(Row(Strings.Compare_Metric_GameVramPeak, rows, static r => r.GameVramDedicatedMaxMb, Formats.Memory, higherIsBetter: null));
|
||||
Rows.Add(Row(Strings.Compare_Metric_GameRamMedian, rows, static r => r.GameRamPrivateMedianMb, Formats.Memory, higherIsBetter: null));
|
||||
Rows.Add(Row(Strings.Compare_Metric_GameRamPeak, rows, static r => r.GameRamPrivateMaxMb, Formats.Memory, higherIsBetter: null));
|
||||
Rows.Add(new CompareRowViewModel(Strings.Compare_Metric_Duration, [.. rows.Select(static r => new CompareCell(Formats.Duration(r.DurationSeconds), false))]));
|
||||
|
||||
// beta.10: how each session was shown, both tiers. Facts, not scores: no mode is better than another, so none is best.
|
||||
Rows.Add(new CompareRowViewModel(Strings.Compare_Metric_Display, [.. rows.Select(static r => new CompareCell(DisplayText.Shares(DisplayText.Of(r)), false))]));
|
||||
Rows.Add(new CompareRowViewModel(Strings.Compare_Metric_Window, [.. rows.Select(static r => new CompareCell(DisplayText.Window(DisplayText.Of(r)), false))]));
|
||||
Rows.Add(new CompareRowViewModel(Strings.Compare_Metric_Monitor, [.. rows.Select(static r => new CompareCell(DisplayText.Monitor(DisplayText.Of(r)), false))]));
|
||||
// beta.14 (D49): the card. A clock and a power limit are facts about the card, not scores; a cooler memory and more
|
||||
// of the game's own frames per watt are better.
|
||||
Rows.Add(Row(Strings.Compare_Metric_GpuCoreClock, rows, static r => r.AvgGpuCoreClockMhz, Formats.Frequency, higherIsBetter: null));
|
||||
Rows.Add(Row(Strings.Compare_Metric_MaxGpuMemTemp, rows, static r => r.MaxGpuMemTemp, Formats.Temperature, higherIsBetter: false));
|
||||
Rows.Add(Row(Strings.Compare_Metric_PowerLimit, rows, static r => r.PowerLimitPct, Formats.Share, higherIsBetter: null));
|
||||
Rows.Add(Row(Strings.Compare_Metric_Efficiency, rows, static r => r.AppFramesPerJoule, Formats.FramesPerJoule, higherIsBetter: true));
|
||||
}
|
||||
|
||||
private static double? Hooked(SessionRow row, double? value) => row.Tier == Domain.Sessions.CaptureTier.Hooked ? value : null;
|
||||
|
||||
/// <summary>The <c>(presented)</c> label for a hooked session whose statistics are over presents; null otherwise.</summary>
|
||||
private static string? PresentedLabel(SessionRow row) =>
|
||||
row.Tier == Domain.Sessions.CaptureTier.Hooked && FpsPresentation.FromRow(row).Kind == FpsReadoutKind.Presented ? Strings.Summary_Lows_Presented : null;
|
||||
|
||||
/// <summary>
|
||||
/// One row: the value per session, the best (never an N/A) flagged; a row where nothing has a value is all N/A and nothing
|
||||
/// is best, and a row that ranks nothing (<paramref name="higherIsBetter"/> null) flags none. Since beta.8 the best is the
|
||||
/// best as SHOWN: two sessions that both read "62" are both best — 62.4 against 62.3 is not a difference the reader sees.
|
||||
/// </summary>
|
||||
internal static CompareRowViewModel Row(string metric, IReadOnlyList<SessionRow> rows, Func<SessionRow, double?> value, Func<double?, string> text, bool? higherIsBetter)
|
||||
internal static CompareRowViewModel Row(string metric, IReadOnlyList<SessionRow> rows, Func<SessionRow, double?> value, Func<double?, string> text, bool? higherIsBetter,
|
||||
Func<SessionRow, string?>? label = null)
|
||||
{
|
||||
double?[] values = [.. rows.Select(value)];
|
||||
double? best = higherIsBetter switch
|
||||
@@ -225,9 +265,15 @@ public sealed partial class CompareViewModel : ObservableObject
|
||||
null => null,
|
||||
};
|
||||
string? bestText = best.HasValue ? text(best) : null;
|
||||
return new CompareRowViewModel(metric, [.. values.Select(v => new CompareCell(text(v), bestText is not null && v.HasValue && string.Equals(text(v), bestText, StringComparison.Ordinal)))]);
|
||||
|
||||
// The best is decided on the number as shown; a label beside it (beta.14) says what the number is over, not how good.
|
||||
return new CompareRowViewModel(metric, [.. values.Select((v, i) => new CompareCell(
|
||||
Labelled(text(v), v.HasValue ? label?.Invoke(rows[i]) : null),
|
||||
bestText is not null && v.HasValue && string.Equals(text(v), bestText, StringComparison.Ordinal)))]);
|
||||
}
|
||||
|
||||
private static string Labelled(string text, string? label) => label is null ? text : text + " " + label;
|
||||
|
||||
private void OnCandidateChanged(object? sender, PropertyChangedEventArgs e)
|
||||
{
|
||||
if (string.Equals(e.PropertyName, nameof(CompareCandidateViewModel.IsSelected), StringComparison.Ordinal))
|
||||
|
||||
@@ -191,6 +191,13 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
[ObservableProperty]
|
||||
private bool _hasLatency;
|
||||
|
||||
/// <summary>
|
||||
/// beta.14: any of the game's sessions measured PC latency, so the Latency tab is shown. Nothing measures Reflex today
|
||||
/// (<c>sessions.reflex_active</c> is null on every row), and a tab that can only ever say "no data" was noise.
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private bool _anyLatency;
|
||||
|
||||
[ObservableProperty]
|
||||
private TrendMetric _trendMetric = TrendMetric.PresentedFps;
|
||||
|
||||
@@ -344,6 +351,15 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
new(TrendMetric.DisplayExclusiveShare, Strings.Trend_Metric_DisplayExclusive),
|
||||
new(TrendMetric.DisplayBorderlessShare, Strings.Trend_Metric_DisplayBorderless),
|
||||
new(TrendMetric.DisplayWindowedShare, Strings.Trend_Metric_DisplayWindowed),
|
||||
new(TrendMetric.TimeBelow60, Strings.Trend_Metric_TimeBelow60),
|
||||
new(TrendMetric.TimeBelowRefresh, Strings.Trend_Metric_TimeBelowRefresh),
|
||||
new(TrendMetric.FrameToFrame, Strings.Trend_Metric_FrameToFrame),
|
||||
new(TrendMetric.RenderScale, Strings.Trend_Metric_RenderScale),
|
||||
new(TrendMetric.VsyncShare, Strings.Trend_Metric_VsyncShare),
|
||||
new(TrendMetric.GpuCoreClock, Strings.Trend_Metric_GpuCoreClock),
|
||||
new(TrendMetric.MaxGpuMemTemp, Strings.Trend_Metric_MaxGpuMemTemp),
|
||||
new(TrendMetric.PowerLimitShare, Strings.Trend_Metric_PowerLimitShare),
|
||||
new(TrendMetric.Efficiency, Strings.Trend_Metric_Efficiency),
|
||||
];
|
||||
|
||||
/// <summary>The selected session's decoded series (null: none selected, Tier 2, or swept).</summary>
|
||||
@@ -424,6 +440,7 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
}
|
||||
|
||||
Present(detail);
|
||||
AnyLatency = detail.Sessions.Any(static s => s.ReflexActive == true);
|
||||
ChooseDefaultMetric(detail);
|
||||
await RebuildTrendAsync(ct).ConfigureAwait(true);
|
||||
}
|
||||
|
||||
@@ -168,6 +168,8 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
|
||||
public static string DistributionHeader => Strings.Summary_Distribution_Header;
|
||||
|
||||
public static string RenderScaleHeader => Strings.Summary_RenderScale_Header;
|
||||
|
||||
public static string SensorsHeader => Strings.GameDetail_Tab_Sensors;
|
||||
|
||||
public static string SensorStatsHeader => Strings.SensorStats_Header;
|
||||
@@ -395,9 +397,32 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
IReadOnlyDictionary<string, Application.Recording.SensorSeriesStats> stats = Application.Recording.SensorSeriesStats.Parse(row.SensorStatsJson);
|
||||
string? presented = IsHooked && FpsPresentation.FromRow(row).Kind == FpsReadoutKind.Presented ? Strings.Summary_Lows_Presented : null;
|
||||
Stats.Clear();
|
||||
AddFrameCards(row, presented);
|
||||
AddPacingCards(row, presented);
|
||||
AddMachineCards(row, stats);
|
||||
|
||||
// The table reads what finalize stored; a session from before beta.12 says so rather than computing it here.
|
||||
SensorStats.Clear();
|
||||
foreach (SensorStatRowModel line in SensorStatsTable.Rows(stats))
|
||||
{
|
||||
SensorStats.Add(line);
|
||||
}
|
||||
|
||||
HasSensorStats = SensorStats.Count > 0;
|
||||
SensorStatsMissing = !HasSensorStats && (HasSensorCharts || row.AvgGpuLoad is not null || row.MaxGpuTemp is not null) ? Strings.SensorStats_NotStored : null;
|
||||
}
|
||||
|
||||
/// <summary>The frame rate's cards; <paramref name="presented"/> labels the statistics a present-only session has over presents.</summary>
|
||||
private void AddFrameCards(SessionRow row, string? presented)
|
||||
{
|
||||
// CLAUDE.md rule 6 (beta.14): where frames were generated the 1% low is the game's own frames', and the presents' —
|
||||
// what the display received — stands beside it, never instead of it.
|
||||
string? displayedLow = IsHooked && Readout.Kind == FpsReadoutKind.Generated && row.DisplayedP1LowFps is double shown
|
||||
? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_DisplayedLow_Format, Formats.Fps(shown))
|
||||
: null;
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_Avg, Readout.Line));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_Median, IsHooked ? Formats.Fps(row.MedianFps) : Strings.Common_NotAvailable));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_P1Low, IsHooked ? Formats.Fps(row.P1LowFps) : Strings.Common_NotAvailable, presented));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_P1Low, IsHooked ? Formats.Fps(row.P1LowFps) : Strings.Common_NotAvailable, presented ?? displayedLow));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_P01Low, IsHooked ? Formats.Fps(row.P01LowFps) : Strings.Common_NotAvailable, presented));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_MinMax, IsHooked ? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_MinMax_Format, Formats.Fps(row.MinFps), Formats.Fps(row.MaxFps)) : Strings.Common_NotAvailable));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_StdDev, IsHooked && row.FrametimeStdDevMs is double sd ? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_StdDev_Format, sd) : Strings.Common_NotAvailable));
|
||||
@@ -410,8 +435,55 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
string window = DisplayText.Window(display);
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_Display, DisplayText.Headline(display),
|
||||
string.Equals(window, Strings.Common_NotAvailable, StringComparison.Ordinal) ? null : window));
|
||||
}
|
||||
|
||||
// The machine, both tiers: telemetry is what a not-hooked session still has. Load is the average, temperature the peak.
|
||||
/// <summary>
|
||||
/// beta.14 (D49), hooked sessions: how the frames were paced, what the presents asked for, ray tracing where it was
|
||||
/// measured, focus, and how complete the record is. A session recorded before beta.14 reads N/A on the new ones.
|
||||
/// </summary>
|
||||
private void AddPacingCards(SessionRow row, string? presented)
|
||||
{
|
||||
string na = Strings.Common_NotAvailable;
|
||||
var below = new List<string>(3);
|
||||
if (IsHooked && row.TimeBelow30Pct is double below30)
|
||||
{
|
||||
below.Add(string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_Below30_Format, Formats.Share(below30)));
|
||||
}
|
||||
|
||||
// The refresh share is over what the display received — generated frames included — so it is named for the display.
|
||||
if (IsHooked && row.TimeBelowRefreshPct is double belowRefresh && row.DisplayMonitorHz is int hz)
|
||||
{
|
||||
below.Add(string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_BelowRefresh_Format, hz, Formats.Share(belowRefresh)));
|
||||
}
|
||||
|
||||
if (presented is not null)
|
||||
{
|
||||
below.Add(presented);
|
||||
}
|
||||
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_TimeBelow60, IsHooked ? Formats.Share(row.TimeBelow60Pct) : na, below.Count == 0 ? null : string.Join(" · ", below)));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_FrameToFrame, IsHooked ? Formats.Milliseconds(row.FrametimeDeltaMeanMs) : na, presented));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_Vsync,
|
||||
IsHooked && row.VsyncPresentPct is double vsync ? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_OfFrames_Format, Formats.Share(vsync)) : na,
|
||||
IsHooked && row.TearingAllowedPct is double tearing ? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_Tearing_Format, Formats.Share(tearing)) : null));
|
||||
if (IsHooked && row.RtFramePct is double rt)
|
||||
{
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_RayTracing, string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_OfFrames_Format, Formats.Share(rt)),
|
||||
row.RaysPerPixel is double rays ? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_RaysPerPixel_Format, rays) : null));
|
||||
}
|
||||
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_Focus,
|
||||
IsHooked && row.DrainTicks is > 0 && row.ForegroundTicks is long focused
|
||||
? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_Focus_Format, Formats.Share(focused * 100.0 / row.DrainTicks.Value))
|
||||
: na));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_Capture,
|
||||
IsHooked ? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_Capture_Format, row.GapCount, row.DroppedRecords, row.FaultCount) : na));
|
||||
}
|
||||
|
||||
/// <summary>The machine, both tiers: telemetry is what a not-hooked session still has.</summary>
|
||||
private void AddMachineCards(SessionRow row, IReadOnlyDictionary<string, Application.Recording.SensorSeriesStats> stats)
|
||||
{
|
||||
// Load is the average, temperature the peak.
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_Gpu, string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_LoadTemp_Format, Formats.Percent(row.AvgGpuLoad), Formats.Temperature(row.MaxGpuTemp))));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_Cpu, string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_LoadTemp_Format, Formats.Percent(row.AvgCpuLoad), Formats.Temperature(row.MaxCpuTemp))));
|
||||
|
||||
@@ -419,15 +491,18 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
Stats.Add(GameMemoryText.VramCard(row));
|
||||
Stats.Add(GameMemoryText.RamCard(row, stats));
|
||||
|
||||
// The table reads what finalize stored; a session from before beta.12 says so rather than computing it here.
|
||||
SensorStats.Clear();
|
||||
foreach (SensorStatRowModel line in SensorStatsTable.Rows(stats))
|
||||
{
|
||||
SensorStats.Add(line);
|
||||
}
|
||||
|
||||
HasSensorStats = SensorStats.Count > 0;
|
||||
SensorStatsMissing = !HasSensorStats && (HasSensorCharts || row.AvgGpuLoad is not null || row.MaxGpuTemp is not null) ? Strings.SensorStats_NotStored : null;
|
||||
// beta.14 (D49): the card's clocks, fan and memory temperature, what held it back (NVIDIA only), and frames per watt.
|
||||
bool clocks = row.AvgGpuCoreClockMhz is not null || row.AvgGpuMemClockMhz is not null;
|
||||
bool fan = row.AvgGpuFanRpm is not null || row.MaxGpuMemTemp is not null;
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_GpuClocks,
|
||||
clocks ? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_Clocks_Format, Formats.Frequency(row.AvgGpuCoreClockMhz), Formats.Frequency(row.AvgGpuMemClockMhz)) : Strings.Common_NotAvailable,
|
||||
fan ? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_FanMemTemp_Format, Formats.Rpm(row.AvgGpuFanRpm), Formats.Temperature(row.MaxGpuMemTemp)) : null));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_GpuLimits,
|
||||
row.PowerLimitPct is not null || row.ThermalLimitPct is not null
|
||||
? string.Format(CultureInfo.CurrentCulture, Strings.Summary_Stat_Limits_Format, Formats.Share(row.PowerLimitPct), Formats.Share(row.ThermalLimitPct))
|
||||
: Strings.Common_NotAvailable));
|
||||
Stats.Add(new StatCardModel(Strings.Summary_Stat_Efficiency, Formats.FramesPerJoule(row.AppFramesPerJoule),
|
||||
row.AppFramesPerJoule is null ? null : Strings.Summary_Stat_Efficiency_Note));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -115,6 +115,9 @@
|
||||
<charts:FrametimeChart x:Name="Frametime" Margin="0,6,0,0" Height="300" />
|
||||
<ui:TextBlock Margin="0,16,0,0" FontTypography="Subtitle" Text="{x:Static vm:SessionSummaryViewModel.DistributionHeader}" />
|
||||
<charts:DistributionChart x:Name="Distribution" Margin="0,6,0,0" Height="260" />
|
||||
<!-- beta.14 (D49): the render scale over the session -->
|
||||
<ui:TextBlock Margin="0,16,0,0" FontTypography="Subtitle" Text="{x:Static vm:SessionSummaryViewModel.RenderScaleHeader}" />
|
||||
<charts:RenderScaleChart x:Name="RenderScale" Margin="0,6,0,0" Height="200" />
|
||||
</StackPanel>
|
||||
|
||||
<!-- sensors, in either tier (beta.8): a session that was not hooked has nothing else to chart -->
|
||||
|
||||
@@ -63,6 +63,7 @@ public partial class SessionSummaryWindow : FluentWindow
|
||||
{
|
||||
Frametime.Show(ViewModel.Series, ViewModel.ShowDisplayed, ViewModel.ShowSensors);
|
||||
Distribution.Show(ViewModel.Series);
|
||||
RenderScale.Show(ViewModel.Series, ViewModel.Row);
|
||||
Sensors.Show(ViewModel.SensorSeries);
|
||||
}
|
||||
|
||||
|
||||
@@ -343,4 +343,42 @@ public sealed record SessionRow
|
||||
public string? GameMemorySource { get; init; }
|
||||
|
||||
public string? SensorStatsJson { get; init; }
|
||||
|
||||
// --- Schema 0019 (beta.14, D49): pacing, the present arguments, the graphics card's clocks and limits, and efficiency
|
||||
// (03_METRICS §Pacing, §Sync, §Sensor aggregates, §Efficiency). Null on a row written before beta.14 and wherever nothing
|
||||
// measured the value — never a zero for an answer nobody gave.
|
||||
|
||||
/// <summary>Percent of the measured time below 30 FPS (<c>Domain.Metrics.FramePacing</c>).</summary>
|
||||
public double? TimeBelow30Pct { get; init; }
|
||||
|
||||
public double? TimeBelow60Pct { get; init; }
|
||||
|
||||
/// <summary>Percent of the presented time below the monitor's refresh rate; null without <see cref="DisplayMonitorHz"/>.</summary>
|
||||
public double? TimeBelowRefreshPct { get; init; }
|
||||
|
||||
/// <summary>Mean change from one frame time to the next, ms.</summary>
|
||||
public double? FrametimeDeltaMeanMs { get; init; }
|
||||
|
||||
/// <summary>Percent of the presents that asked to wait for the display (a sync interval of one or more); Direct3D only.</summary>
|
||||
public double? VsyncPresentPct { get; init; }
|
||||
|
||||
/// <summary>Percent of the presents that allowed tearing; Direct3D only.</summary>
|
||||
public double? TearingAllowedPct { get; init; }
|
||||
|
||||
public double? AvgGpuCoreClockMhz { get; init; }
|
||||
|
||||
public double? AvgGpuMemClockMhz { get; init; }
|
||||
|
||||
public double? AvgGpuFanRpm { get; init; }
|
||||
|
||||
public double? MaxGpuMemTemp { get; init; }
|
||||
|
||||
/// <summary>Percent of the sensor ticks the card was held back by its power limit; NVIDIA (L3) only.</summary>
|
||||
public double? PowerLimitPct { get; init; }
|
||||
|
||||
/// <summary>Percent of the sensor ticks the card was held back by heat; NVIDIA (L3) only.</summary>
|
||||
public double? ThermalLimitPct { get; init; }
|
||||
|
||||
/// <summary>Application frames per joule of the card's power — FPS per watt; never over displayed frames (rule 6).</summary>
|
||||
public double? AppFramesPerJoule { get; init; }
|
||||
}
|
||||
@@ -148,9 +148,15 @@ public static class FgLadder
|
||||
return "census_not_run";
|
||||
}
|
||||
|
||||
return (census & FlRuntimeCensusFamilies.Fg) == FlRuntimeCensus.None ? "no_fg_runtime" : "fg_runtime_loaded";
|
||||
return (census & FlRuntimeCensusFamilies.Fg) == FlRuntimeCensus.None ? NoFgRuntimeQualifier : "fg_runtime_loaded";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The qualifier that says no frame-generation runtime was loaded, so the presents cannot include in-process generated
|
||||
/// frames: the one case the presented rate is the application rate without a count (beta.14: efficiency reads it).
|
||||
/// </summary>
|
||||
public const string NoFgRuntimeQualifier = "no_fg_runtime";
|
||||
|
||||
/// <summary>DXGI's counter as a second witness beside a counted <c>none</c>; null when it was not read.</summary>
|
||||
public static string? DxgiBesideNone(FlWriterState writer)
|
||||
{
|
||||
|
||||
@@ -37,7 +37,29 @@ public static class SensorSeriesCatalog
|
||||
/// <summary>The game process's commit charge, MiB.</summary>
|
||||
public const string GameCommit = "game_commit";
|
||||
|
||||
/// <summary>The series in storage order. The first eight predate beta.12; their names are on disk and never change.</summary>
|
||||
/// <summary>The graphics card's core clock, MHz (beta.14, D49).</summary>
|
||||
public const string GpuCoreClock = "gpu_core_clock";
|
||||
|
||||
/// <summary>Its memory clock, MHz.</summary>
|
||||
public const string GpuMemClock = "gpu_mem_clock";
|
||||
|
||||
/// <summary>Its fan speed, RPM.</summary>
|
||||
public const string GpuFan = "gpu_fan";
|
||||
|
||||
/// <summary>Its memory temperature, °C.</summary>
|
||||
public const string GpuMemTemp = "gpu_mem_temp";
|
||||
|
||||
/// <summary>Held back by its power limit on the tick: 100 or 0 (<see cref="GpuLimitReasons"/>), so the mean is a share in percent.</summary>
|
||||
public const string GpuPowerLimit = "gpu_power_limit";
|
||||
|
||||
/// <summary>Held back by heat on the tick: 100 or 0.</summary>
|
||||
public const string GpuThermalLimit = "gpu_thermal_limit";
|
||||
|
||||
/// <summary>
|
||||
/// The series in storage order: the first eight predate beta.12, the next five came with it and the last six with
|
||||
/// beta.14. Their names are on disk and never change. The six of beta.14 were in the samples before it — the L2 and L3
|
||||
/// layers read them — and stored nowhere.
|
||||
/// </summary>
|
||||
public static IReadOnlyList<(string Name, Func<TelemetrySample, double?> Select)> All { get; } =
|
||||
[
|
||||
(GpuTemp, static s => s.Sample.TempCoreC),
|
||||
@@ -53,5 +75,11 @@ public static class SensorSeriesCatalog
|
||||
(GameRamPrivate, static s => s.Game.RamPrivateMb),
|
||||
(GameRamWorkingSet, static s => s.Game.RamWorkingSetMb),
|
||||
(GameCommit, static s => s.Game.CommitMb),
|
||||
(GpuCoreClock, static s => s.Sample.CoreClockMhz),
|
||||
(GpuMemClock, static s => s.Sample.MemClockMhz),
|
||||
(GpuFan, static s => s.Sample.FanRpm),
|
||||
(GpuMemTemp, static s => s.Sample.TempMemoryC),
|
||||
(GpuPowerLimit, static s => GpuLimitReasons.PowerLimited(s.Sample.ThrottleReasons)),
|
||||
(GpuThermalLimit, static s => GpuLimitReasons.ThermalLimited(s.Sample.ThrottleReasons)),
|
||||
];
|
||||
}
|
||||
@@ -29,11 +29,14 @@ public static class SessionAggregator
|
||||
|
||||
var ctx = new Context(input);
|
||||
SessionRow row = ApplyFrames(skeleton, ctx);
|
||||
row = ApplyPacing(row, ctx);
|
||||
row = ApplySync(row, ctx);
|
||||
row = ApplyFg(row, ctx);
|
||||
row = ApplyUpscaler(row, ctx);
|
||||
row = ApplyRt(row, ctx);
|
||||
row = ApplyWriter(row, ctx);
|
||||
row = WithSensorAggregates(row, input.Sensors);
|
||||
row = ApplyEfficiency(row, ctx);
|
||||
row = ApplyWitnesses(row, ctx);
|
||||
|
||||
return new AggregationResult
|
||||
@@ -80,10 +83,55 @@ public static class SessionAggregator
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <c>03_METRICS</c> §Pacing (beta.14, D49): time below 30 and 60 FPS and frame to frame over the series the statistics are
|
||||
/// over, time below the refresh rate over the presents the display received (<see cref="FramePacing"/>). The refresh rate is
|
||||
/// the display tally's, on the skeleton before the aggregator runs; a session recovered from a crash file has none.
|
||||
/// </summary>
|
||||
private static SessionRow ApplyPacing(SessionRow row, Context c)
|
||||
{
|
||||
FramePacing pacing = FramePacing.From(c.Frames, c.Series, row.DisplayMonitorHz);
|
||||
return row with
|
||||
{
|
||||
TimeBelow30Pct = pacing.TimeBelow30Pct,
|
||||
TimeBelow60Pct = pacing.TimeBelow60Pct,
|
||||
TimeBelowRefreshPct = pacing.TimeBelowRefreshPct,
|
||||
FrametimeDeltaMeanMs = pacing.FrameToFrameMeanMs,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary><c>03_METRICS</c> §Sync (beta.14): what the dominant stream's presents asked for, and <c>sync_interval_mode</c>'s first writer.</summary>
|
||||
private static SessionRow ApplySync(SessionRow row, Context c)
|
||||
{
|
||||
PresentArgsShares shares = PresentArgsShares.From(c.Dominant);
|
||||
return row with
|
||||
{
|
||||
VsyncPresentPct = shares.VsyncPct,
|
||||
TearingAllowedPct = shares.TearingAllowedPct,
|
||||
SyncIntervalMode = Vocabulary.SyncIntervalMode(shares),
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <c>03_METRICS</c> §Efficiency (beta.14, D49): application frames per joule — the application frame rate over the card's
|
||||
/// average power. Never the displayed rate (rule 6). The application rate is known where frame generation was counted
|
||||
/// over the session (the window usable: its native rate, which a counted <c>none</c> makes the presented one); without a
|
||||
/// count, the presented rate is the application rate only where no frame-generation runtime was loaded. A session whose
|
||||
/// generation changed state publishes a steady state's rate, scoped to a share of the session, and has no session-wide
|
||||
/// rate to divide: null, as is every case the census could not clear.
|
||||
/// </summary>
|
||||
private static SessionRow ApplyEfficiency(SessionRow row, Context c)
|
||||
{
|
||||
double? applicationFps = c.FgUsable ? row.NativeFps
|
||||
: string.Equals(row.PresentedQualifier, FgLadder.NoFgRuntimeQualifier, StringComparison.Ordinal) ? row.PresentedFps
|
||||
: null;
|
||||
return row with { AppFramesPerJoule = EnergyEfficiency.FramesPerJoule(applicationFps, row.AvgGpuPowerW) };
|
||||
}
|
||||
|
||||
private static SessionRow ApplyFg(SessionRow row, Context c)
|
||||
{
|
||||
FgWindow? fg = c.Fg;
|
||||
bool usable = fg is { Refusal: null } && c.Verdict is FgVerdict.Named or FgVerdict.ActiveUnidentified or FgVerdict.None or FgVerdict.NoneInputsTagged;
|
||||
bool usable = c.FgUsable;
|
||||
|
||||
// 03_METRICS §Frame Generation (2026-09-17): a session refused as non-uniform still publishes the state it
|
||||
// spent most of its generating time in, scoped and with its share -- never the session average.
|
||||
@@ -199,7 +247,7 @@ public static class SessionAggregator
|
||||
SeriesAggregates cpuLoad = SeriesAggregates.Of(sensors.Select(static t => t.System.CpuLoadPct));
|
||||
SeriesAggregates cpuTemp = SeriesAggregates.Of(sensors.Select(static t => t.System.CpuTempC));
|
||||
SeriesAggregates ram = SeriesAggregates.Of(sensors.Select(static t => t.System.RamUsedMb));
|
||||
return (row with
|
||||
return (row.WithGpuClocks(s) with
|
||||
{
|
||||
AvgCpuLoad = cpuLoad.Average,
|
||||
AvgCpuTemp = cpuTemp.Average,
|
||||
@@ -215,6 +263,21 @@ public static class SessionAggregator
|
||||
}).WithGameMemory(sensors);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The card's clocks, fan, memory temperature and what held it back (beta.14, D49; <c>03_METRICS</c> §Sensor aggregates) —
|
||||
/// both tiers. The limits are shares of the ticks that carried reasons at all, which only NVIDIA's layer reports; null
|
||||
/// elsewhere, never "not limited".
|
||||
/// </summary>
|
||||
private static SessionRow WithGpuClocks(this SessionRow row, IReadOnlyList<GpuSample> s) => row with
|
||||
{
|
||||
AvgGpuCoreClockMhz = SeriesAggregates.Of(s.Select(static x => x.CoreClockMhz)).Average,
|
||||
AvgGpuMemClockMhz = SeriesAggregates.Of(s.Select(static x => x.MemClockMhz)).Average,
|
||||
AvgGpuFanRpm = SeriesAggregates.Of(s.Select(static x => x.FanRpm)).Average,
|
||||
MaxGpuMemTemp = SeriesAggregates.Of(s.Select(static x => x.TempMemoryC)).Max,
|
||||
PowerLimitPct = SeriesAggregates.Of(s.Select(static x => GpuLimitReasons.PowerLimited(x.ThrottleReasons))).Average,
|
||||
ThermalLimitPct = SeriesAggregates.Of(s.Select(static x => GpuLimitReasons.ThermalLimited(x.ThrottleReasons))).Average,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The game process's own memory (beta.12, D43; <c>03_METRICS</c> §Game process memory) and every series' statistics —
|
||||
/// both tiers, from the same 1 Hz samples. Null where no tick carried the field: a session before beta.12, the DLL
|
||||
@@ -373,6 +436,7 @@ public static class SessionAggregator
|
||||
Withheld = Fg?.IsNone == true ? FgLadder.WithholdNone(census, input.Modules, input.Writer) : null;
|
||||
FgIdentity = FgLadder.Identity(dominantRecords);
|
||||
Verdict = FgLadder.Resolve(FgIdentity, Fg, Withheld);
|
||||
FgUsable = Fg is { Refusal: null } && Verdict is FgVerdict.Named or FgVerdict.ActiveUnidentified or FgVerdict.None or FgVerdict.NoneInputsTagged;
|
||||
|
||||
// 03_METRICS §Core definitions: the median, the lows, min / max, σ and the stutter rule are over ft_app. Where
|
||||
// generated frames were counted (beta.8) that is application frame to application frame, never present to
|
||||
@@ -411,6 +475,9 @@ public static class SessionAggregator
|
||||
|
||||
public FgVerdict Verdict { get; }
|
||||
|
||||
/// <summary>The window's count stands for the session: no refusal, and a verdict that publishes a factor or a counted none.</summary>
|
||||
public bool FgUsable { get; }
|
||||
|
||||
/// <summary>Generated frames were counted, or a technology named: the frame statistics are over application frames.</summary>
|
||||
public bool Generating { get; }
|
||||
|
||||
|
||||
@@ -92,6 +92,22 @@ public static class Vocabulary
|
||||
_ => Domain.Metrics.Tri.NotApplicable,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// <c>sessions.sync_interval_mode</c> — a column since 0001 with no writer until beta.14: <c>on</c> when every counted present
|
||||
/// asked to wait for the display, <c>off</c> when none did, <c>mixed</c> otherwise (a menu with VSync, a game without);
|
||||
/// null when no present carried its arguments (OpenGL, Vulkan, a Tier-2 session).
|
||||
/// </summary>
|
||||
public static string? SyncIntervalMode(PresentArgsShares shares)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(shares);
|
||||
if (shares.Count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return shares.VsyncCount == shares.Count ? "on" : shares.VsyncCount == 0 ? "off" : "mixed";
|
||||
}
|
||||
|
||||
public static string? Api(FrameApi api) => api switch
|
||||
{
|
||||
FrameApi.D3D11 => "d3d11",
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Application.Telemetry;
|
||||
|
||||
/// <summary>
|
||||
/// What held the graphics card's clocks back on one tick (beta.14, D49), from <see cref="GpuSample.ThrottleReasons"/> — NVAPI's
|
||||
/// <c>NV_GPU_PERF_DECREASE_REASON_*</c> bits as the L3 bridge passes them through (<c>NvAPI_GPU_GetPerfDecreaseInfo</c>,
|
||||
/// <c>nvapi.h</c>). No other layer fills the field, so a card that is not NVIDIA's has no answer: null, never "not limited".
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Each reading is 100 when the bit is set and 0 when it is clear, so the mean of a series is the share of ticks limited, in
|
||||
/// percent — what <c>sessions.power_limit_pct</c> / <c>thermal_limit_pct</c> store and the stored series' statistics read.
|
||||
/// </remarks>
|
||||
public static class GpuLimitReasons
|
||||
{
|
||||
/// <summary><c>NV_GPU_PERF_DECREASE_REASON_THERMAL_PROTECTION</c>: thermal slowdown.</summary>
|
||||
public const uint Thermal = 0x1;
|
||||
|
||||
/// <summary><c>NV_GPU_PERF_DECREASE_REASON_POWER_CONTROL</c>: the power limit (power capping / pstate cap).</summary>
|
||||
public const uint Power = 0x2;
|
||||
|
||||
/// <summary>100 when <paramref name="reasons"/> includes the power limit, 0 when it does not, null when the tick carried none.</summary>
|
||||
public static double? PowerLimited(uint? reasons) => Share(reasons, Power);
|
||||
|
||||
/// <summary>100 when <paramref name="reasons"/> includes thermal slowdown, 0 when it does not, null when the tick carried none.</summary>
|
||||
public static double? ThermalLimited(uint? reasons) => Share(reasons, Thermal);
|
||||
|
||||
private static double? Share(uint? reasons, uint bit) => reasons is { } r ? ((r & bit) != 0 ? 100.0 : 0.0) : null;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Metrics;
|
||||
|
||||
/// <summary>
|
||||
/// <c>03_METRICS</c> §Efficiency (beta.14, D49): application frames per joule of the graphics card's power — frames per
|
||||
/// second over watts, since a watt is a joule per second.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Which frame rate is the caller's to decide, and it is never the displayed one (CLAUDE.md rule 6): a generated frame costs
|
||||
/// the card a fraction of a rendered one, and counting it would sell frame generation as efficiency. The power is the card's
|
||||
/// board power as its sensor reports it — not the processor's, not the whole PC's.
|
||||
/// </remarks>
|
||||
public static class EnergyEfficiency
|
||||
{
|
||||
/// <summary><paramref name="applicationFps"/> / <paramref name="averageWatts"/>; null when either is missing or not positive.</summary>
|
||||
public static double? FramesPerJoule(double? applicationFps, double? averageWatts) =>
|
||||
applicationFps is > 0 && averageWatts is > 0 ? applicationFps.Value / averageWatts.Value : null;
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Metrics;
|
||||
|
||||
/// <summary>
|
||||
/// <c>03_METRICS</c> §Pacing (beta.14, D49): how much of the measured time ran below 30 FPS, below 60 FPS and below the
|
||||
/// monitor's refresh rate, and the mean change from one frame time to the next.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <b>Time, not frames.</b> "Below 60" is the share of the measured time spent in frames that count as below 60:
|
||||
/// <c>Σ ft (counted) / Σ ft</c>. A count of slow frames would weigh a long hitch as little as a short one; time weighs them
|
||||
/// as a player sits through them.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>Which frames count, and why not simply "longer than 1000 / X ms".</b> The present-to-present interval of a game held
|
||||
/// at X jitters around 1000 / X by a few tenths of a millisecond, half of it on the long side: on the owner's ledger a
|
||||
/// GIRLS' FRONTLINE 2 session capped at 60 (median 16.63 ms, 296,380 frames) read <b>50.0 %</b> of its time "below 60" under
|
||||
/// that rule. A frame counts when it is itself more than <see cref="FrameMargin"/> longer than 1000 / X — a long frame,
|
||||
/// never jitter — or when the median of the <see cref="Window"/> frames around it (<see cref="RollingMedian"/>, the stutter
|
||||
/// rule's edges) is more than <see cref="RateMargin"/> longer — a rate that stays below X. The same session reads 9.6 %
|
||||
/// (its time below 30 alone is 4.7 %); with a 0.4 ms jitter a steady 58 FPS reads 93 %, a steady 60.2 reads 0.7 %, and a
|
||||
/// 100 ms hitch counts its own 100 ms in full and spreads to no neighbour (the median of nine ignores one frame). What the
|
||||
/// margins cost: a rate less than 2 % under X (58.8 to 60 FPS for 60) reads partly as at X — a steady 59 reads 40 %.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>Frame to frame</b> is the mean of <c>|ft[k] − ft[k−1]|</c> over neighbouring kept intervals — a pair with an
|
||||
/// interval left out between them (<see cref="FrameTimeSeries.FollowsBreak"/>) is not one. Low when pacing is even whatever
|
||||
/// the rate: a steady 30 FPS reads lower than a 60 FPS alternating 10 and 23 ms.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>Which series.</b> 30, 60 and frame to frame are over the series the frame statistics are over (application frames
|
||||
/// where generated frames were counted, presents — labelled — otherwise). The refresh rate is the display's, so its share
|
||||
/// is over the presents the display received, generated ones included, and is labelled as such.
|
||||
/// </para>
|
||||
/// <para><b>Sufficiency:</b> the 1 % low's 1,000 frames (<see cref="Percentile.P1SufficientFrames"/>); below it, null.</para>
|
||||
/// </remarks>
|
||||
public sealed record FramePacing
|
||||
{
|
||||
/// <summary>The frames whose median says the rate: nine, centered.</summary>
|
||||
public const int Window = 9;
|
||||
|
||||
/// <summary>A median this much longer than 1000 / X is a rate below X.</summary>
|
||||
public const double RateMargin = 0.02;
|
||||
|
||||
/// <summary>A frame this much longer than 1000 / X is below X on its own.</summary>
|
||||
public const double FrameMargin = 0.10;
|
||||
|
||||
/// <summary>Every value null: too few frames, or nothing measured.</summary>
|
||||
public static FramePacing Empty { get; } = new()
|
||||
{
|
||||
TimeBelow30Pct = null,
|
||||
TimeBelow60Pct = null,
|
||||
TimeBelowRefreshPct = null,
|
||||
FrameToFrameMeanMs = null,
|
||||
};
|
||||
|
||||
/// <summary>Percent of the measured time below 30 FPS.</summary>
|
||||
public required double? TimeBelow30Pct { get; init; }
|
||||
|
||||
/// <summary>Percent of the measured time below 60 FPS.</summary>
|
||||
public required double? TimeBelow60Pct { get; init; }
|
||||
|
||||
/// <summary>Percent of the presented time below the monitor's refresh rate; null without a rate.</summary>
|
||||
public required double? TimeBelowRefreshPct { get; init; }
|
||||
|
||||
/// <summary>Mean <c>|ft[k] − ft[k−1]|</c> over neighbouring intervals, ms.</summary>
|
||||
public required double? FrameToFrameMeanMs { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The four values: 30, 60 and frame to frame over <paramref name="frames"/>, the refresh share over
|
||||
/// <paramref name="presents"/> at <paramref name="refreshHz"/>.
|
||||
/// </summary>
|
||||
public static FramePacing From(FrameTimeSeries? frames, FrameTimeSeries? presents, double? refreshHz)
|
||||
{
|
||||
Timeline? f = Timeline.Of(frames);
|
||||
Timeline? p = refreshHz is > 0 ? Timeline.Of(presents) : null;
|
||||
if (f is null && p is null)
|
||||
{
|
||||
return Empty;
|
||||
}
|
||||
|
||||
return new FramePacing
|
||||
{
|
||||
TimeBelow30Pct = f?.TimeBelowPct(30),
|
||||
TimeBelow60Pct = f?.TimeBelowPct(60),
|
||||
TimeBelowRefreshPct = p?.TimeBelowPct(refreshHz!.Value),
|
||||
FrameToFrameMeanMs = f?.FrameToFrameMeanMs(),
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>One series with its rolling medians, computed once for every threshold.</summary>
|
||||
private sealed class Timeline
|
||||
{
|
||||
private readonly IReadOnlyList<double> _ft;
|
||||
private readonly IReadOnlyList<bool> _followsBreak;
|
||||
private readonly IReadOnlyList<double> _median;
|
||||
private readonly double _total;
|
||||
|
||||
private Timeline(FrameTimeSeries series, IReadOnlyList<double> median, double total)
|
||||
{
|
||||
_ft = series.FrameTimesMs;
|
||||
_followsBreak = series.FollowsBreak;
|
||||
_median = median;
|
||||
_total = total;
|
||||
}
|
||||
|
||||
public static Timeline? Of(FrameTimeSeries? series)
|
||||
{
|
||||
if (series is null || series.Count < Percentile.P1SufficientFrames)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
double total = series.FrameTimesMs.Sum();
|
||||
IReadOnlyList<double>? median = RollingMedian.Of(series.FrameTimesMs, Window);
|
||||
return total > 0 && median is not null ? new Timeline(series, median, total) : null;
|
||||
}
|
||||
|
||||
public double TimeBelowPct(double fps)
|
||||
{
|
||||
double limit = 1000.0 / fps;
|
||||
double slow = 0;
|
||||
for (int k = 0; k < _ft.Count; k++)
|
||||
{
|
||||
if (_ft[k] > limit * (1 + FrameMargin) || _median[k] > limit * (1 + RateMargin))
|
||||
{
|
||||
slow += _ft[k];
|
||||
}
|
||||
}
|
||||
|
||||
return slow * 100.0 / _total;
|
||||
}
|
||||
|
||||
public double? FrameToFrameMeanMs()
|
||||
{
|
||||
double sum = 0;
|
||||
int pairs = 0;
|
||||
for (int k = 1; k < _ft.Count; k++)
|
||||
{
|
||||
if (!_followsBreak[k])
|
||||
{
|
||||
sum += Math.Abs(_ft[k] - _ft[k - 1]);
|
||||
pairs++;
|
||||
}
|
||||
}
|
||||
|
||||
return pairs > 0 ? sum / pairs : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,13 @@ public sealed record FrameTimeSeries
|
||||
/// <summary>For each kept interval, the index of the sample that ENDS it — the frame the interval belongs to.</summary>
|
||||
public required IReadOnlyList<int> EndingSample { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// For each kept interval, whether an interval was left out right before it — a gap, a pause, a clock that did not
|
||||
/// advance, a broken application-frame chain — so it and the kept interval before it are not neighbours (beta.14). A
|
||||
/// frame-to-frame difference across the two would compare frames a pause apart (<see cref="FramePacing"/>).
|
||||
/// </summary>
|
||||
public required IReadOnlyList<bool> FollowsBreak { get; init; }
|
||||
|
||||
/// <summary>Intervals excluded because a gap sat inside them.</summary>
|
||||
public required int ExcludedForGaps { get; init; }
|
||||
|
||||
@@ -70,43 +77,22 @@ public sealed record FrameTimeSeries
|
||||
ArgumentNullException.ThrowIfNull(stream);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(qpcFrequency);
|
||||
|
||||
var times = new List<double>(Math.Max(0, stream.Count - 1));
|
||||
var ending = new List<int>(times.Capacity);
|
||||
int gaps = 0;
|
||||
int nonPositive = 0;
|
||||
var kept = new Kept(qpcFrequency);
|
||||
for (int i = 1; i < stream.Count; i++)
|
||||
{
|
||||
if (gapBefore?.Contains(i) == true)
|
||||
{
|
||||
gaps++;
|
||||
kept.LeaveOutGap();
|
||||
continue;
|
||||
}
|
||||
|
||||
long delta = (long)stream[i].Qpc - (long)stream[i - 1].Qpc;
|
||||
if (delta <= 0)
|
||||
{
|
||||
nonPositive++;
|
||||
continue;
|
||||
}
|
||||
|
||||
times.Add(delta * 1000.0 / qpcFrequency);
|
||||
ending.Add(i);
|
||||
kept.Interval((long)stream[i].Qpc - (long)stream[i - 1].Qpc, i);
|
||||
}
|
||||
|
||||
double duration = stream.Count > 1
|
||||
? Math.Max(0, ((long)stream[^1].Qpc - (long)stream[0].Qpc) / (double)qpcFrequency)
|
||||
: 0;
|
||||
|
||||
return new FrameTimeSeries
|
||||
{
|
||||
FrameTimesMs = times,
|
||||
EndingSample = ending,
|
||||
ExcludedForGaps = gaps,
|
||||
ExcludedNonPositive = nonPositive,
|
||||
DurationSeconds = duration,
|
||||
MeasuredSeconds = times.Sum() / 1000.0,
|
||||
Presents = stream.Count,
|
||||
};
|
||||
return kept.Build(duration, stream.Count);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -141,10 +127,7 @@ public sealed record FrameTimeSeries
|
||||
ArgumentNullException.ThrowIfNull(stream);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(qpcFrequency);
|
||||
|
||||
var times = new List<double>();
|
||||
var ending = new List<int>();
|
||||
int gaps = 0;
|
||||
int nonPositive = 0;
|
||||
var kept = new Kept(qpcFrequency);
|
||||
int applicationFrames = 0;
|
||||
int first = -1;
|
||||
int previous = -1;
|
||||
@@ -165,35 +148,63 @@ public sealed record FrameTimeSeries
|
||||
}
|
||||
else if (broken)
|
||||
{
|
||||
gaps++;
|
||||
kept.LeaveOutGap();
|
||||
}
|
||||
else
|
||||
{
|
||||
long delta = (long)s.Qpc - (long)stream[previous].Qpc;
|
||||
if (delta > 0)
|
||||
{
|
||||
times.Add(delta * 1000.0 / qpcFrequency);
|
||||
ending.Add(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
nonPositive++;
|
||||
}
|
||||
kept.Interval((long)s.Qpc - (long)stream[previous].Qpc, i);
|
||||
}
|
||||
|
||||
previous = i;
|
||||
broken = false;
|
||||
}
|
||||
|
||||
return new FrameTimeSeries
|
||||
double duration = first < 0 ? 0 : Math.Max(0, ((long)stream[previous].Qpc - (long)stream[first].Qpc) / (double)qpcFrequency);
|
||||
return kept.Build(duration, applicationFrames);
|
||||
}
|
||||
|
||||
/// <summary>What both builders accumulate: the kept intervals, the ones left out, and whether one was left out since the last kept.</summary>
|
||||
private sealed class Kept(long qpcFrequency)
|
||||
{
|
||||
private readonly List<double> _times = [];
|
||||
private readonly List<int> _ending = [];
|
||||
private readonly List<bool> _followsBreak = [];
|
||||
private int _gaps;
|
||||
private int _nonPositive;
|
||||
private bool _leftOut;
|
||||
|
||||
public void LeaveOutGap()
|
||||
{
|
||||
FrameTimesMs = times,
|
||||
EndingSample = ending,
|
||||
ExcludedForGaps = gaps,
|
||||
ExcludedNonPositive = nonPositive,
|
||||
DurationSeconds = first < 0 ? 0 : Math.Max(0, ((long)stream[previous].Qpc - (long)stream[first].Qpc) / (double)qpcFrequency),
|
||||
MeasuredSeconds = times.Sum() / 1000.0,
|
||||
Presents = applicationFrames,
|
||||
_gaps++;
|
||||
_leftOut = true;
|
||||
}
|
||||
|
||||
/// <summary>Keeps the interval of <paramref name="delta"/> ticks ending at sample <paramref name="ending"/>, or leaves out a clock that did not advance.</summary>
|
||||
public void Interval(long delta, int ending)
|
||||
{
|
||||
if (delta <= 0)
|
||||
{
|
||||
_nonPositive++;
|
||||
_leftOut = true;
|
||||
return;
|
||||
}
|
||||
|
||||
_times.Add(delta * 1000.0 / qpcFrequency);
|
||||
_ending.Add(ending);
|
||||
_followsBreak.Add(_leftOut);
|
||||
_leftOut = false;
|
||||
}
|
||||
|
||||
public FrameTimeSeries Build(double durationSeconds, int presents) => new()
|
||||
{
|
||||
FrameTimesMs = _times,
|
||||
EndingSample = _ending,
|
||||
FollowsBreak = _followsBreak,
|
||||
ExcludedForGaps = _gaps,
|
||||
ExcludedNonPositive = _nonPositive,
|
||||
DurationSeconds = durationSeconds,
|
||||
MeasuredSeconds = _times.Sum() / 1000.0,
|
||||
Presents = presents,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.Domain.Metrics;
|
||||
|
||||
/// <summary>
|
||||
/// <c>03_METRICS</c> §Sync (beta.14, D49): what the game asked of each present — waiting for the display (a sync interval of
|
||||
/// one or more: VSync) or allowing tearing (<c>DXGI_PRESENT_ALLOW_TEARING</c>) — as shares of the presents that carried their
|
||||
/// arguments (<see cref="MeasuredFields.PresentArgs"/>). Both were in every Direct3D record since P1 and read by nothing.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>Asked, not obtained.</b> A sync interval is the game's request; the driver can override it (a control-panel VSync
|
||||
/// setting, a variable-refresh display), and nothing in the process says which won. OpenGL's <c>wglSwapBuffers</c> and
|
||||
/// Vulkan's <c>vkQueuePresentKHR</c> carry neither argument, so a session on those APIs has no presents to count: null,
|
||||
/// never a 0 % that nobody measured.
|
||||
/// </remarks>
|
||||
public sealed record PresentArgsShares
|
||||
{
|
||||
/// <summary><c>DXGI_PRESENT_ALLOW_TEARING</c>.</summary>
|
||||
public const uint AllowTearing = 0x200;
|
||||
|
||||
/// <summary>Presents that carried their arguments.</summary>
|
||||
public required int Count { get; init; }
|
||||
|
||||
/// <summary>Of those, the ones with a sync interval of one or more.</summary>
|
||||
public required int VsyncCount { get; init; }
|
||||
|
||||
/// <summary>Of those, the ones that allowed tearing.</summary>
|
||||
public required int TearingCount { get; init; }
|
||||
|
||||
/// <summary>Percent of the counted presents that waited for the display; null when none was counted.</summary>
|
||||
public double? VsyncPct => Count > 0 ? VsyncCount * 100.0 / Count : null;
|
||||
|
||||
/// <summary>Percent of the counted presents that allowed tearing; null when none was counted.</summary>
|
||||
public double? TearingAllowedPct => Count > 0 ? TearingCount * 100.0 / Count : null;
|
||||
|
||||
public static PresentArgsShares From(IReadOnlyList<FrameSample> stream)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(stream);
|
||||
int count = 0;
|
||||
int vsync = 0;
|
||||
int tearing = 0;
|
||||
foreach (FrameSample s in stream)
|
||||
{
|
||||
if (!s.Claims(MeasuredFields.PresentArgs))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
count++;
|
||||
if (s.SyncInterval >= 1)
|
||||
{
|
||||
vsync++;
|
||||
}
|
||||
|
||||
if ((s.PresentFlags & AllowTearing) != 0)
|
||||
{
|
||||
tearing++;
|
||||
}
|
||||
}
|
||||
|
||||
return new PresentArgsShares { Count = count, VsyncCount = vsync, TearingCount = tearing };
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
-- 0019 (2026-10-06, beta.14, owner decision D49): pacing, the present arguments, the graphics card's clocks and limits, and
|
||||
-- efficiency (03_METRICS §Pacing, §Sync, §Sensor aggregates, §Efficiency).
|
||||
--
|
||||
-- Pacing (hooked sessions): the share of the measured time below 30 FPS, below 60 FPS and below the monitor's refresh rate,
|
||||
-- and the mean change from one frame time to the next - over application frames where generated frames were counted, over
|
||||
-- presents otherwise; the refresh share over presents always (it is the display's). A frame counts as below X when it is
|
||||
-- 10 % longer than 1000 / X itself, or when the median of the nine around it is 2 % longer: without the margins a game
|
||||
-- capped at 60 read half its time "below 60" from present-timing jitter alone (Domain.Metrics.FramePacing).
|
||||
--
|
||||
-- The present arguments (Direct3D only - OpenGL and Vulkan presents carry none): the share of presents that asked to wait
|
||||
-- for the display (sync interval >= 1) and of those that allowed tearing. sessions.sync_interval_mode (0001) gets its
|
||||
-- first writer with them; it needs no column here.
|
||||
--
|
||||
-- The card (both tiers, from the 1 Hz samples): average core and memory clock, average fan speed, the highest memory
|
||||
-- temperature, and the share of ticks it was held back by its power limit or by heat - NVIDIA's layer only, null on every
|
||||
-- other card. Efficiency (hooked): application frames per joule, FPS per watt of the card's board power - never displayed
|
||||
-- frames (CLAUDE.md rule 6), and null wherever the application rate is not known.
|
||||
--
|
||||
-- Written by the Agent only (06_DATA_MODEL §Writer ownership); ADD COLUMN only, REAL throughout. A session written before
|
||||
-- this script has none of them and reads N/A - never a zero.
|
||||
|
||||
ALTER TABLE sessions ADD COLUMN time_below_30_pct REAL;
|
||||
ALTER TABLE sessions ADD COLUMN time_below_60_pct REAL;
|
||||
ALTER TABLE sessions ADD COLUMN time_below_refresh_pct REAL;
|
||||
ALTER TABLE sessions ADD COLUMN frametime_delta_mean_ms REAL;
|
||||
ALTER TABLE sessions ADD COLUMN vsync_present_pct REAL;
|
||||
ALTER TABLE sessions ADD COLUMN tearing_allowed_pct REAL;
|
||||
ALTER TABLE sessions ADD COLUMN avg_gpu_core_clock_mhz REAL;
|
||||
ALTER TABLE sessions ADD COLUMN avg_gpu_mem_clock_mhz REAL;
|
||||
ALTER TABLE sessions ADD COLUMN avg_gpu_fan_rpm REAL;
|
||||
ALTER TABLE sessions ADD COLUMN max_gpu_mem_temp REAL;
|
||||
ALTER TABLE sessions ADD COLUMN power_limit_pct REAL;
|
||||
ALTER TABLE sessions ADD COLUMN thermal_limit_pct REAL;
|
||||
ALTER TABLE sessions ADD COLUMN app_frames_per_joule REAL;
|
||||
@@ -12,17 +12,17 @@ namespace FrameLedger.Infrastructure.Persistence;
|
||||
/// The <c>sessions</c> row's column map: the INSERT, the parameter bag and the reader, side by side so they cannot drift
|
||||
/// from each other unnoticed. It was first generated from one table by a script that was never committed — the
|
||||
/// <c>gen_session_repo.py</c> this comment named until 2026-10-04 is not in the repository — and has been edited by hand
|
||||
/// since (schema 0018 added <c>Parameters5</c> / <c>Read5</c>). What keeps the three in step is
|
||||
/// since (schema 0018 added <c>Parameters5</c> / <c>Read5</c>, 0019 <c>Parameters6</c> / <c>Read6</c>). What keeps the three in step is
|
||||
/// <c>SqliteSessionRepositoryTests.ASessionRoundTripsColumnForColumn</c>, which writes a row with every column set and
|
||||
/// reads it back. The chunking is the analyzer's 60-line method limit, nothing more.
|
||||
/// </summary>
|
||||
internal static class SessionRowColumns
|
||||
{
|
||||
public const string Insert =
|
||||
"INSERT INTO sessions (session_guid, game_id, snapshot_id, started_at, ended_at, duration_s, qpc_epoch, qpc_frequency, capture_tier, capture_mode, capture_notes, ac_exception_family, late_attach, telemetry_source, overlay_build_id, exit_status, drain_ticks, foreground_ticks, records_before_attach, dxgi_presents_before_hook, gap_count, guard_ticks_published, launch_wait_ms, api, present_mode, swap_effect, hdr_flag, hdr_source, sync_interval_mode, upscaler, upscaler_quality, upscaler_sharpness, upscaler_driver_reported, render_w, render_h, output_w, output_h, upscale_ratio, settings_changed_midsession, fg_mode, fg_source, fg_factor, fg_driver_reported, fg_runtime_census, fg_none_withheld_reason, fg_refusal, fg_refusal_detail, fg_factor_scope, fg_steady_share, presented_fps, presented_qualifier, dxgi_unseen_total, dxgi_present_samples, displayed_counted_by, sl_tag_census, sl_interposer_version, runtime_modules, driver_profile, executable_markers, ngx_driver_words, rt_flag, rt_source, pt_flag, pt_source, pt_confidence, rr_flag, rr_source, rt_frame_pct, rays_per_pixel, rt_pso_count, rt_tier, hooks_installed_mask, raster_pso_count, frame_count, app_frame_count, displayed_frame_count, dropped_frames, native_fps, displayed_fps, median_fps, p1_low_fps, p01_low_fps, displayed_p1_low_fps, min_fps, max_fps, frametime_stddev_ms, stutter_count, stutter_time_pct, pso_stutter_pct, reflex_active, latency_avg_us, latency_p95_us, dropped_records, fault_count, data_quality_warnings, writer_status_at_end, early_stop_family, loader_signals, vram_proc_avg_mb, vram_proc_max_mb, vram_budget_exceeded_pct, vram_adapter_max_mb, avg_cpu_temp, max_cpu_temp, avg_gpu_temp, max_gpu_temp, max_gpu_hotspot, avg_gpu_load, avg_cpu_load, avg_ram_mb, avg_gpu_power_w, throttle_pct, display_exclusive_ms, display_borderless_ms, display_windowed_ms, display_covers_ms, display_minimized_ms, display_nowindow_ms, display_changes, display_source, display_window_w, display_window_h, display_buffer_w, display_buffer_h, display_monitor_w, display_monitor_h, display_monitor_hz, game_vram_dedicated_avg_mb, game_vram_dedicated_median_mb, game_vram_dedicated_max_mb, game_vram_shared_max_mb, game_ram_private_avg_mb, game_ram_private_median_mb, game_ram_private_max_mb, game_ram_ws_max_mb, game_commit_max_mb, game_memory_processes, game_memory_source, sensor_stats_json) "
|
||||
+ "VALUES (@session_guid, @game_id, @snapshot_id, @started_at, @ended_at, @duration_s, @qpc_epoch, @qpc_frequency, @capture_tier, @capture_mode, @capture_notes, @ac_exception_family, @late_attach, @telemetry_source, @overlay_build_id, @exit_status, @drain_ticks, @foreground_ticks, @records_before_attach, @dxgi_presents_before_hook, @gap_count, @guard_ticks_published, @launch_wait_ms, @api, @present_mode, @swap_effect, @hdr_flag, @hdr_source, @sync_interval_mode, @upscaler, @upscaler_quality, @upscaler_sharpness, @upscaler_driver_reported, @render_w, @render_h, @output_w, @output_h, @upscale_ratio, @settings_changed_midsession, @fg_mode, @fg_source, @fg_factor, @fg_driver_reported, @fg_runtime_census, @fg_none_withheld_reason, @fg_refusal, @fg_refusal_detail, @fg_factor_scope, @fg_steady_share, @presented_fps, @presented_qualifier, @dxgi_unseen_total, @dxgi_present_samples, @displayed_counted_by, @sl_tag_census, @sl_interposer_version, @runtime_modules, @driver_profile, @executable_markers, @ngx_driver_words, @rt_flag, @rt_source, @pt_flag, @pt_source, @pt_confidence, @rr_flag, @rr_source, @rt_frame_pct, @rays_per_pixel, @rt_pso_count, @rt_tier, @hooks_installed_mask, @raster_pso_count, @frame_count, @app_frame_count, @displayed_frame_count, @dropped_frames, @native_fps, @displayed_fps, @median_fps, @p1_low_fps, @p01_low_fps, @displayed_p1_low_fps, @min_fps, @max_fps, @frametime_stddev_ms, @stutter_count, @stutter_time_pct, @pso_stutter_pct, @reflex_active, @latency_avg_us, @latency_p95_us, @dropped_records, @fault_count, @data_quality_warnings, @writer_status_at_end, @early_stop_family, @loader_signals, @vram_proc_avg_mb, @vram_proc_max_mb, @vram_budget_exceeded_pct, @vram_adapter_max_mb, @avg_cpu_temp, @max_cpu_temp, @avg_gpu_temp, @max_gpu_temp, @max_gpu_hotspot, @avg_gpu_load, @avg_cpu_load, @avg_ram_mb, @avg_gpu_power_w, @throttle_pct, @display_exclusive_ms, @display_borderless_ms, @display_windowed_ms, @display_covers_ms, @display_minimized_ms, @display_nowindow_ms, @display_changes, @display_source, @display_window_w, @display_window_h, @display_buffer_w, @display_buffer_h, @display_monitor_w, @display_monitor_h, @display_monitor_hz, @game_vram_dedicated_avg_mb, @game_vram_dedicated_median_mb, @game_vram_dedicated_max_mb, @game_vram_shared_max_mb, @game_ram_private_avg_mb, @game_ram_private_median_mb, @game_ram_private_max_mb, @game_ram_ws_max_mb, @game_commit_max_mb, @game_memory_processes, @game_memory_source, @sensor_stats_json) RETURNING id";
|
||||
"INSERT INTO sessions (session_guid, game_id, snapshot_id, started_at, ended_at, duration_s, qpc_epoch, qpc_frequency, capture_tier, capture_mode, capture_notes, ac_exception_family, late_attach, telemetry_source, overlay_build_id, exit_status, drain_ticks, foreground_ticks, records_before_attach, dxgi_presents_before_hook, gap_count, guard_ticks_published, launch_wait_ms, api, present_mode, swap_effect, hdr_flag, hdr_source, sync_interval_mode, upscaler, upscaler_quality, upscaler_sharpness, upscaler_driver_reported, render_w, render_h, output_w, output_h, upscale_ratio, settings_changed_midsession, fg_mode, fg_source, fg_factor, fg_driver_reported, fg_runtime_census, fg_none_withheld_reason, fg_refusal, fg_refusal_detail, fg_factor_scope, fg_steady_share, presented_fps, presented_qualifier, dxgi_unseen_total, dxgi_present_samples, displayed_counted_by, sl_tag_census, sl_interposer_version, runtime_modules, driver_profile, executable_markers, ngx_driver_words, rt_flag, rt_source, pt_flag, pt_source, pt_confidence, rr_flag, rr_source, rt_frame_pct, rays_per_pixel, rt_pso_count, rt_tier, hooks_installed_mask, raster_pso_count, frame_count, app_frame_count, displayed_frame_count, dropped_frames, native_fps, displayed_fps, median_fps, p1_low_fps, p01_low_fps, displayed_p1_low_fps, min_fps, max_fps, frametime_stddev_ms, stutter_count, stutter_time_pct, pso_stutter_pct, reflex_active, latency_avg_us, latency_p95_us, dropped_records, fault_count, data_quality_warnings, writer_status_at_end, early_stop_family, loader_signals, vram_proc_avg_mb, vram_proc_max_mb, vram_budget_exceeded_pct, vram_adapter_max_mb, avg_cpu_temp, max_cpu_temp, avg_gpu_temp, max_gpu_temp, max_gpu_hotspot, avg_gpu_load, avg_cpu_load, avg_ram_mb, avg_gpu_power_w, throttle_pct, display_exclusive_ms, display_borderless_ms, display_windowed_ms, display_covers_ms, display_minimized_ms, display_nowindow_ms, display_changes, display_source, display_window_w, display_window_h, display_buffer_w, display_buffer_h, display_monitor_w, display_monitor_h, display_monitor_hz, game_vram_dedicated_avg_mb, game_vram_dedicated_median_mb, game_vram_dedicated_max_mb, game_vram_shared_max_mb, game_ram_private_avg_mb, game_ram_private_median_mb, game_ram_private_max_mb, game_ram_ws_max_mb, game_commit_max_mb, game_memory_processes, game_memory_source, sensor_stats_json, time_below_30_pct, time_below_60_pct, time_below_refresh_pct, frametime_delta_mean_ms, vsync_present_pct, tearing_allowed_pct, avg_gpu_core_clock_mhz, avg_gpu_mem_clock_mhz, avg_gpu_fan_rpm, max_gpu_mem_temp, power_limit_pct, thermal_limit_pct, app_frames_per_joule) "
|
||||
+ "VALUES (@session_guid, @game_id, @snapshot_id, @started_at, @ended_at, @duration_s, @qpc_epoch, @qpc_frequency, @capture_tier, @capture_mode, @capture_notes, @ac_exception_family, @late_attach, @telemetry_source, @overlay_build_id, @exit_status, @drain_ticks, @foreground_ticks, @records_before_attach, @dxgi_presents_before_hook, @gap_count, @guard_ticks_published, @launch_wait_ms, @api, @present_mode, @swap_effect, @hdr_flag, @hdr_source, @sync_interval_mode, @upscaler, @upscaler_quality, @upscaler_sharpness, @upscaler_driver_reported, @render_w, @render_h, @output_w, @output_h, @upscale_ratio, @settings_changed_midsession, @fg_mode, @fg_source, @fg_factor, @fg_driver_reported, @fg_runtime_census, @fg_none_withheld_reason, @fg_refusal, @fg_refusal_detail, @fg_factor_scope, @fg_steady_share, @presented_fps, @presented_qualifier, @dxgi_unseen_total, @dxgi_present_samples, @displayed_counted_by, @sl_tag_census, @sl_interposer_version, @runtime_modules, @driver_profile, @executable_markers, @ngx_driver_words, @rt_flag, @rt_source, @pt_flag, @pt_source, @pt_confidence, @rr_flag, @rr_source, @rt_frame_pct, @rays_per_pixel, @rt_pso_count, @rt_tier, @hooks_installed_mask, @raster_pso_count, @frame_count, @app_frame_count, @displayed_frame_count, @dropped_frames, @native_fps, @displayed_fps, @median_fps, @p1_low_fps, @p01_low_fps, @displayed_p1_low_fps, @min_fps, @max_fps, @frametime_stddev_ms, @stutter_count, @stutter_time_pct, @pso_stutter_pct, @reflex_active, @latency_avg_us, @latency_p95_us, @dropped_records, @fault_count, @data_quality_warnings, @writer_status_at_end, @early_stop_family, @loader_signals, @vram_proc_avg_mb, @vram_proc_max_mb, @vram_budget_exceeded_pct, @vram_adapter_max_mb, @avg_cpu_temp, @max_cpu_temp, @avg_gpu_temp, @max_gpu_temp, @max_gpu_hotspot, @avg_gpu_load, @avg_cpu_load, @avg_ram_mb, @avg_gpu_power_w, @throttle_pct, @display_exclusive_ms, @display_borderless_ms, @display_windowed_ms, @display_covers_ms, @display_minimized_ms, @display_nowindow_ms, @display_changes, @display_source, @display_window_w, @display_window_h, @display_buffer_w, @display_buffer_h, @display_monitor_w, @display_monitor_h, @display_monitor_hz, @game_vram_dedicated_avg_mb, @game_vram_dedicated_median_mb, @game_vram_dedicated_max_mb, @game_vram_shared_max_mb, @game_ram_private_avg_mb, @game_ram_private_median_mb, @game_ram_private_max_mb, @game_ram_ws_max_mb, @game_commit_max_mb, @game_memory_processes, @game_memory_source, @sensor_stats_json, @time_below_30_pct, @time_below_60_pct, @time_below_refresh_pct, @frametime_delta_mean_ms, @vsync_present_pct, @tearing_allowed_pct, @avg_gpu_core_clock_mhz, @avg_gpu_mem_clock_mhz, @avg_gpu_fan_rpm, @max_gpu_mem_temp, @power_limit_pct, @thermal_limit_pct, @app_frames_per_joule) RETURNING id";
|
||||
|
||||
public const string Select = "SELECT id, session_guid, game_id, snapshot_id, started_at, ended_at, duration_s, qpc_epoch, qpc_frequency, capture_tier, capture_mode, capture_notes, ac_exception_family, late_attach, telemetry_source, overlay_build_id, exit_status, drain_ticks, foreground_ticks, records_before_attach, dxgi_presents_before_hook, gap_count, guard_ticks_published, launch_wait_ms, api, present_mode, swap_effect, hdr_flag, hdr_source, sync_interval_mode, upscaler, upscaler_quality, upscaler_sharpness, upscaler_driver_reported, render_w, render_h, output_w, output_h, upscale_ratio, settings_changed_midsession, fg_mode, fg_source, fg_factor, fg_driver_reported, fg_runtime_census, fg_none_withheld_reason, fg_refusal, fg_refusal_detail, fg_factor_scope, fg_steady_share, presented_fps, presented_qualifier, dxgi_unseen_total, dxgi_present_samples, displayed_counted_by, sl_tag_census, sl_interposer_version, runtime_modules, driver_profile, executable_markers, ngx_driver_words, rt_flag, rt_source, pt_flag, pt_source, pt_confidence, rr_flag, rr_source, rt_frame_pct, rays_per_pixel, rt_pso_count, rt_tier, hooks_installed_mask, raster_pso_count, frame_count, app_frame_count, displayed_frame_count, dropped_frames, native_fps, displayed_fps, median_fps, p1_low_fps, p01_low_fps, displayed_p1_low_fps, min_fps, max_fps, frametime_stddev_ms, stutter_count, stutter_time_pct, pso_stutter_pct, reflex_active, latency_avg_us, latency_p95_us, dropped_records, fault_count, data_quality_warnings, writer_status_at_end, early_stop_family, loader_signals, vram_proc_avg_mb, vram_proc_max_mb, vram_budget_exceeded_pct, vram_adapter_max_mb, avg_cpu_temp, max_cpu_temp, avg_gpu_temp, max_gpu_temp, max_gpu_hotspot, avg_gpu_load, avg_cpu_load, avg_ram_mb, avg_gpu_power_w, throttle_pct, display_exclusive_ms, display_borderless_ms, display_windowed_ms, display_covers_ms, display_minimized_ms, display_nowindow_ms, display_changes, display_source, display_window_w, display_window_h, display_buffer_w, display_buffer_h, display_monitor_w, display_monitor_h, display_monitor_hz, game_vram_dedicated_avg_mb, game_vram_dedicated_median_mb, game_vram_dedicated_max_mb, game_vram_shared_max_mb, game_ram_private_avg_mb, game_ram_private_median_mb, game_ram_private_max_mb, game_ram_ws_max_mb, game_commit_max_mb, game_memory_processes, game_memory_source, sensor_stats_json FROM sessions";
|
||||
public const string Select = "SELECT id, session_guid, game_id, snapshot_id, started_at, ended_at, duration_s, qpc_epoch, qpc_frequency, capture_tier, capture_mode, capture_notes, ac_exception_family, late_attach, telemetry_source, overlay_build_id, exit_status, drain_ticks, foreground_ticks, records_before_attach, dxgi_presents_before_hook, gap_count, guard_ticks_published, launch_wait_ms, api, present_mode, swap_effect, hdr_flag, hdr_source, sync_interval_mode, upscaler, upscaler_quality, upscaler_sharpness, upscaler_driver_reported, render_w, render_h, output_w, output_h, upscale_ratio, settings_changed_midsession, fg_mode, fg_source, fg_factor, fg_driver_reported, fg_runtime_census, fg_none_withheld_reason, fg_refusal, fg_refusal_detail, fg_factor_scope, fg_steady_share, presented_fps, presented_qualifier, dxgi_unseen_total, dxgi_present_samples, displayed_counted_by, sl_tag_census, sl_interposer_version, runtime_modules, driver_profile, executable_markers, ngx_driver_words, rt_flag, rt_source, pt_flag, pt_source, pt_confidence, rr_flag, rr_source, rt_frame_pct, rays_per_pixel, rt_pso_count, rt_tier, hooks_installed_mask, raster_pso_count, frame_count, app_frame_count, displayed_frame_count, dropped_frames, native_fps, displayed_fps, median_fps, p1_low_fps, p01_low_fps, displayed_p1_low_fps, min_fps, max_fps, frametime_stddev_ms, stutter_count, stutter_time_pct, pso_stutter_pct, reflex_active, latency_avg_us, latency_p95_us, dropped_records, fault_count, data_quality_warnings, writer_status_at_end, early_stop_family, loader_signals, vram_proc_avg_mb, vram_proc_max_mb, vram_budget_exceeded_pct, vram_adapter_max_mb, avg_cpu_temp, max_cpu_temp, avg_gpu_temp, max_gpu_temp, max_gpu_hotspot, avg_gpu_load, avg_cpu_load, avg_ram_mb, avg_gpu_power_w, throttle_pct, display_exclusive_ms, display_borderless_ms, display_windowed_ms, display_covers_ms, display_minimized_ms, display_nowindow_ms, display_changes, display_source, display_window_w, display_window_h, display_buffer_w, display_buffer_h, display_monitor_w, display_monitor_h, display_monitor_hz, game_vram_dedicated_avg_mb, game_vram_dedicated_median_mb, game_vram_dedicated_max_mb, game_vram_shared_max_mb, game_ram_private_avg_mb, game_ram_private_median_mb, game_ram_private_max_mb, game_ram_ws_max_mb, game_commit_max_mb, game_memory_processes, game_memory_source, sensor_stats_json, time_below_30_pct, time_below_60_pct, time_below_refresh_pct, frametime_delta_mean_ms, vsync_present_pct, tearing_allowed_pct, avg_gpu_core_clock_mhz, avg_gpu_mem_clock_mhz, avg_gpu_fan_rpm, max_gpu_mem_temp, power_limit_pct, thermal_limit_pct, app_frames_per_joule FROM sessions";
|
||||
|
||||
public static Dictionary<string, object?> Parameters(SessionRow s)
|
||||
{
|
||||
@@ -33,10 +33,11 @@ internal static class SessionRowColumns
|
||||
Parameters3(d, s);
|
||||
Parameters4(d, s);
|
||||
Parameters5(d, s);
|
||||
Parameters6(d, s);
|
||||
return d;
|
||||
}
|
||||
|
||||
public static SessionRow Read(DbDataReader r) => Read5(Read4(Read3(Read2(Read1(Read0(r), r), r), r), r), r);
|
||||
public static SessionRow Read(DbDataReader r) => Read6(Read5(Read4(Read3(Read2(Read1(Read0(r), r), r), r), r), r), r);
|
||||
|
||||
|
||||
private static void Parameters0(Dictionary<string, object?> d, SessionRow s)
|
||||
@@ -369,6 +370,41 @@ internal static class SessionRowColumns
|
||||
SensorStatsJson = S(r, "sensor_stats_json"),
|
||||
};
|
||||
|
||||
// Schema 0019 (beta.14, D49): pacing, the present arguments, the card's clocks and limits, efficiency.
|
||||
private static void Parameters6(Dictionary<string, object?> d, SessionRow s)
|
||||
{
|
||||
d["time_below_30_pct"] = s.TimeBelow30Pct;
|
||||
d["time_below_60_pct"] = s.TimeBelow60Pct;
|
||||
d["time_below_refresh_pct"] = s.TimeBelowRefreshPct;
|
||||
d["frametime_delta_mean_ms"] = s.FrametimeDeltaMeanMs;
|
||||
d["vsync_present_pct"] = s.VsyncPresentPct;
|
||||
d["tearing_allowed_pct"] = s.TearingAllowedPct;
|
||||
d["avg_gpu_core_clock_mhz"] = s.AvgGpuCoreClockMhz;
|
||||
d["avg_gpu_mem_clock_mhz"] = s.AvgGpuMemClockMhz;
|
||||
d["avg_gpu_fan_rpm"] = s.AvgGpuFanRpm;
|
||||
d["max_gpu_mem_temp"] = s.MaxGpuMemTemp;
|
||||
d["power_limit_pct"] = s.PowerLimitPct;
|
||||
d["thermal_limit_pct"] = s.ThermalLimitPct;
|
||||
d["app_frames_per_joule"] = s.AppFramesPerJoule;
|
||||
}
|
||||
|
||||
private static SessionRow Read6(SessionRow row, DbDataReader r) => row with
|
||||
{
|
||||
TimeBelow30Pct = D(r, "time_below_30_pct"),
|
||||
TimeBelow60Pct = D(r, "time_below_60_pct"),
|
||||
TimeBelowRefreshPct = D(r, "time_below_refresh_pct"),
|
||||
FrametimeDeltaMeanMs = D(r, "frametime_delta_mean_ms"),
|
||||
VsyncPresentPct = D(r, "vsync_present_pct"),
|
||||
TearingAllowedPct = D(r, "tearing_allowed_pct"),
|
||||
AvgGpuCoreClockMhz = D(r, "avg_gpu_core_clock_mhz"),
|
||||
AvgGpuMemClockMhz = D(r, "avg_gpu_mem_clock_mhz"),
|
||||
AvgGpuFanRpm = D(r, "avg_gpu_fan_rpm"),
|
||||
MaxGpuMemTemp = D(r, "max_gpu_mem_temp"),
|
||||
PowerLimitPct = D(r, "power_limit_pct"),
|
||||
ThermalLimitPct = D(r, "thermal_limit_pct"),
|
||||
AppFramesPerJoule = D(r, "app_frames_per_joule"),
|
||||
};
|
||||
|
||||
public static string ExitStatusText(ExitStatus status) => Vocabulary.ExitStatusText(status);
|
||||
|
||||
public static ExitStatus ParseExitStatus(string text) => text switch
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
using FluentAssertions;
|
||||
using FrameLedger.Agent.Composition;
|
||||
|
||||
namespace FrameLedger.Agent.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// beta.14 (D50): Task Manager lists a process by its file description, and until beta.14 the Agent's read
|
||||
/// "FrameLedger.Agent" — the SDK's default, the assembly name, with the same company and product and no copyright. The
|
||||
/// Agent is the process that injects; it says plainly what it is and who wrote it, as the native binaries always have.
|
||||
/// </summary>
|
||||
public sealed class AssemblyIdentityTests
|
||||
{
|
||||
private static string RepoRoot()
|
||||
{
|
||||
for (DirectoryInfo? dir = new(AppContext.BaseDirectory); dir is not null; dir = dir.Parent)
|
||||
{
|
||||
if (File.Exists(Path.Combine(dir.FullName, "FrameLedger.slnx")))
|
||||
{
|
||||
return dir.FullName;
|
||||
}
|
||||
}
|
||||
|
||||
throw new InvalidOperationException("the repository root (FrameLedger.slnx) is not above " + AppContext.BaseDirectory);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheAgentNamesItselfAndCarriesTheNativeCopyright()
|
||||
{
|
||||
Assembly agent = typeof(AgentIdentityFactory).Assembly;
|
||||
FileVersionInfo block = FileVersionInfo.GetVersionInfo(agent.Location);
|
||||
Match native = Regex.Match(File.ReadAllText(Path.Combine(RepoRoot(), "src", "native", "CMakeLists.txt")),
|
||||
"^set\\(FL_COPYRIGHT\\s+\"(?<text>[^\"]+)\"\\)", RegexOptions.Multiline | RegexOptions.ExplicitCapture | RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1));
|
||||
|
||||
(block.FileDescription, block.CompanyName, block.ProductName).Should().Be(("FrameLedger Agent", "FrameLedger", "FrameLedger"),
|
||||
"the apphost FrameLedger.Agent.exe carries a copy of this block, and Task Manager shows its description");
|
||||
native.Success.Should().BeTrue("src/native/CMakeLists.txt sets FL_COPYRIGHT");
|
||||
block.LegalCopyright.Should().Be(native.Groups["text"].Value, "one product, one copyright");
|
||||
(agent.GetCustomAttribute<AssemblyDescriptionAttribute>()?.Description).Should().NotBeNullOrWhiteSpace();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
using FluentAssertions;
|
||||
using FluentAssertions.Execution;
|
||||
using FrameLedger.App.Services;
|
||||
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// beta.14 (D50): every managed assembly the package ships names the product, says what it is and carries the copyright
|
||||
/// the native binaries carry. Until beta.14 the SDK's defaults stood — each library's company and product were its own
|
||||
/// assembly name, the Agent's "FrameLedger.Agent" — and no managed binary had a copyright; Explorer's Properties ▸
|
||||
/// Details and Task Manager read these. <c>tools/versioninfo-check.ps1</c> reads the same from the built and the
|
||||
/// published binaries; this pins the source, against the native <c>FL_COPYRIGHT</c> word for word.
|
||||
/// </summary>
|
||||
public sealed class AssemblyIdentityTests
|
||||
{
|
||||
private static readonly Assembly[] _shipped =
|
||||
[
|
||||
typeof(UiIdentity).Assembly,
|
||||
typeof(Domain.Sessions.ExitStatus).Assembly,
|
||||
typeof(Application.Recording.ExitStatusMapper).Assembly,
|
||||
typeof(Infrastructure.Persistence.LedgerPaths).Assembly,
|
||||
typeof(Shared.Ipc.IpcProtocol).Assembly,
|
||||
];
|
||||
|
||||
private static string RepoRoot()
|
||||
{
|
||||
for (DirectoryInfo? dir = new(AppContext.BaseDirectory); dir is not null; dir = dir.Parent)
|
||||
{
|
||||
if (File.Exists(Path.Combine(dir.FullName, "FrameLedger.slnx")))
|
||||
{
|
||||
return dir.FullName;
|
||||
}
|
||||
}
|
||||
|
||||
throw new InvalidOperationException("the repository root (FrameLedger.slnx) is not above " + AppContext.BaseDirectory);
|
||||
}
|
||||
|
||||
/// <summary>The native version blocks' copyright line, as <c>src/native/CMakeLists.txt</c> sets it.</summary>
|
||||
private static string NativeCopyright()
|
||||
{
|
||||
string cmake = File.ReadAllText(Path.Combine(RepoRoot(), "src", "native", "CMakeLists.txt"));
|
||||
Match line = Regex.Match(cmake, "^set\\(FL_COPYRIGHT\\s+\"(?<text>[^\"]+)\"\\)", RegexOptions.Multiline | RegexOptions.ExplicitCapture | RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1));
|
||||
line.Success.Should().BeTrue("src/native/CMakeLists.txt sets FL_COPYRIGHT");
|
||||
return line.Groups["text"].Value;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void EveryShippedAssemblyNamesTheProductAndCarriesTheNativeCopyright()
|
||||
{
|
||||
string copyright = NativeCopyright();
|
||||
|
||||
using var scope = new AssertionScope();
|
||||
foreach (Assembly assembly in _shipped)
|
||||
{
|
||||
string name = assembly.GetName().Name!;
|
||||
(assembly.GetCustomAttribute<AssemblyCompanyAttribute>()?.Company).Should().Be("FrameLedger", name);
|
||||
(assembly.GetCustomAttribute<AssemblyProductAttribute>()?.Product).Should().Be("FrameLedger", name);
|
||||
(assembly.GetCustomAttribute<AssemblyCopyrightAttribute>()?.Copyright).Should().Be(copyright, name);
|
||||
(assembly.GetCustomAttribute<AssemblyDescriptionAttribute>()?.Description).Should().NotBeNullOrWhiteSpace(name);
|
||||
// The repository every assembly names is the one the App sends issues and document links to.
|
||||
(assembly.GetCustomAttributes<AssemblyMetadataAttribute>().FirstOrDefault(static a => string.Equals(a.Key, "RepositoryUrl", StringComparison.Ordinal))?.Value)
|
||||
.Should().Be(IssueLink.Repository, name);
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheAppsVersionBlockIsWhatExplorerShows()
|
||||
{
|
||||
Assembly app = typeof(UiIdentity).Assembly;
|
||||
FileVersionInfo block = FileVersionInfo.GetVersionInfo(app.Location);
|
||||
|
||||
(block.FileDescription, block.CompanyName, block.ProductName).Should().Be(("FrameLedger", "FrameLedger", "FrameLedger"),
|
||||
"the apphost FrameLedger.exe carries a copy of this block");
|
||||
block.LegalCopyright.Should().Be(NativeCopyright(), "one product, one copyright");
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,12 @@ public sealed class ChartMathTests
|
||||
{
|
||||
Dictionary<string, (int R, int G, int B)> palette = Palette(file);
|
||||
|
||||
foreach (string[] plot in new[] { SensorsChart.TempsPlot.Select(static s => s.PaletteKey).ToArray(), SensorsChart.VideoMemoryPlot.Select(static s => s.PaletteKey).ToArray(), SensorsChart.SystemMemoryPlot.Select(static s => s.PaletteKey).ToArray() })
|
||||
// beta.14: the temperatures plot has a seventh line (the card's memory), and the clocks plot is a fourth plot.
|
||||
foreach (string[] plot in new[]
|
||||
{
|
||||
SensorsChart.TempsPlot.Select(static s => s.PaletteKey).ToArray(), SensorsChart.VideoMemoryPlot.Select(static s => s.PaletteKey).ToArray(),
|
||||
SensorsChart.SystemMemoryPlot.Select(static s => s.PaletteKey).ToArray(), SensorsChart.ClocksPlot.Select(static s => s.PaletteKey).ToArray(),
|
||||
})
|
||||
{
|
||||
for (int i = 0; i < plot.Length; i++)
|
||||
{
|
||||
|
||||
@@ -168,4 +168,50 @@ public sealed class CompareViewModelTests
|
||||
CompareViewModel.Row("t", close, static r => r.MedianFps, static v => Formats.FpsNumber(v!.Value, twoDecimals: false), higherIsBetter: true)
|
||||
.Cells.Select(static c => c.IsBest).Should().Equal([true, true, false], "both are shown as 62");
|
||||
}
|
||||
/// <summary>
|
||||
/// beta.14 (D49): the new rows, and the <c>(presented)</c> label — a session whose frame statistics are over its presents
|
||||
/// says so in its cell, beside one whose statistics are over the game's own frames (rule 6). The best is decided on the
|
||||
/// number: less time below 60 is better, more frames per watt is better, and a VSync share ranks nothing.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task APresentOnlySessionsStatisticsAreLabelledAndTheNewRowsRankAsTheySay()
|
||||
{
|
||||
CultureInfo? previous = Strings.Culture;
|
||||
CultureInfo previousCulture = CultureInfo.CurrentCulture;
|
||||
Strings.Culture = CultureInfo.GetCultureInfo("en");
|
||||
CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("en");
|
||||
try
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow a = await s.GameAsync("Alpha");
|
||||
await s.SessionAsync(a.Id, DateTimeOffset.UtcNow.AddHours(-2), fgMode: "na", native: null, presented: 72, qualifier: "fg_runtime_loaded",
|
||||
shape: static r => r with { TimeBelow60Pct = 20, VsyncPresentPct = 100, AppFramesPerJoule = null, UpscaleRatio = 1.5 });
|
||||
await s.SessionAsync(a.Id, DateTimeOffset.UtcNow.AddHours(-1),
|
||||
shape: static r => r with { TimeBelow60Pct = 5, VsyncPresentPct = 0, AppFramesPerJoule = 0.31, UpscaleRatio = 2 });
|
||||
CompareViewModel vm = await BuildAsync(s, new ScriptedMixed(answer: true));
|
||||
foreach (CompareCandidateViewModel c in vm.Candidates)
|
||||
{
|
||||
c.IsSelected = true;
|
||||
}
|
||||
|
||||
vm.CompareCommand.Execute(null);
|
||||
Task pending = vm.Pending;
|
||||
await pending;
|
||||
CompareRowViewModel RowOf(string metric) => vm.Rows.Single(r => string.Equals(r.Metric, metric, StringComparison.Ordinal));
|
||||
|
||||
// Newest first: the counted-none session, then the present-only one.
|
||||
RowOf("1% Low").Cells.Select(static c => c.Text).Should().Equal("48", "48 (presented)");
|
||||
CompareRowViewModel below = RowOf("Time below 60 FPS");
|
||||
below.Cells.Select(static c => c.Text).Should().Equal("5.0%", "20.0% (presented)");
|
||||
below.Cells.Select(static c => c.IsBest).Should().Equal(true, false);
|
||||
RowOf("Frames per watt").Cells.Select(static c => (c.Text, c.IsBest)).Should().Equal(("0.31 FPS/W", true), ("N/A", false));
|
||||
RowOf("VSync share").Cells.Should().OnlyContain(static c => !c.IsBest, "a setting, not a score");
|
||||
RowOf("Render scale").Cells.Select(static c => c.Text).Should().Equal("50.0%", "66.7%");
|
||||
}
|
||||
finally
|
||||
{
|
||||
Strings.Culture = previous;
|
||||
CultureInfo.CurrentCulture = previousCulture;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,16 @@ public sealed class FormatsTests
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>beta.14 (D49): a share to one decimal, a frame-time difference in ms, frames per joule as FPS/W; N/A, never 0.</summary>
|
||||
[Fact]
|
||||
public void SharesMillisecondsAndFramesPerWatt()
|
||||
{
|
||||
InEnglish(static () => (Formats.Share(9.62), Formats.Share(0.04), Formats.Share(null))).Should().Be(("9.6%", "0.0%", "N/A"));
|
||||
InEnglish(static () => (Formats.Milliseconds(0.875), Formats.Milliseconds(null))).Should().Be(("0.88 ms", "N/A"));
|
||||
InEnglish(static () => (Formats.FramesPerJoule(0.3125), Formats.FramesPerJoule(null))).Should().Be(("0.31 FPS/W", "N/A"));
|
||||
InEnglish(static () => (Formats.Frequency(2655.4), Formats.Rpm(1450.4))).Should().Be(("2,655 MHz", "1,450 RPM"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DurationsAndPlaytime()
|
||||
{
|
||||
|
||||
@@ -940,4 +940,17 @@ public sealed class GameDetailViewModelTests
|
||||
GameDetailViewModel.CapabilityNames("not json").Should().BeEmpty();
|
||||
GameDetailViewModel.CapabilityNames(null).Should().BeEmpty();
|
||||
}
|
||||
/// <summary>beta.14: the Latency tab shows only when one of the game's sessions measured PC latency — nothing measures it today.</summary>
|
||||
[Fact]
|
||||
public async Task TheLatencyTabIsShownOnlyWhereASessionMeasuredLatency()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow without = await s.GameAsync("Without");
|
||||
await s.SessionAsync(without.Id, DateTimeOffset.UtcNow);
|
||||
GameRow with = await s.GameAsync("With");
|
||||
await s.SessionAsync(with.Id, DateTimeOffset.UtcNow, shape: static r => r with { ReflexActive = true, LatencyAvgUs = 21_000, LatencyP95Us = 30_000 });
|
||||
|
||||
(await BuildAsync(s, without.Id)).Vm.AnyLatency.Should().BeFalse();
|
||||
(await BuildAsync(s, with.Id)).Vm.AnyLatency.Should().BeTrue();
|
||||
}
|
||||
}
|
||||
@@ -197,4 +197,33 @@ public sealed class GameMemoryTextTests
|
||||
rows[3].Should().Be(new SensorStatRowModel(Strings.Sensors_Series_GameRam, "2.93 GB", "3.00 GB", "512 MB", "3.50 GB", "600"));
|
||||
SensorStatsTable.Rows(_noStats).Should().BeEmpty("a session recorded before beta.12 stored none");
|
||||
}
|
||||
|
||||
/// <summary>beta.14 (D49): the card's six series, each in its own unit — every series the table did not know was memory, so a clock would have read as megabytes.</summary>
|
||||
[Fact]
|
||||
public void TheCardsClocksFanAndLimitsReadInTheirOwnUnits()
|
||||
{
|
||||
var stats = new Dictionary<string, SensorSeriesStats>(StringComparer.Ordinal)
|
||||
{
|
||||
[SensorSeriesCatalog.GpuThermalLimit] = new SensorSeriesStats(600, 0, 0, 0, 0),
|
||||
[SensorSeriesCatalog.GpuPowerLimit] = new SensorSeriesStats(600, 33.3, 0, 0, 100),
|
||||
[SensorSeriesCatalog.GpuMemTemp] = new SensorSeriesStats(600, 70.4, 70, 60, 78),
|
||||
[SensorSeriesCatalog.GpuFan] = new SensorSeriesStats(600, 1450.4, 1450, 0, 2100),
|
||||
[SensorSeriesCatalog.GpuMemClock] = new SensorSeriesStats(600, 15001, 15001, 405, 15001),
|
||||
[SensorSeriesCatalog.GpuCoreClock] = new SensorSeriesStats(600, 2655.4, 2700, 210, 2805),
|
||||
};
|
||||
|
||||
IReadOnlyList<SensorStatRowModel> rows = InEnglish(() => SensorStatsTable.Rows(stats));
|
||||
|
||||
rows.Select(static r => r.Series).Should().Equal(InEnglish(static () => new[]
|
||||
{
|
||||
Strings.Sensors_Series_GpuCoreClock, Strings.Sensors_Series_GpuMemClock, Strings.Sensors_Series_GpuFan,
|
||||
Strings.Sensors_Series_GpuMemTemp, Strings.Sensors_Series_GpuPowerLimit, Strings.Sensors_Series_GpuThermalLimit,
|
||||
}));
|
||||
rows[0].Mean.Should().Be("2,655 MHz");
|
||||
rows[1].Max.Should().Be("15,001 MHz");
|
||||
rows[2].Mean.Should().Be("1,450 RPM");
|
||||
rows[3].Max.Should().Be("78 °C");
|
||||
(rows[4].Mean, rows[4].Max).Should().Be(("33%", "100%"), "the mean of a 0-or-100 series is the share of ticks held back");
|
||||
rows[5].Max.Should().Be("0%", "never held back by heat is 0 %, a measured answer");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using FluentAssertions;
|
||||
using FrameLedger.App.Charts;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using FrameLedger.Application.Recording;
|
||||
using FrameLedger.Domain.Sessions;
|
||||
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// beta.14 (D49), the charts' half: the render scale over a session, and the card's clocks with the time its limits held it
|
||||
/// back. The arithmetic is pure and pinned here; the two charts are drawn on the STA thread to show they draw it.
|
||||
/// </summary>
|
||||
public sealed class RenderScaleAndClocksTests
|
||||
{
|
||||
private static readonly SessionRow _row = new()
|
||||
{
|
||||
SessionGuid = Guid.NewGuid(),
|
||||
GameId = 1,
|
||||
SnapshotId = 1,
|
||||
StartedAt = DateTimeOffset.UnixEpoch,
|
||||
EndedAt = DateTimeOffset.UnixEpoch.AddMinutes(1),
|
||||
QpcEpoch = 0,
|
||||
QpcFrequency = 1,
|
||||
Tier = CaptureTier.Hooked,
|
||||
Mode = CaptureMode.Launch,
|
||||
ExitStatus = ExitStatus.Normal,
|
||||
RenderW = 1707,
|
||||
RenderH = 960,
|
||||
OutputW = 2560,
|
||||
OutputH = 1440,
|
||||
};
|
||||
|
||||
/// <summary>Presents 0.1 s apart; <paramref name="renderRes"/> is the blob's four values per present, or none.</summary>
|
||||
private static SessionSeries Frames(int presents, ushort[]? renderRes = null) => new()
|
||||
{
|
||||
TimesS = [.. Enumerable.Range(0, presents).Select(static i => i * 0.1)],
|
||||
FrameTimesMs = new float[presents],
|
||||
Generated = new bool[presents],
|
||||
Gap = new bool[presents],
|
||||
RenderRes = renderRes,
|
||||
AppTimesS = [],
|
||||
AppFrameTimesMs = [],
|
||||
AppPresentIndex = [],
|
||||
Segments = [],
|
||||
Sensors = [],
|
||||
};
|
||||
|
||||
[Fact]
|
||||
public void TheScaleIsThePerAxisShareOfTheOutput()
|
||||
{
|
||||
RenderScaleSeries.Scale(1707, 960, 2560, 1440)!.Value.Should().BeApproximately(66.67, 0.01, "DLSS Quality");
|
||||
RenderScaleSeries.Scale(2560, 1440, 2560, 1440).Should().Be(100, "DLAA renders at the output");
|
||||
RenderScaleSeries.Scale(0, 960, 2560, 1440).Should().BeNull("0 is the writer's unknown");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ABlobIsDrawnWhereTheScaleChangesAndToTheEnd()
|
||||
{
|
||||
// Quality for three presents, Performance for two, Quality again for three: three steps and the closing point.
|
||||
ushort[] quality = [1707, 960, 2560, 1440];
|
||||
ushort[] performance = [1280, 720, 2560, 1440];
|
||||
ushort[] blob = [.. quality, .. quality, .. quality, .. performance, .. performance, .. quality, .. quality, .. quality];
|
||||
|
||||
(double[] xs, double[] ys) = RenderScaleSeries.Of(Frames(8, blob), _row);
|
||||
|
||||
xs.Should().Equal(0, 0.30000000000000004, 0.5, 0.7000000000000001);
|
||||
ys.Select(static y => Math.Round(y, 1)).Should().Equal(66.7, 50, 66.7, 66.7);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WithoutABlobTheRowsExtentIsAFlatLineAndWithoutEitherNothing()
|
||||
{
|
||||
(double[] xs, double[] ys) = RenderScaleSeries.Of(Frames(11), _row);
|
||||
xs.Should().Equal(0, 1.0);
|
||||
ys.Should().AllSatisfy(static y => y.Should().BeApproximately(66.67, 0.01));
|
||||
|
||||
RenderScaleSeries.Of(Frames(11), _row with { RenderW = null }).Xs.Should().BeEmpty("the upscaler's parameters were never measured");
|
||||
RenderScaleSeries.Of(null, _row).Xs.Should().BeEmpty("a session that was not hooked has no frames");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ALimitIsShadedFromItsFirstTickToTheNextTickThatWasNot()
|
||||
{
|
||||
var limit = new SensorSeries(SensorSeriesCatalog.GpuPowerLimit, [0, 1, 2, 3, 4, 5], [0, 100, 100, 0, 100, 100]);
|
||||
|
||||
SensorsChart.LimitRuns(limit).Should().Equal((1.0, 3.0), (4.0, 6.0));
|
||||
SensorsChart.LimitRuns(new SensorSeries(SensorSeriesCatalog.GpuPowerLimit, [0, 1], [0, 0])).Should().BeEmpty();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task TheClocksPlotAndTheRenderScaleChartDrawWhatTheSessionHas()
|
||||
{
|
||||
SessionSeries sensors = SessionSeries.SensorsOnly(
|
||||
[
|
||||
new SensorSeries(SensorSeriesCatalog.GpuCoreClock, [0, 1, 2], [2600, 2650, 2700]),
|
||||
new SensorSeries(SensorSeriesCatalog.GpuFan, [0, 1, 2], [1400, 1450, 1500]),
|
||||
new SensorSeries(SensorSeriesCatalog.GpuPowerLimit, [0, 1, 2], [100, 0, 100]),
|
||||
]);
|
||||
|
||||
(int lines, int spans, int scalePoints, int notMeasured) = await PagesLoadTests.OnStaAsync(() =>
|
||||
{
|
||||
var chart = new SensorsChart();
|
||||
chart.Show(sensors);
|
||||
var scale = new RenderScaleChart();
|
||||
scale.Show(Frames(11), _row);
|
||||
int drawn = scale.DrawnPoints;
|
||||
scale.Show(Frames(11), _row with { RenderW = null });
|
||||
return (chart.DrawnSeries, chart.LimitSpansDrawn, drawn, scale.DrawnPoints);
|
||||
});
|
||||
|
||||
lines.Should().Be(2, "the core clock and the fan; this session stored no memory clock and no temperature");
|
||||
spans.Should().Be(2);
|
||||
scalePoints.Should().Be(2, "a flat line from the row's extent");
|
||||
notMeasured.Should().Be(0, "and nothing where it was never measured");
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,8 @@ public sealed class SessionSummaryViewModelTests
|
||||
vm.NotFound.Should().BeFalse();
|
||||
vm.IsHooked.Should().BeTrue();
|
||||
vm.Series.Should().NotBeNull();
|
||||
vm.Stats.Should().HaveCount(13, "eight frame statistics, the display mode (beta.10), the machine: GPU and CPU (2026-09-21), then the game's own memory (beta.12)");
|
||||
vm.Stats.Should().HaveCount(21, "eight frame statistics, the display mode (beta.10), pacing, VSync, focus and capture quality (beta.14), "
|
||||
+ "the machine: GPU and CPU (2026-09-21), the game's own memory (beta.12), then the card's clocks, its limits and frames per watt (beta.14)");
|
||||
vm.Stats.Single(c => string.Equals(c.Label, "CPU", StringComparison.Ordinal)).Value.Should().Be("N/A avg · N/A max", "this row carries no CPU reading: N/A, never 0%");
|
||||
vm.Stats.Single(c => string.Equals(c.Label, "Median", StringComparison.Ordinal)).Value.Should().Be("60");
|
||||
vm.Stats.Single(c => string.Equals(c.Label, "1% Low", StringComparison.Ordinal)).Value.Should().Be("48");
|
||||
@@ -99,6 +100,96 @@ public sealed class SessionSummaryViewModelTests
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// beta.14 (D49): the new cards read the stored row — pacing with the display's own share named for the display, VSync and
|
||||
/// tearing, ray tracing where it was measured, focus, capture quality, the card's clocks and limits, frames per watt — and
|
||||
/// where frames were generated the displayed 1% low stands beside the game's own (rule 6), never instead of it.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task TheBetaFourteenCardsReadTheStoredRowAndTheDisplayedLowStandsBesideTheGamesOwn()
|
||||
{
|
||||
CultureInfo? previous = Strings.Culture;
|
||||
CultureInfo previousCulture = CultureInfo.CurrentCulture;
|
||||
Strings.Culture = CultureInfo.GetCultureInfo("en");
|
||||
CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("en");
|
||||
try
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Beta");
|
||||
long id = await s.SessionAsync(game.Id, DateTimeOffset.UtcNow, fgMode: "dlssg", native: 60, displayed: 118, factor: 1.97, shape: static r => r with
|
||||
{
|
||||
FgFactorScope = "session",
|
||||
DisplayedP1LowFps = 101,
|
||||
TimeBelow30Pct = 1.25,
|
||||
TimeBelow60Pct = 9.62,
|
||||
TimeBelowRefreshPct = 3.5,
|
||||
DisplayMonitorHz = 144,
|
||||
FrametimeDeltaMeanMs = 0.875,
|
||||
VsyncPresentPct = 100,
|
||||
TearingAllowedPct = 0,
|
||||
RtFramePct = 45.5,
|
||||
RaysPerPixel = 0.82,
|
||||
DrainTicks = 1000,
|
||||
ForegroundTicks = 950,
|
||||
GapCount = 2,
|
||||
AvgGpuCoreClockMhz = 2655.4,
|
||||
AvgGpuMemClockMhz = 15001,
|
||||
AvgGpuFanRpm = 1450.4,
|
||||
MaxGpuMemTemp = 78,
|
||||
PowerLimitPct = 33.3,
|
||||
ThermalLimitPct = 0,
|
||||
AppFramesPerJoule = 0.3125,
|
||||
});
|
||||
|
||||
SessionSummaryViewModel vm = Build(s);
|
||||
await vm.LoadAsync(id, Ct);
|
||||
StatCardModel Card(string label) => vm.Stats.Single(c => string.Equals(c.Label, label, StringComparison.Ordinal));
|
||||
|
||||
vm.Readout.Kind.Should().Be(FpsReadoutKind.Generated);
|
||||
Card("1% Low").Suffix.Should().Be("displayed: 101", "rule 6: the presents' low beside the game's own, never instead");
|
||||
Card("Time below 60 FPS").Should().Be(new StatCardModel("Time below 60 FPS", "9.6%", "below 30: 1.3% · display under 144 Hz: 3.5%"));
|
||||
Card("Frame to frame").Value.Should().Be("0.88 ms");
|
||||
Card("VSync").Should().Be(new StatCardModel("VSync", "100.0% of frames", "tearing allowed: 0.0%"));
|
||||
Card("Ray tracing").Should().Be(new StatCardModel("Ray tracing", "45.5% of frames", "0.82 rays per pixel"));
|
||||
Card("Game in focus").Value.Should().Be("95.0% of the time");
|
||||
Card("Capture quality").Value.Should().Be("2 gaps · 0 lost · 0 faults");
|
||||
Card("GPU clocks").Should().Be(new StatCardModel("GPU clocks", "2,655 MHz core · 15,001 MHz memory", "fan 1,450 RPM · memory 78 °C"));
|
||||
Card("GPU held back").Value.Should().Be("power 33.3% · heat 0.0%");
|
||||
Card("Frames per watt").Should().Be(new StatCardModel("Frames per watt", "0.31 FPS/W", "the game's own frames, GPU power only"));
|
||||
}
|
||||
finally
|
||||
{
|
||||
Strings.Culture = previous;
|
||||
CultureInfo.CurrentCulture = previousCulture;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>A session recorded before beta.14 has none of schema 0019's values: every new card reads N/A, never a zero.</summary>
|
||||
[Fact]
|
||||
public async Task ARowRecordedBeforeBetaFourteenReadsNotAvailableOnTheNewCards()
|
||||
{
|
||||
CultureInfo? previous = Strings.Culture;
|
||||
Strings.Culture = CultureInfo.GetCultureInfo("en");
|
||||
try
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Old");
|
||||
SessionSummaryViewModel vm = Build(s);
|
||||
await vm.LoadAsync(await s.SessionAsync(game.Id, DateTimeOffset.UtcNow), Ct);
|
||||
|
||||
foreach (string label in new[] { "Time below 60 FPS", "Frame to frame", "VSync", "Game in focus", "GPU clocks", "GPU held back", "Frames per watt" })
|
||||
{
|
||||
vm.Stats.Single(c => string.Equals(c.Label, label, StringComparison.Ordinal)).Value.Should().Be("N/A", label + " was not recorded before beta.14");
|
||||
}
|
||||
|
||||
vm.Stats.Should().NotContain(c => string.Equals(c.Label, "Ray tracing", StringComparison.Ordinal), "the card appears only where ray tracing was measured");
|
||||
}
|
||||
finally
|
||||
{
|
||||
Strings.Culture = previous;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>A session recorded before beta.12 has its sensors and no stored statistics: N/A cards and one sentence, nothing computed here.</summary>
|
||||
[Fact]
|
||||
public async Task ASessionRecordedBeforeBetaTwelveSaysItsStatisticsWereNotStored()
|
||||
|
||||
@@ -243,4 +243,42 @@ public sealed class TrendSeriesBuilderTests
|
||||
TrendSeriesBuilder.ValueOf(Shown(3, hooked: true, new() { NoWindowMs = 9_000 }), TrendMetric.DisplayWindowedShare)
|
||||
.Should().BeNull("no window was ever read, so there is no share of anything");
|
||||
}
|
||||
/// <summary>
|
||||
/// beta.14 (D49): the nine new metrics are schema 0019's columns in their own units. Pacing and efficiency are the hooks',
|
||||
/// so a Tier-2 session has no point there even with a value; the card's clock, memory temperature and power limit are
|
||||
/// telemetry, every session's; a session recorded before beta.14 has no point at all.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TheBetaFourteenMetricsAreTheRowsColumnsInTheirOwnUnits()
|
||||
{
|
||||
SessionRow hooked = Row(1, 1) with
|
||||
{
|
||||
TimeBelow60Pct = 9.6,
|
||||
TimeBelowRefreshPct = 3.5,
|
||||
FrametimeDeltaMeanMs = 0.9,
|
||||
UpscaleRatio = 1.5,
|
||||
VsyncPresentPct = 100,
|
||||
AvgGpuCoreClockMhz = 2655,
|
||||
MaxGpuMemTemp = 78,
|
||||
PowerLimitPct = 33,
|
||||
AppFramesPerJoule = 0.31,
|
||||
};
|
||||
SessionRow tier2 = Row(2, 1, hooked: false) with { TimeBelow60Pct = 50, AvgGpuCoreClockMhz = 2400, MaxGpuMemTemp = 70, PowerLimitPct = 10 };
|
||||
SessionRow[] rows = [hooked, tier2, Row(3, 1)];
|
||||
|
||||
TrendSeriesBuilder.Points(rows, TrendMetric.TimeBelow60, false).Select(static p => p.Value).Should().Equal(9.6);
|
||||
TrendSeriesBuilder.Points(rows, TrendMetric.GpuCoreClock, false).Select(static p => p.Value).Should().Equal(2655, 2400);
|
||||
TrendSeriesBuilder.Points(rows, TrendMetric.MaxGpuMemTemp, false).Select(static p => p.Value).Should().Equal(78, 70);
|
||||
TrendSeriesBuilder.Points(rows, TrendMetric.PowerLimitShare, false).Select(static p => p.Value).Should().Equal(33, 10);
|
||||
TrendSeriesBuilder.Points(rows, TrendMetric.RenderScale, false).Single().Value.Should().BeApproximately(66.67, 0.01, "100 / upscale_ratio");
|
||||
TrendSeriesBuilder.Points(rows, TrendMetric.Efficiency, false).Select(static p => p.Value).Should().Equal(0.31);
|
||||
TrendSeriesBuilder.Points(rows, TrendMetric.VsyncShare, false).Select(static p => p.Value).Should().Equal(100);
|
||||
TrendSeriesBuilder.Points(rows, TrendMetric.FrameToFrame, false).Select(static p => p.Value).Should().Equal(0.9);
|
||||
TrendSeriesBuilder.Points(rows, TrendMetric.TimeBelowRefresh, false).Select(static p => p.Value).Should().Equal(3.5);
|
||||
|
||||
(TrendSeriesBuilder.UnitOf(TrendMetric.FrameToFrame), TrendSeriesBuilder.UnitOf(TrendMetric.GpuCoreClock), TrendSeriesBuilder.UnitOf(TrendMetric.Efficiency))
|
||||
.Should().Be((Strings.Trend_Unit_Ms, Strings.Trend_Unit_Mhz, Strings.Trend_Unit_FpsPerWatt));
|
||||
(TrendSeriesBuilder.UnitOf(TrendMetric.MaxGpuMemTemp), TrendSeriesBuilder.UnitOf(TrendMetric.TimeBelow60), TrendSeriesBuilder.UnitOf(TrendMetric.RenderScale))
|
||||
.Should().Be((Strings.Trend_Unit_Celsius, Strings.Trend_Unit_Percent, Strings.Trend_Unit_Percent));
|
||||
}
|
||||
}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using FluentAssertions;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using FrameLedger.Application.Recording;
|
||||
using FrameLedger.Application.Telemetry;
|
||||
using FrameLedger.Domain.Sessions;
|
||||
using FrameLedger.Shared;
|
||||
|
||||
namespace FrameLedger.Application.Tests.Recording;
|
||||
|
||||
/// <summary>
|
||||
/// beta.14 (D49), the Agent's half: pacing, what the presents asked for, the card's clocks and limits, and efficiency — each
|
||||
/// over the frames rule 6 allows, and null wherever nothing measured it.
|
||||
/// </summary>
|
||||
public sealed class PacingSyncAndEfficiencyAggregationTests
|
||||
{
|
||||
private const FlMeasured _presentOnly = FlMeasured.OutputRes | FlMeasured.PresentArgs;
|
||||
private const FlMeasured _counted = _presentOnly | FlMeasured.Fg | FlMeasured.FgCounts;
|
||||
|
||||
private static readonly FlWriterState _noFgRuntime = new() { Status = 1, HooksInstalledMask = 0x1, RuntimeCensus = (uint)FlRuntimeCensus.Ran };
|
||||
|
||||
private static readonly FlWriterState _slDlssG = new()
|
||||
{
|
||||
Status = 1,
|
||||
HooksInstalledMask = 0xB,
|
||||
RuntimeCensus = (uint)(FlRuntimeCensus.Ran | FlRuntimeCensus.SlInterposer | FlRuntimeCensus.SlDlssG),
|
||||
};
|
||||
|
||||
/// <summary>The card at 200 W: core clock 2500 MHz rising by one each tick, power-limited on every other tick.</summary>
|
||||
private static List<TelemetrySample> Card(int seconds) =>
|
||||
[
|
||||
.. SessionFixtures.Sensors(seconds).Select(static (s, i) => s with
|
||||
{
|
||||
Sample = s.Sample with
|
||||
{
|
||||
PowerW = 200,
|
||||
CoreClockMhz = 2500 + i,
|
||||
MemClockMhz = 14000,
|
||||
FanRpm = 1500,
|
||||
TempMemoryC = 70 + i,
|
||||
ThrottleReasons = i % 2 == 0 ? GpuLimitReasons.Power : 0u,
|
||||
},
|
||||
}),
|
||||
];
|
||||
|
||||
private static SessionRow Aggregate(List<FlFrameRecord> records, FlWriterState? writer = null, int? refreshHz = null, List<TelemetrySample>? sensors = null) =>
|
||||
SessionAggregator.Aggregate(SessionFixtures.Skeleton() with { DisplayMonitorHz = refreshHz },
|
||||
SessionFixtures.Hooked(records, writer) with { Sensors = sensors ?? [] }).Row;
|
||||
|
||||
[Fact]
|
||||
public void PacingIsOverTheFramesAndTheRefreshShareNeedsARate()
|
||||
{
|
||||
// 100 FPS held, on a 144 Hz display.
|
||||
List<FlFrameRecord> records = SessionFixtures.Stream(2_000, _presentOnly);
|
||||
|
||||
SessionRow row = Aggregate(records, refreshHz: 144);
|
||||
|
||||
(row.TimeBelow30Pct, row.TimeBelow60Pct).Should().Be((0.0, 0.0));
|
||||
row.TimeBelowRefreshPct.Should().BeApproximately(100, 1e-9, "100 presents a second never fed a 144 Hz display at its rate");
|
||||
row.FrametimeDeltaMeanMs.Should().Be(0, "every frame took 10 ms");
|
||||
Aggregate(records).TimeBelowRefreshPct.Should().BeNull("no refresh rate was read — a recovered session has none");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AGeneratingSessionIsBelowSixtyByItsApplicationFrames()
|
||||
{
|
||||
// ×2 counted: application frames at 50 FPS, presents at 100, on a 100 Hz display.
|
||||
SessionRow row = Aggregate(SessionFixtures.Stream(2_200, _counted, fgPerBatch: 2), _slDlssG, refreshHz: 100);
|
||||
|
||||
row.FgFactor.Should().BeApproximately(2, 0.01);
|
||||
row.TimeBelow60Pct.Should().BeApproximately(100, 1e-9, "the game ran at 50; the generated frames do not make it 60 (rule 6)");
|
||||
row.TimeBelowRefreshPct.Should().Be(0, "the display received a frame every refresh — over presents, as the display sees them");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheSyncSharesAndModeAreWhatThePresentsAskedFor()
|
||||
{
|
||||
SessionRow on = Aggregate([.. SessionFixtures.Stream(100, _presentOnly).Select(static r => r with { SyncInterval = 1 })]);
|
||||
(on.VsyncPresentPct, on.TearingAllowedPct, on.SyncIntervalMode).Should().Be((100.0, 0.0, "on"));
|
||||
|
||||
List<FlFrameRecord> menuThenGame = [.. SessionFixtures.Stream(100, _presentOnly)
|
||||
.Select(static (r, i) => r with { SyncInterval = (ushort)(i < 25 ? 1 : 0), PresentFlags = i < 25 ? 0u : 0x200u })];
|
||||
SessionRow mixed = Aggregate(menuThenGame);
|
||||
(mixed.VsyncPresentPct, mixed.TearingAllowedPct, mixed.SyncIntervalMode).Should().Be((25.0, 75.0, "mixed"));
|
||||
|
||||
Aggregate(SessionFixtures.Stream(100, _presentOnly)).SyncIntervalMode.Should().Be("off");
|
||||
|
||||
SessionRow vulkan = Aggregate(SessionFixtures.Stream(100, FlMeasured.OutputRes, api: FlApi.Vulkan));
|
||||
(vulkan.VsyncPresentPct, vulkan.TearingAllowedPct, vulkan.SyncIntervalMode)
|
||||
.Should().Be(((double?)null, (double?)null, (string?)null), "a Vulkan present carries no arguments: N/A, never 0 %");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void EfficiencyIsTheApplicationRateOverTheCardsPowerAndNeverTheDisplayedRate()
|
||||
{
|
||||
List<FlFrameRecord> plain = SessionFixtures.Stream(2_000, _presentOnly);
|
||||
|
||||
SessionRow noRuntime = Aggregate(plain, _noFgRuntime, sensors: Card(10));
|
||||
noRuntime.PresentedQualifier.Should().Be("no_fg_runtime");
|
||||
noRuntime.AppFramesPerJoule.Should().BeApproximately(0.5, 1e-9, "100 presents a second, every one an application frame, at 200 W");
|
||||
|
||||
Aggregate(plain, sensors: Card(10)).AppFramesPerJoule.Should().BeNull("census_not_run: the presents may include generated frames");
|
||||
Aggregate(plain, _slDlssG, sensors: Card(10)).AppFramesPerJoule.Should().BeNull("a frame-generation runtime was loaded and nothing counted");
|
||||
|
||||
SessionRow counted = Aggregate(SessionFixtures.Stream(2_200, _counted, fgPerBatch: 2), _slDlssG, sensors: Card(10));
|
||||
counted.AppFramesPerJoule.Should().BeApproximately(0.25, 1e-3, "50 application frames a second at 200 W — the 100 displayed are never the numerator");
|
||||
|
||||
Aggregate(plain, _noFgRuntime).AppFramesPerJoule.Should().BeNull("no power was read");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheCardsClocksFanMemoryTemperatureAndLimitsAreAggregatedOnBothTiers()
|
||||
{
|
||||
SessionRow tier2 = SessionAggregator.WithSensorAggregates(SessionFixtures.Skeleton(tier: CaptureTier.NotHooked), Card(4));
|
||||
|
||||
tier2.AvgGpuCoreClockMhz.Should().BeApproximately(2501.5, 1e-9);
|
||||
(tier2.AvgGpuMemClockMhz, tier2.AvgGpuFanRpm, tier2.MaxGpuMemTemp).Should().Be((14000.0, 1500.0, 73.0));
|
||||
(tier2.PowerLimitPct, tier2.ThermalLimitPct).Should().Be((50.0, 0.0));
|
||||
tier2.AppFramesPerJoule.Should().BeNull("a Tier-2 session has no frames");
|
||||
SensorSeriesStats.Parse(tier2.SensorStatsJson)[SensorSeriesCatalog.GpuPowerLimit].Mean.Should().Be(50, "the stored series' mean is the same share");
|
||||
|
||||
SessionRow noReasons = SessionAggregator.WithSensorAggregates(SessionFixtures.Skeleton(), SessionFixtures.Sensors(4));
|
||||
(noReasons.PowerLimitPct, noReasons.ThermalLimitPct, noReasons.AvgGpuCoreClockMhz)
|
||||
.Should().Be(((double?)null, (double?)null, (double?)null), "no layer reported a reason or a clock: N/A, never 'not limited'");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheStoredSeriesNamesNeverChangeAndBeta14AppendsSix() =>
|
||||
SensorSeriesCatalog.All.Select(static s => s.Name).Should().Equal(
|
||||
"gpu_temp", "gpu_hotspot", "gpu_load", "gpu_power", "vram_adapter", "cpu_load", "cpu_temp", "ram_mb",
|
||||
"game_vram_dedicated", "game_vram_shared", "game_ram_private", "game_ram_ws", "game_commit",
|
||||
"gpu_core_clock", "gpu_mem_clock", "gpu_fan", "gpu_mem_temp", "gpu_power_limit", "gpu_thermal_limit");
|
||||
|
||||
[Theory]
|
||||
[InlineData(0x2u, 100.0, 0.0)]
|
||||
[InlineData(0x1u, 0.0, 100.0)]
|
||||
[InlineData(0x3u, 100.0, 100.0)]
|
||||
[InlineData(0x8000_0000u, 0.0, 0.0)]
|
||||
[InlineData(0u, 0.0, 0.0)]
|
||||
public void EachLimitIsItsOwnBit(uint reasons, double power, double thermal) =>
|
||||
(GpuLimitReasons.PowerLimited(reasons), GpuLimitReasons.ThermalLimited(reasons)).Should().Be(((double?)power, (double?)thermal));
|
||||
|
||||
[Fact]
|
||||
public void ATickWithNoReasonsIsNoAnswer() =>
|
||||
(GpuLimitReasons.PowerLimited(null), GpuLimitReasons.ThermalLimited(null)).Should().Be(((double?)null, (double?)null));
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using FluentAssertions;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
using static FrameLedger.Domain.Tests.Metrics.SampleFixtures;
|
||||
|
||||
namespace FrameLedger.Domain.Tests.Metrics;
|
||||
|
||||
/// <summary>
|
||||
/// beta.14 (D49): time below 30 / 60 / the refresh rate, and frame to frame. The rule's margins are the point: a game held at
|
||||
/// 60 jitters around 16.67 ms, and "longer than 16.67 ms" read half its time as below 60 (the owner's GIRLS' FRONTLINE 2
|
||||
/// session: 50.0 %).
|
||||
/// </summary>
|
||||
public sealed class FramePacingTests
|
||||
{
|
||||
// A deterministic jitter around 60 FPS: mean 16.65 ms, four of eight values over 16.67.
|
||||
private static readonly double[] _jitterAt60 = [16.3, 16.9, 16.5, 17.0, 16.4, 16.8, 16.6, 16.7];
|
||||
|
||||
private static FrameTimeSeries Series(IEnumerable<double> frameTimesMs, IReadOnlySet<int>? gapBefore = null) =>
|
||||
FrameTimeSeries.From(FromFrameTimes(frameTimesMs), gapBefore, Frequency);
|
||||
|
||||
private static IEnumerable<double> Repeat(double[] cycle, int count) => Enumerable.Range(0, count).Select(i => cycle[i % cycle.Length]);
|
||||
|
||||
[Fact]
|
||||
public void AGameHeldAtSixtyIsNotBelowSixtyForItsJitter()
|
||||
{
|
||||
FrameTimeSeries held = Series(Repeat(_jitterAt60, 2_000));
|
||||
|
||||
FramePacing p = FramePacing.From(held, held, refreshHz: 60);
|
||||
|
||||
held.FrameTimesMs.Where(static ft => ft > 1000.0 / 60).Sum().Should().BeGreaterThan(0.4 * held.FrameTimesMs.Sum(),
|
||||
"the rule without margins would have read nearly half the time as below 60");
|
||||
p.TimeBelow60Pct.Should().Be(0);
|
||||
p.TimeBelowRefreshPct.Should().Be(0, "and a 60 Hz display fed at 60 is not below its refresh rate either");
|
||||
p.TimeBelow30Pct.Should().Be(0);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ASteadyRateUnderTheThresholdIsBelowItAllTheTime()
|
||||
{
|
||||
FramePacing p = FramePacing.From(Series(Enumerable.Repeat(17.5, 2_000)), null, null);
|
||||
|
||||
p.TimeBelow60Pct.Should().BeApproximately(100, 1e-9, "57 FPS held: the median of every nine is 5 % over 16.67 ms");
|
||||
p.TimeBelow30Pct.Should().Be(0);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AHitchCountsItsOwnTimeAndSpreadsToNoNeighbour()
|
||||
{
|
||||
double[] frames = [.. Enumerable.Repeat(16.0, 2_000)];
|
||||
frames[1_000] = 100;
|
||||
FrameTimeSeries s = Series(frames);
|
||||
|
||||
FramePacing p = FramePacing.From(s, null, null);
|
||||
|
||||
double expected = 100 * 100.0 / s.FrameTimesMs.Sum();
|
||||
p.TimeBelow30Pct.Should().BeApproximately(expected, 1e-9, "the 100 ms frame is below 30 on its own, and the median of nine ignores it");
|
||||
p.TimeBelow60Pct.Should().BeApproximately(expected, 1e-9, "its neighbours ran at 62.5 FPS and stay at it");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FrameToFrameIsTheMeanChangeBetweenNeighbours()
|
||||
{
|
||||
FramePacing p = FramePacing.From(Series(Repeat([10, 20], 2_000)), null, null);
|
||||
|
||||
p.FrameToFrameMeanMs.Should().BeApproximately(10, 1e-9);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void APairAcrossAGapIsNotAPair()
|
||||
{
|
||||
// 1,000 frames of 10 ms, a gap, 1,000 of 50 ms: every pair inside a run is equal; only the pair across the gap differs.
|
||||
double[] frames = [.. Enumerable.Repeat(10.0, 1_000), 999, .. Enumerable.Repeat(50.0, 1_000)];
|
||||
FrameTimeSeries s = Series(frames, new HashSet<int> { 1_001 });
|
||||
|
||||
FramePacing p = FramePacing.From(s, null, null);
|
||||
|
||||
s.FollowsBreak[1_000].Should().BeTrue();
|
||||
p.FrameToFrameMeanMs.Should().Be(0, "10 ms and 50 ms a gap apart are not neighbours");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheRefreshShareIsOverThePresentsTheDisplayReceived()
|
||||
{
|
||||
// ×2 frame generation on a 240 Hz display: application frames at 120 FPS, presents at 240.
|
||||
List<FrameSample> stream = FgStream(appFrames: 1_100, k: 2);
|
||||
FrameTimeSeries frames = FrameTimeSeries.ApplicationFrames(stream, null, Frequency);
|
||||
FrameTimeSeries presents = FrameTimeSeries.From(stream, null, Frequency);
|
||||
|
||||
FramePacing p = FramePacing.From(frames, presents, refreshHz: 240);
|
||||
|
||||
p.TimeBelowRefreshPct.Should().Be(0, "the display received a frame every refresh");
|
||||
p.TimeBelow60Pct.Should().Be(0);
|
||||
FramePacing.From(frames, frames, refreshHz: 240).TimeBelowRefreshPct.Should().BeApproximately(100, 1e-9,
|
||||
"over the application frames the same session would read as never reaching the refresh rate");
|
||||
FramePacing.From(frames, presents, refreshHz: null).TimeBelowRefreshPct.Should().BeNull("no refresh rate was read");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void UnderAThousandFramesNothingIsPublished()
|
||||
{
|
||||
FramePacing p = FramePacing.From(Series(Enumerable.Repeat(40.0, 999)), Series(Enumerable.Repeat(40.0, 999)), 60);
|
||||
|
||||
p.Should().Be(FramePacing.Empty, "the 1 % low's sufficiency rule: 1,000 frames");
|
||||
FramePacing.From(null, null, 60).Should().Be(FramePacing.Empty);
|
||||
}
|
||||
}
|
||||
@@ -181,6 +181,29 @@ public sealed class FrameTimeSeriesTests
|
||||
s.ExcludedNonPositive.Should().Be(1);
|
||||
}
|
||||
|
||||
/// <summary>beta.14: a kept interval after one left out is not the neighbour of the one kept before it.</summary>
|
||||
[Fact]
|
||||
public void AnIntervalAfterAGapOrAStoppedClockFollowsABreak()
|
||||
{
|
||||
List<FrameSample> stream = FromFrameTimes([10, 30, 10, 10]);
|
||||
stream.Add(stream[^1]);
|
||||
stream.Add(stream[^1] with { Qpc = stream[^1].Qpc + 10_000 });
|
||||
|
||||
FrameTimeSeries s = FrameTimeSeries.From(stream, new HashSet<int> { 2 }, Frequency);
|
||||
|
||||
s.FrameTimesMs.Should().Equal(10, 10, 10, 10);
|
||||
s.FollowsBreak.Should().Equal(false, true, false, true);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AnApplicationFrameAfterABrokenChainFollowsABreak()
|
||||
{
|
||||
FrameTimeSeries s = FrameTimeSeries.ApplicationFrames(FgStream(appFrames: 5, k: 2), new HashSet<int> { 5 }, Frequency);
|
||||
|
||||
s.EndingSample.Should().Equal(2, 4, 8);
|
||||
s.FollowsBreak.Should().Equal(false, false, true);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ApplicationFramesRefuseAZeroFrequency() =>
|
||||
FluentActions.Invoking(() => FrameTimeSeries.ApplicationFrames(FgStream(2, 2), null, 0)).Should().Throw<ArgumentOutOfRangeException>();
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using FluentAssertions;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
using static FrameLedger.Domain.Tests.Metrics.SampleFixtures;
|
||||
|
||||
namespace FrameLedger.Domain.Tests.Metrics;
|
||||
|
||||
/// <summary>beta.14 (D49): what the presents asked for — VSync and tearing — and nothing for presents that carried no arguments.</summary>
|
||||
public sealed class PresentArgsSharesTests
|
||||
{
|
||||
[Fact]
|
||||
public void TheSharesAreOfThePresentsThatCarriedTheirArguments()
|
||||
{
|
||||
List<FrameSample> stream =
|
||||
[
|
||||
Present(1) with { SyncInterval = 1 },
|
||||
Present(2) with { SyncInterval = 2 },
|
||||
Present(3) with { SyncInterval = 0, PresentFlags = PresentArgsShares.AllowTearing },
|
||||
Present(4) with { SyncInterval = 0, PresentFlags = PresentArgsShares.AllowTearing | 0x1 },
|
||||
// An OpenGL or Vulkan present: no arguments, so not counted at all.
|
||||
Present(5) with { Measured = MeasuredFields.OutputRes, SyncInterval = 0 },
|
||||
];
|
||||
|
||||
PresentArgsShares s = PresentArgsShares.From(stream);
|
||||
|
||||
(s.Count, s.VsyncCount, s.TearingCount).Should().Be((4, 2, 2));
|
||||
s.VsyncPct.Should().Be(50);
|
||||
s.TearingAllowedPct.Should().Be(50);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void PresentsWithoutArgumentsAnswerNothing()
|
||||
{
|
||||
PresentArgsShares s = PresentArgsShares.From([.. Stream(10).Select(static p => p with { Measured = MeasuredFields.OutputRes })]);
|
||||
|
||||
s.Count.Should().Be(0);
|
||||
s.VsyncPct.Should().BeNull("N/A, never a 0 % nobody measured");
|
||||
s.TearingAllowedPct.Should().BeNull();
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(120.0, 300.0, 0.4)]
|
||||
[InlineData(60.0, 150.0, 0.4)]
|
||||
public void EfficiencyIsFramesPerSecondOverWatts(double fps, double watts, double perJoule) =>
|
||||
EnergyEfficiency.FramesPerJoule(fps, watts).Should().BeApproximately(perJoule, 1e-12);
|
||||
|
||||
[Theory]
|
||||
[InlineData(null, 300.0)]
|
||||
[InlineData(120.0, null)]
|
||||
[InlineData(0.0, 300.0)]
|
||||
[InlineData(120.0, 0.0)]
|
||||
[InlineData(120.0, -1.0)]
|
||||
public void EfficiencyWithoutBothPositiveIsNull(double? fps, double? watts) =>
|
||||
EnergyEfficiency.FramesPerJoule(fps, watts).Should().BeNull();
|
||||
}
|
||||
@@ -179,6 +179,52 @@ public sealed class LedgerDatabaseTests
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Schema 0019 (2026-10-06, beta.14, D49): pacing, the present arguments, the card's clocks and limits and efficiency,
|
||||
/// thirteen REAL columns, ADD COLUMN only — a session written before has none of them and reads N/A, never a zero.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task ScriptNineteenAddsThePacingAndCardColumnsAndAnEarlierSessionHasNone()
|
||||
{
|
||||
await using LedgerFixture f = await LedgerFixture.OpenAsync();
|
||||
MigrationRunner.LatestVersion.Should().BeGreaterThanOrEqualTo(19);
|
||||
long gameId = (await new SqliteGameRepository(f.Db).EnsureAsync(
|
||||
new() { ExePath = @"C:\Games\P\p.exe", SizeBytes = 1, MtimeUnixMs = 2 }, "P", Ct).ConfigureAwait(true)).Id;
|
||||
long snapshotId = await new SqliteHardwareSnapshotRepository(f.Db).EnsureAsync(new HardwareSnapshot { GpuName = "g" }, DateTimeOffset.UnixEpoch, Ct)
|
||||
.ConfigureAwait(true);
|
||||
string path = f.Path;
|
||||
await f.Db.DisposeAsync().ConfigureAwait(true);
|
||||
var c18 = new SqliteConnection(new SqliteConnectionStringBuilder { DataSource = path, Pooling = false }.ToString());
|
||||
await using (c18.ConfigureAwait(true))
|
||||
{
|
||||
await c18.OpenAsync(Ct).ConfigureAwait(true);
|
||||
await RewindToAsync(c18, 18).ConfigureAwait(true);
|
||||
await c18.ExecuteAsync(new CommandDefinition(
|
||||
"INSERT INTO sessions (session_guid, game_id, snapshot_id, started_at, ended_at, duration_s, qpc_epoch, qpc_frequency, capture_tier, capture_mode, exit_status, frame_count, app_frame_count, displayed_frame_count, dropped_frames, avg_gpu_power_w) "
|
||||
+ "VALUES ('00000000-0000-0000-0000-000000000019', @gameId, @snapshotId, 0, 60000, 60, 0, 10000000, 1, 'attach', 'normal', 6000, 6000, 6000, 0, 250)",
|
||||
new { gameId, snapshotId }, cancellationToken: Ct)).ConfigureAwait(true);
|
||||
}
|
||||
|
||||
LedgerDatabase migrated = await LedgerDatabase.OpenAsync(path, ct: Ct).ConfigureAwait(true);
|
||||
await using (migrated.ConfigureAwait(true))
|
||||
{
|
||||
migrated.SchemaVersion.Should().Be(MigrationRunner.LatestVersion);
|
||||
IReadOnlyList<string> added = await migrated.ReadAsync(async (c, ct) => (IReadOnlyList<string>)[.. await c.QueryAsync<string>(new CommandDefinition(
|
||||
"SELECT name FROM pragma_table_info('sessions') WHERE name IN ('time_below_30_pct', 'time_below_60_pct', 'time_below_refresh_pct', "
|
||||
+ "'frametime_delta_mean_ms', 'vsync_present_pct', 'tearing_allowed_pct', 'avg_gpu_core_clock_mhz', 'avg_gpu_mem_clock_mhz', "
|
||||
+ "'avg_gpu_fan_rpm', 'max_gpu_mem_temp', 'power_limit_pct', 'thermal_limit_pct', 'app_frames_per_joule') AND type = 'REAL'",
|
||||
cancellationToken: ct)).ConfigureAwait(false)], Ct).ConfigureAwait(true);
|
||||
added.Should().HaveCount(13);
|
||||
SessionRow before = (await new SqliteSessionRepository(migrated).FindAsync(Guid.Parse("00000000-0000-0000-0000-000000000019"), Ct).ConfigureAwait(true))!;
|
||||
before.AvgGpuPowerW.Should().Be(250, "the row keeps everything it had");
|
||||
before.TimeBelow60Pct.Should().BeNull("a session recorded before beta.14 has no pacing, and reads N/A");
|
||||
before.VsyncPresentPct.Should().BeNull();
|
||||
before.AvgGpuCoreClockMhz.Should().BeNull();
|
||||
before.PowerLimitPct.Should().BeNull();
|
||||
before.AppFramesPerJoule.Should().BeNull("never computed after the fact from the stored averages");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Schema 0017 (2026-10-03, beta.11, D38): <c>games.ac_exception_trial_failed_at</c>, NULL on every row written before — a
|
||||
/// grant made under D33 keeps everything it had and carries no failed trial.
|
||||
|
||||
@@ -29,7 +29,7 @@ public sealed class SqliteSessionRepositoryTests
|
||||
return (gameId, snapshotId);
|
||||
}
|
||||
|
||||
private static SessionRow Row(long gameId, long snapshotId, Guid? guid = null, DateTimeOffset? started = null) => new()
|
||||
private static SessionRow Row(long gameId, long snapshotId, Guid? guid = null, DateTimeOffset? started = null) => WithSchema19(new()
|
||||
{
|
||||
SessionGuid = guid ?? Guid.NewGuid(),
|
||||
GameId = gameId,
|
||||
@@ -89,6 +89,24 @@ public sealed class SqliteSessionRepositoryTests
|
||||
GameMemoryProcesses = 1,
|
||||
GameMemorySource = "counters,ex2,held",
|
||||
SensorStatsJson = "{\"gpu_temp\":{\"N\":3,\"Mean\":61,\"Median\":61,\"Min\":60,\"Max\":62}}",
|
||||
});
|
||||
|
||||
/// <summary>Schema 0019 (beta.14, D49): every value distinct and non-null, for the same reason as the rest of <see cref="Row"/>.</summary>
|
||||
private static SessionRow WithSchema19(SessionRow row) => row with
|
||||
{
|
||||
TimeBelow30Pct = 1.25,
|
||||
TimeBelow60Pct = 9.5,
|
||||
TimeBelowRefreshPct = 42.75,
|
||||
FrametimeDeltaMeanMs = 0.875,
|
||||
VsyncPresentPct = 25.5,
|
||||
TearingAllowedPct = 74.5,
|
||||
AvgGpuCoreClockMhz = 2655.5,
|
||||
AvgGpuMemClockMhz = 15001,
|
||||
AvgGpuFanRpm = 1450.25,
|
||||
MaxGpuMemTemp = 78,
|
||||
PowerLimitPct = 33.25,
|
||||
ThermalLimitPct = 2.5,
|
||||
AppFramesPerJoule = 0.3125,
|
||||
};
|
||||
|
||||
private static FrameBlobs Frames(int n) => new()
|
||||
|
||||
+260
-46
@@ -4,7 +4,8 @@
|
||||
#Requires -Version 7.0
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Asserts every shipped native binary carries a populated VERSIONINFO block.
|
||||
Asserts every shipped binary carries a populated version block that names
|
||||
FrameLedger: the native ones, and since beta.14 the managed ones.
|
||||
|
||||
.DESCRIPTION
|
||||
docs/19_SAFETY_AND_ANTICHEAT.md §What we will never build: the DLL ships
|
||||
@@ -22,94 +23,307 @@
|
||||
Reads the BUILT BINARY rather than the .rc source: what ships is what
|
||||
matters, and a resource that fails to compile in would leave the source
|
||||
looking correct.
|
||||
|
||||
THE MANAGED HALF (beta.14, D50). Until beta.14 this read the five native
|
||||
binaries and nothing else, and the managed ones carried the SDK's defaults:
|
||||
the Agent's CompanyName and ProductName read "FrameLedger.Agent", each
|
||||
library's its own assembly name, and no managed binary had a copyright.
|
||||
Explorer's Properties > Details and Task Manager show these blocks, and the
|
||||
Agent is the process that injects. -ManagedDir names where the shipped
|
||||
managed binaries are (build.ps1: the App's and the Agent's build output;
|
||||
release.yml: out/app) and -ExpectedProductVersion the version they must
|
||||
carry (the VERSION file's in the gate, the tag's in a release) — required,
|
||||
because a comparison with nothing passes everything. Every binary one run
|
||||
reads must carry the SAME LegalCopyright, so the managed copyright
|
||||
(Directory.Build.props) and the native one (FL_COPYRIGHT in
|
||||
src/native/CMakeLists.txt) cannot drift apart.
|
||||
|
||||
A managed .exe is the SDK's apphost, which carries a COPY of its assembly's
|
||||
block: its OriginalFilename is the assembly's (FrameLedger.dll), and that is
|
||||
what is asserted. An apphost the block was never copied into carries the
|
||||
host template's block or none, and is red.
|
||||
|
||||
TWO INVOCATIONS, BOTH WIRED IN build.ps1. -SelfTest runs the rules against
|
||||
synthetic blocks — ten cases, nine of which must come back RED, each for the
|
||||
reason it names — and the live pass reads the binaries.
|
||||
#>
|
||||
[CmdletBinding()]
|
||||
[CmdletBinding(DefaultParameterSetName = 'Live')]
|
||||
param(
|
||||
[Parameter(ParameterSetName = 'Live')]
|
||||
[string]$BuildDir = (Join-Path (Split-Path $PSScriptRoot -Parent) 'build/native/x64-release'),
|
||||
|
||||
# P4 PR-5: the one version source (docs/12_BUILD.md §Version). Every binary's
|
||||
# FileVersion must be this, with the fourth component the .rc template adds.
|
||||
# Default: the repository's VERSION file; an empty string skips the comparison.
|
||||
[Parameter(ParameterSetName = 'Live')]
|
||||
[string]$ExpectedVersion = $(
|
||||
$f = Join-Path (Split-Path $PSScriptRoot -Parent) 'VERSION'
|
||||
if (Test-Path $f) { (Get-Content $f -Raw).Trim() } else { '' }
|
||||
)
|
||||
),
|
||||
|
||||
# beta.14 (D50): the directories that hold the shipped managed binaries,
|
||||
# searched recursively, the newest copy of each name read. None: the native
|
||||
# half only, as before beta.14.
|
||||
[Parameter(ParameterSetName = 'Live')]
|
||||
[string[]]$ManagedDir = @(),
|
||||
|
||||
# beta.14: the ProductVersion every managed binary must carry — the full
|
||||
# version, a pre-release's tag included. The managed half is red without one.
|
||||
[Parameter(ParameterSetName = 'Live')]
|
||||
[string]$ExpectedProductVersion = '',
|
||||
|
||||
# beta.14: the managed half alone, for build.ps1 -SkipNative, which builds no
|
||||
# native binary to read.
|
||||
[Parameter(ParameterSetName = 'Live')]
|
||||
[switch]$ManagedOnly,
|
||||
|
||||
[Parameter(Mandatory, ParameterSetName = 'SelfTest')]
|
||||
[switch]$SelfTest
|
||||
)
|
||||
|
||||
Set-StrictMode -Version Latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
# Every binary that can end up inside a process we do not own.
|
||||
$required = @('FrameLedger.Overlay.dll', 'FrameLedger.VkLayer.dll', 'FrameLedger.Guard.dll', 'FrameLedger.NvapiBridge.dll', 'FrameLedger.ProcessStats.dll')
|
||||
$nativeBinaries = @('FrameLedger.Overlay.dll', 'FrameLedger.VkLayer.dll', 'FrameLedger.Guard.dll', 'FrameLedger.NvapiBridge.dll', 'FrameLedger.ProcessStats.dll')
|
||||
|
||||
if (-not (Test-Path $BuildDir)) {
|
||||
Write-Host "VERSIONINFO CHECK FAILED: no native build at $BuildDir" -ForegroundColor Red
|
||||
Write-Host ' Build first: ./build.ps1 native' -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
# beta.14 (D50): the managed binaries out/app ships — both entry points, apphost
|
||||
# and assembly, and the four libraries they load.
|
||||
$managedBinaries = @('FrameLedger.exe', 'FrameLedger.dll', 'FrameLedger.Agent.exe', 'FrameLedger.Agent.dll',
|
||||
'FrameLedger.Domain.dll', 'FrameLedger.Application.dll', 'FrameLedger.Infrastructure.dll', 'FrameLedger.Shared.dll')
|
||||
|
||||
$errors = [System.Collections.Generic.List[string]]::new()
|
||||
$checked = 0
|
||||
# The rules for ONE block. Every string it emits is a problem; none is a pass.
|
||||
# $Block carries FileVersionInfo's field names: a real FileVersionInfo in the
|
||||
# live pass, a [pscustomobject] in the self-test.
|
||||
function Test-Block {
|
||||
param([string]$Name, [ValidateSet('native', 'managed')][string]$Kind, $Block, [string]$ExpectedVersion, [string]$ExpectedProductVersion)
|
||||
|
||||
foreach ($name in $required) {
|
||||
$file = Get-ChildItem -Path $BuildDir -Filter $name -Recurse -File -ErrorAction SilentlyContinue |
|
||||
Select-Object -First 1
|
||||
if (-not $file) {
|
||||
$errors.Add("$name was not produced by the native build — cannot verify it is identifiable")
|
||||
continue
|
||||
}
|
||||
|
||||
$vi = $file.VersionInfo
|
||||
# A missing resource yields an object whose fields are all null/empty, not
|
||||
# an exception. "No version block" and "a version block full of blanks" are
|
||||
# the same failure for our purposes: neither identifies the binary.
|
||||
$fields = [ordered]@{
|
||||
CompanyName = $vi.CompanyName
|
||||
ProductName = $vi.ProductName
|
||||
FileDescription = $vi.FileDescription
|
||||
FileVersion = $vi.FileVersion
|
||||
}
|
||||
$missing = @($fields.GetEnumerator() | Where-Object { [string]::IsNullOrWhiteSpace($_.Value) } |
|
||||
ForEach-Object { $_.Key })
|
||||
|
||||
if ($missing.Count -gt 0) {
|
||||
$errors.Add("$name has no usable VERSIONINFO — empty: $($missing -join ', ')")
|
||||
continue
|
||||
# the same failure for our purposes: neither identifies the binary. A
|
||||
# copyright of one space is what every managed binary carried until beta.14.
|
||||
$empty = @('CompanyName', 'ProductName', 'FileDescription', 'FileVersion', 'LegalCopyright' |
|
||||
Where-Object { [string]::IsNullOrWhiteSpace($Block.$_) })
|
||||
if ($empty.Count -gt 0) {
|
||||
"$Name has no usable version block — empty: $($empty -join ', ')"
|
||||
return
|
||||
}
|
||||
|
||||
# The product name is the one an anti-cheat vendor greps for. A binary that
|
||||
# calls itself something else is the beginning of hiding.
|
||||
if ($vi.ProductName -ne 'FrameLedger') {
|
||||
$errors.Add("$name ProductName is '$($vi.ProductName)', expected 'FrameLedger' — the binary must name the project it belongs to")
|
||||
# calls itself something else is the beginning of hiding. The company is the
|
||||
# same name (FL_COMPANY_NAME, Directory.Build.props).
|
||||
foreach ($field in 'CompanyName', 'ProductName') {
|
||||
if ($Block.$field -cne 'FrameLedger') {
|
||||
"$Name $field is '$($Block.$field)', expected 'FrameLedger' — the binary must name the project it belongs to"
|
||||
}
|
||||
}
|
||||
|
||||
# ABSENT is the case this check exists for, and it used to be the one case
|
||||
# that passed. `if ($vi.OriginalFilename -and ...)` short-circuits on an empty
|
||||
# field, so a binary carrying NO OriginalFilename at all — the least
|
||||
# identifiable state there is — sailed through a gate whose whole purpose is
|
||||
# that our binaries name themselves.
|
||||
if ([string]::IsNullOrWhiteSpace($vi.OriginalFilename)) {
|
||||
$errors.Add("$name carries no OriginalFilename — an unnamed binary is the state this check exists to prevent")
|
||||
} elseif ($vi.OriginalFilename -ne $name) {
|
||||
$errors.Add("$name OriginalFilename is '$($vi.OriginalFilename)' — a renamed binary is harder to identify, which is the wrong direction")
|
||||
$apphost = $Kind -eq 'managed' -and $Name.EndsWith('.exe', [StringComparison]::OrdinalIgnoreCase)
|
||||
$original = if ($apphost) { [IO.Path]::ChangeExtension($Name, '.dll') } else { $Name }
|
||||
if ([string]::IsNullOrWhiteSpace($Block.OriginalFilename)) {
|
||||
"$Name carries no OriginalFilename — an unnamed binary is the state this check exists to prevent"
|
||||
}
|
||||
elseif ($Block.OriginalFilename -ne $original) {
|
||||
if ($apphost) {
|
||||
"$Name OriginalFilename is '$($Block.OriginalFilename)', expected '$original' — an apphost carries a copy of its own assembly's block, so any other is not this binary's"
|
||||
}
|
||||
else {
|
||||
"$Name OriginalFilename is '$($Block.OriginalFilename)' — a renamed binary is harder to identify, which is the wrong direction"
|
||||
}
|
||||
}
|
||||
|
||||
# The version the binary says is the version the repository says (P4 PR-5). A
|
||||
# native block reading 0.0.0 beside a managed assembly reading 0.1.0 is two
|
||||
# products claiming to be one, and the release workflow would ship it.
|
||||
if ($ExpectedVersion -and $vi.FileVersion.Trim() -ne "$ExpectedVersion.0") {
|
||||
$errors.Add("$name FileVersion is '$($vi.FileVersion)', expected '$ExpectedVersion.0' — the VERSION file is the one source (12_BUILD §Version)")
|
||||
if ($ExpectedVersion -and $Block.FileVersion.Trim() -ne "$ExpectedVersion.0") {
|
||||
"$Name FileVersion is '$($Block.FileVersion)', expected '$ExpectedVersion.0' — the VERSION file is the one source (12_BUILD §Version)"
|
||||
}
|
||||
|
||||
++$checked
|
||||
Write-Host (" {0,-28} {1} / {2} / v{3}" -f $name, $vi.CompanyName, $vi.ProductName, $vi.FileVersion) -ForegroundColor DarkGray
|
||||
# The managed ProductVersion is the full version About, Hello and the bug
|
||||
# bundle print — a pre-release's tag included (12_BUILD §Version).
|
||||
if ($Kind -eq 'managed') {
|
||||
if ([string]::IsNullOrWhiteSpace($ExpectedProductVersion)) {
|
||||
"$Name has no -ExpectedProductVersion to compare its ProductVersion with — a comparison with nothing passes everything"
|
||||
}
|
||||
elseif ($Block.ProductVersion -cne $ExpectedProductVersion) {
|
||||
"$Name ProductVersion is '$($Block.ProductVersion)', expected '$ExpectedProductVersion'"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# One product, one copyright (D50): every block one run read carries the same line.
|
||||
function Test-OneCopyright {
|
||||
param([System.Collections.IDictionary]$Blocks)
|
||||
$lines = [System.Collections.Generic.Dictionary[string, System.Collections.Generic.List[string]]]::new([StringComparer]::Ordinal)
|
||||
foreach ($e in $Blocks.GetEnumerator()) {
|
||||
$line = [string]$e.Value.LegalCopyright
|
||||
if ([string]::IsNullOrWhiteSpace($line)) { continue } # Test-Block reported it
|
||||
if (-not $lines.ContainsKey($line)) { $lines[$line] = [System.Collections.Generic.List[string]]::new() }
|
||||
$lines[$line].Add([string]$e.Key)
|
||||
}
|
||||
if ($lines.Count -gt 1) {
|
||||
"the binaries carry $($lines.Count) different copyright lines where one product has one (Directory.Build.props, FL_COPYRIGHT in src/native/CMakeLists.txt): " +
|
||||
(@($lines.GetEnumerator() | ForEach-Object { "'$($_.Key)' in $($_.Value -join ', ')" }) -join '; ')
|
||||
}
|
||||
}
|
||||
|
||||
if ($SelfTest) {
|
||||
$copyright = 'Copyright (C) 2026 poli0981. GPL-3.0-only with additional terms: see NOTICE'
|
||||
$script:cases = 0
|
||||
$script:red = 0
|
||||
$failures = [System.Collections.Generic.List[string]]::new()
|
||||
|
||||
function New-Block([string]$Original, [string]$Description = 'FrameLedger', [string]$ProductVersion = '0.1.0-beta.14') {
|
||||
[pscustomobject][ordered]@{
|
||||
CompanyName = 'FrameLedger'; ProductName = 'FrameLedger'; FileDescription = $Description; FileVersion = '0.1.0.0'
|
||||
ProductVersion = $ProductVersion; OriginalFilename = $Original; LegalCopyright = $copyright
|
||||
}
|
||||
}
|
||||
|
||||
# A release's shape, each case changing one thing: a native binary, and both
|
||||
# entry points' apphost and assembly.
|
||||
function New-Tree {
|
||||
[ordered]@{
|
||||
'native:FrameLedger.Overlay.dll' = New-Block 'FrameLedger.Overlay.dll' 'FrameLedger Overlay' '0.1.0.0'
|
||||
'managed:FrameLedger.exe' = New-Block 'FrameLedger.dll'
|
||||
'managed:FrameLedger.dll' = New-Block 'FrameLedger.dll'
|
||||
'managed:FrameLedger.Agent.exe' = New-Block 'FrameLedger.Agent.dll' 'FrameLedger Agent'
|
||||
'managed:FrameLedger.Agent.dll' = New-Block 'FrameLedger.Agent.dll' 'FrameLedger Agent'
|
||||
}
|
||||
}
|
||||
|
||||
# RED must be red for the reason the case names: a fixture typo that empties a
|
||||
# field would otherwise make every RED case pass for the wrong one.
|
||||
function Invoke-Case([string]$Name, [string]$Because, [scriptblock]$Change, [string]$ProductVersion = '0.1.0-beta.14') {
|
||||
$script:cases++
|
||||
$tree = New-Tree
|
||||
& $Change $tree
|
||||
$blocks = [ordered]@{}
|
||||
$problems = @(foreach ($e in $tree.GetEnumerator()) {
|
||||
$kind, $binary = $e.Key -split ':', 2
|
||||
Test-Block $binary $kind $e.Value '0.1.0' $ProductVersion
|
||||
$blocks[$binary] = $e.Value
|
||||
})
|
||||
$problems += @(Test-OneCopyright $blocks)
|
||||
$expectRed = [bool]$Because
|
||||
$isRed = $problems.Count -gt 0
|
||||
if ($isRed) { $script:red++ }
|
||||
if ($isRed -ne $expectRed) {
|
||||
$failures.Add("$Name — expected $(if ($expectRed) { 'RED' } else { 'GREEN' }), got $(if ($isRed) { 'RED' } else { 'GREEN' }): $($problems -join '; ')")
|
||||
}
|
||||
elseif ($expectRed -and -not ($problems | Where-Object { $_.Contains($Because, [StringComparison]::Ordinal) })) {
|
||||
$failures.Add("$Name — RED, but not for '$Because': $($problems -join '; ')")
|
||||
}
|
||||
else {
|
||||
Write-Host " ok $Name $(if ($isRed) { 'FAILS' } else { 'passes' })" -ForegroundColor DarkGray
|
||||
}
|
||||
}
|
||||
|
||||
# GREEN FIRST: every RED case below is satisfied by a check that refuses
|
||||
# everything, so one arrangement must pass or the suite proves nothing works.
|
||||
Invoke-Case 'a release built as beta.14 builds it' '' { }
|
||||
Invoke-Case 'the Agent named as beta.13 named it' "CompanyName is 'FrameLedger.Agent'" {
|
||||
param($t)
|
||||
foreach ($k in 'managed:FrameLedger.Agent.exe', 'managed:FrameLedger.Agent.dll') {
|
||||
$t[$k].CompanyName = 'FrameLedger.Agent'; $t[$k].ProductName = 'FrameLedger.Agent'; $t[$k].FileDescription = 'FrameLedger.Agent'
|
||||
}
|
||||
}
|
||||
Invoke-Case 'a managed binary whose copyright is one space' 'empty: LegalCopyright' { param($t) $t['managed:FrameLedger.dll'].LegalCopyright = ' ' }
|
||||
Invoke-Case 'a managed copyright that is not the native one' 'different copyright lines' {
|
||||
param($t)
|
||||
$t['managed:FrameLedger.exe'].LegalCopyright = 'Copyright (C) 2026 poli0981'
|
||||
$t['managed:FrameLedger.dll'].LegalCopyright = 'Copyright (C) 2026 poli0981'
|
||||
}
|
||||
Invoke-Case 'a native company that is not FrameLedger' "CompanyName is 'poli0981'" { param($t) $t['native:FrameLedger.Overlay.dll'].CompanyName = 'poli0981' }
|
||||
Invoke-Case 'an apphost carrying another assembly''s block' "OriginalFilename is 'FrameLedger.dll', expected 'FrameLedger.Agent.dll'" {
|
||||
param($t) $t['managed:FrameLedger.Agent.exe'].OriginalFilename = 'FrameLedger.dll'
|
||||
}
|
||||
Invoke-Case 'an apphost its block was never copied into' 'no usable version block' {
|
||||
param($t)
|
||||
$b = $t['managed:FrameLedger.exe']
|
||||
foreach ($p in @($b.PSObject.Properties.Name)) { $b.$p = $null }
|
||||
}
|
||||
Invoke-Case 'a published assembly without the release''s version' "ProductVersion is '0.1.0', expected '0.1.0-beta.14'" { param($t) $t['managed:FrameLedger.dll'].ProductVersion = '0.1.0' }
|
||||
Invoke-Case 'a FileVersion that is not the VERSION file''s' "FileVersion is '0.0.0.0'" { param($t) $t['native:FrameLedger.Overlay.dll'].FileVersion = '0.0.0.0' }
|
||||
Invoke-Case 'a managed half with no version to compare with' 'no -ExpectedProductVersion' { } ''
|
||||
|
||||
if ($failures.Count -gt 0) {
|
||||
Write-Host 'VERSIONINFO SELF-TEST FAILED' -ForegroundColor Red
|
||||
$failures | ForEach-Object { Write-Host " - $_" -ForegroundColor Red }
|
||||
exit 1
|
||||
}
|
||||
Write-Host "versioninfo self-test: $($script:cases) cases, $($script:red) red, each for its own reason" -ForegroundColor Green
|
||||
exit 0
|
||||
}
|
||||
|
||||
$errors = [System.Collections.Generic.List[string]]::new()
|
||||
$blocks = [ordered]@{}
|
||||
$nativeRead = 0
|
||||
$managedRead = 0
|
||||
|
||||
if (-not $ManagedOnly) {
|
||||
if (-not (Test-Path $BuildDir)) {
|
||||
Write-Host "VERSIONINFO CHECK FAILED: no native build at $BuildDir" -ForegroundColor Red
|
||||
Write-Host ' Build first: ./build.ps1 native' -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
|
||||
foreach ($name in $nativeBinaries) {
|
||||
$file = Get-ChildItem -Path $BuildDir -Filter $name -Recurse -File -ErrorAction SilentlyContinue |
|
||||
Select-Object -First 1
|
||||
if (-not $file) {
|
||||
$errors.Add("$name was not produced by the native build — cannot verify it is identifiable")
|
||||
continue
|
||||
}
|
||||
|
||||
$vi = $file.VersionInfo
|
||||
@(Test-Block $name 'native' $vi $ExpectedVersion '') | ForEach-Object { $errors.Add($_) }
|
||||
$blocks[$name] = $vi
|
||||
++$nativeRead
|
||||
Write-Host (" {0,-32} {1} / {2} / v{3}" -f $name, $vi.CompanyName, $vi.ProductName, $vi.FileVersion) -ForegroundColor DarkGray
|
||||
}
|
||||
}
|
||||
|
||||
# `pwsh -File` hands `-ManagedDir a,b` over as ONE string; split it as the in-process call would have.
|
||||
$ManagedDir = @($ManagedDir | ForEach-Object { $_ -split ',' } | Where-Object { $_ })
|
||||
foreach ($dir in $ManagedDir | Where-Object { -not (Test-Path $_) }) {
|
||||
$errors.Add("no managed build at $dir — build first: ./build.ps1 managed")
|
||||
}
|
||||
|
||||
if ($ManagedDir.Count -gt 0) {
|
||||
foreach ($name in $managedBinaries) {
|
||||
$file = @($ManagedDir | Where-Object { Test-Path $_ } |
|
||||
ForEach-Object { Get-ChildItem -Path $_ -Filter $name -Recurse -File -ErrorAction SilentlyContinue }) |
|
||||
Sort-Object LastWriteTimeUtc -Descending | Select-Object -First 1
|
||||
if (-not $file) {
|
||||
$errors.Add("$name is not under $($ManagedDir -join ', ') — cannot verify it is identifiable")
|
||||
continue
|
||||
}
|
||||
|
||||
$vi = $file.VersionInfo
|
||||
@(Test-Block $name 'managed' $vi $ExpectedVersion $ExpectedProductVersion) | ForEach-Object { $errors.Add($_) }
|
||||
$blocks[$name] = $vi
|
||||
++$managedRead
|
||||
Write-Host (" {0,-32} {1} / {2} / v{3}" -f $name, $vi.FileDescription, $vi.ProductName, $vi.ProductVersion) -ForegroundColor DarkGray
|
||||
}
|
||||
}
|
||||
elseif ($ManagedOnly) {
|
||||
$errors.Add('-ManagedOnly without -ManagedDir reads nothing, and a check of nothing is not a pass')
|
||||
}
|
||||
|
||||
@(Test-OneCopyright $blocks) | ForEach-Object { $errors.Add($_) }
|
||||
|
||||
if ($errors.Count -gt 0) {
|
||||
Write-Host 'VERSIONINFO CHECK FAILED' -ForegroundColor Red
|
||||
$errors | ForEach-Object { Write-Host " - $_" -ForegroundColor Red }
|
||||
Write-Host ' docs/19_SAFETY_AND_ANTICHEAT.md requires every shipped native binary to identify itself.' -ForegroundColor Red
|
||||
Write-Host ' docs/19_SAFETY_AND_ANTICHEAT.md requires every shipped binary to identify itself (12_BUILD §Version).' -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host "versioninfo OK — $checked native binary(ies) identify themselves" -ForegroundColor Green
|
||||
Write-Host "versioninfo OK — $nativeRead native and $managedRead managed binary(ies) identify themselves, one copyright" -ForegroundColor Green
|
||||
exit 0
|
||||
Reference in new issue
Block a user