Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
338c4f899e
|
No files matched your search
+5
-2
@@ -29,7 +29,7 @@ notices Windows shows for it. It draws nothing inside a game, so it cannot make
|
||||
|
||||
| Keys | What they do |
|
||||
|---|---|
|
||||
| **Ctrl+1** … **Ctrl+5** (also with the numeric keypad) | Open Dashboard, Games, Compare, Logs and Settings, and move the keyboard into that page; a screen reader hears its title. |
|
||||
| **Ctrl+1** … **Ctrl+5** (also with the numeric keypad) | Open Dashboard, Games, Compare, Logs and Settings, and move the keyboard into that page; a screen reader hears its title. **Ctrl+6** opens Advanced the same way while Advanced metrics is switched on, and does nothing while it is off. |
|
||||
| **Alt** or **F10**, then the arrow keys and **Enter** | Move to the menus. **Alt** with a menu's underlined letter opens it (*File*, *Tools*, *Help* in English). |
|
||||
| **Tab** and **Shift+Tab** | Move through a page or a dialog in reading order. |
|
||||
| The **arrow keys**, **Home**, **End**, **Page Up**, **Page Down** | Move inside a list or a table — a game's sessions, the games list, the Compare list, the import checklist. |
|
||||
@@ -96,7 +96,7 @@ from the same translations. The documents — the user guide, this page, the leg
|
||||
into a screen; every text reads against its background in both themes and after a theme switch, and under Windows'
|
||||
four contrast themes and two edited ones is drawn in the theme's own colours at 4.5:1 or better; **Esc** closes the
|
||||
open dialog without an answer, and a dialog gives the focus back; **Ctrl+1** … **Ctrl+5** open the pages in their
|
||||
order and move the keyboard into them; a page slides in only while Windows' animation effects are on; the program
|
||||
order and move the keyboard into them, and **Ctrl+6** the Advanced page only while its option is on; a page slides in only while Windows' animation effects are on; the program
|
||||
declares it follows each screen's scaling.
|
||||
- **By hand**: the owner's pass of 2026-11-09 above, repeated for each release that changes a screen.
|
||||
- **Not tested yet**: NVDA, JAWS, Voice Access, touch, Windows 10, and other people's PCs. They should work through the
|
||||
@@ -107,6 +107,9 @@ from the same translations. The documents — the user guide, this page, the leg
|
||||
|
||||
Each one with what to do instead. A barrier that is not on this list is worth reporting.
|
||||
|
||||
- **The Advanced page's "This PC" does not announce its readings as they change.** They change every second; a
|
||||
screen reader reads the table when you move through it, and each row says its reading, its value and the time it
|
||||
was read at.
|
||||
- **A chart's points cannot be read one by one.** A screen reader hears the chart's name and where its numbers are:
|
||||
a session's figures and *Statistics per series* in its summary, the table under the Compare chart, the Sessions table
|
||||
and the list of changes under a trend chart, and **File ▸ Export ▸ Session CSV** or **Session JSON**.
|
||||
|
||||
@@ -100,6 +100,15 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
read only while the page is open" works without anything telling the agent that a page closed. With Advanced
|
||||
metrics off it answers that it is off, and nothing is read. On the App's side `AdvancedMachineFeed` asks once a
|
||||
second while a page watches it and keeps each value with the moment it was read.
|
||||
- **The Advanced page.** While Advanced metrics is on, **Advanced** is the last item in the list on the left, and
|
||||
**Ctrl+6** opens it. **This PC** shows what the graphics driver and the sensors say right now — the card's
|
||||
firmware, cores and memory, what each display can do, the driver's settings, and every reading with the time it
|
||||
was read at and a chart of its last five minutes. It is read only while the page is open, and is not stored.
|
||||
**Session** shows what a session recorded with the option on kept: the PC as it was, what belonged to that session,
|
||||
the lowest, average and highest of each reading, and a chart over the session. **Sources** lists every reading
|
||||
FrameLedger knows of and, for each one it does not read, why — the agent is not an administrator, PawnIO is not
|
||||
installed, it comes with a later release, or it is never read. A session's summary has an **Advanced metrics…**
|
||||
button that opens that session there. In `en`, `vi` and `ja`; the user guide has a page for it.
|
||||
- **The terms window shows the Privacy Policy 2.15 and the Disclaimer 2.15 once.** The Privacy Policy names what
|
||||
Advanced metrics reads and stores, only while it is on, and what it never reads: a serial number, a display's
|
||||
identification data, a list of other programs. The Disclaimer's two sentences about PawnIO and about running the
|
||||
|
||||
@@ -140,7 +140,9 @@ src/
|
||||
# is built as of 2026-09-14 (PR-5 Games/Dashboard, PR-6 summary +
|
||||
# charts, PR-7 trend/compare, PR-8a Settings/safety notices/Logs/
|
||||
# --diag, PR-8b tray + the Agent's maintenance flags, PR-9 first run
|
||||
# + Legal Gate FR-11); Strings.resx en/vi/ja. `--data-dir <copy>`
|
||||
# + Legal Gate FR-11); Strings.resx en/vi/ja. The Advanced page
|
||||
# (2026-11-11, D101/D105: Pages/AdvancedPage, there and on Ctrl+6 only
|
||||
# while `telemetry.advanced` is on - 08_UI §Advanced). `--data-dir <copy>`
|
||||
# (beta.15, D52) = a VIEWER: no Agent started or contacted,
|
||||
# nothing on the PC changed, the profile's own folder refused
|
||||
FrameLedger.CaptureHost/ # UNSHIPPED, and since P2 PR-C (2026-09-09) a THIN SHELL: verbs,
|
||||
|
||||
+5
-1
@@ -191,7 +191,11 @@ shown is recorded too, from outside the game. ([Capture](docs/04_CAPTURE.md))
|
||||
same.
|
||||
- **None of these readings has been checked against another tool**, and they are **not in an export or a bug
|
||||
report**.
|
||||
- **No screen shows them yet** — the page comes with the release.
|
||||
- **The Advanced page's "This PC" is read only while that page is open** (or a game is being recorded), is not
|
||||
stored, and keeps five minutes of each reading in memory. A reading with more than eight parts — every
|
||||
processor core — is drawn as its lowest, average and highest; the table lists each part.
|
||||
- **A session's chart needs its per-second series**, which are kept for the newest sessions of each game only
|
||||
(Settings ▸ Recording); an older session keeps its statistics.
|
||||
|
||||
([Telemetry](docs/18_GPU_VENDOR_APIS.md#advanced-metrics-owner-decisions-d101d108-2026-11-11))
|
||||
- **Whether the graphics card was held back by its power limit or by heat** (since 0.1.0-beta.14) is known only on
|
||||
|
||||
@@ -107,8 +107,8 @@ app too (Help ▸ User guide, Help ▸ Limitations, Help ▸ Accessibility), and
|
||||
> clocks, fans, voltages and power in detail, what a display can do, the driver's settings for the game — as they
|
||||
> report it: NVIDIA's figures once a second, the sensor library's every five seconds. None of these readings has
|
||||
> been checked against another tool. The processor's, the memory's and the motherboard's need the Agent as
|
||||
> administrator with PawnIO and have never been read on real hardware; a drive's temperature is not read. No
|
||||
> screen of the App shows them yet.
|
||||
> administrator with PawnIO and have never been read on real hardware; a drive's temperature is not read. The
|
||||
> Advanced page shows them as they were stored, and what the PC reads at the moment only while that page is open.
|
||||
> - **Safety:** every pre-injection check runs before injection, including the signed-by-a-known-vendor
|
||||
> half of the suspicious-module rule. During every capture the Agent re-runs the checks every 30 s and
|
||||
> stops capturing on a refusal: a Direct3D or OpenGL game's hooks are removed, and the Vulkan layer
|
||||
|
||||
+45
-4
@@ -38,7 +38,7 @@ Compare showed the icon alone)*. Light/Dark/System themes via `ApplicationThemeM
|
||||
> a refusal is a message box and exit 2. The viewer's folder is its own single-instance key, so it runs beside the
|
||||
> profile's App. D6 is unchanged: the Agent's `--data-dir` stays under `--console`.
|
||||
|
||||
**NavigationView items:** Dashboard · Games · Compare · Logs — `Settings` lives in `FooterMenuItems`. Icons from `SymbolIcon` (Fluent System Icons; pick from the `SymbolRegular` enum — see 16 §Icons).
|
||||
**NavigationView items:** Dashboard · Games · Compare · Logs · *Advanced* (since 2026-11-11, D105: last in `MenuItems`, `Visibility` bound to `Services.AdvancedOption.IsOn` — there only while `telemetry.advanced` is on, §Advanced) — `Settings` lives in `FooterMenuItems`. Icons from `SymbolIcon` (Fluent System Icons; pick from the `SymbolRegular` enum — see 16 §Icons).
|
||||
|
||||
**Menu bar**
|
||||
- **File:** Add game… · Import library (Steam / GOG / Epic / itch.io / Xbox *— since beta.33*) · Export ▸ (Session CSV / Session JSON / Chart PNG) · Exit
|
||||
@@ -850,13 +850,54 @@ Tail view of `ui-*.log` / `agent-*.log` (toggle), level filter, search (`ui:Auto
|
||||
> The status line says shown / total / file. Tests: `LogTailTests`, `LogsViewModelTests`, and the page renders in
|
||||
> `PagesLoadTests`.
|
||||
|
||||
### Advanced
|
||||
> **Built 2026-11-11 (Advanced PR-7; owner decisions D101, D105, D107).** `Pages/AdvancedPage` over
|
||||
> `ViewModels/AdvancedViewModel`, a `TabControl` of three tabs by what a value belongs to:
|
||||
>
|
||||
> - **This PC** — `Services.AdvancedMachineFeed`, watched between `Loaded` and `Unloaded` and while the page is visible
|
||||
> (a window hidden to the tray lets go too), which is what makes the Agent read with no game running and stop when the
|
||||
> page closes (D107). A status line says what the last request came to (`Advanced_State_*`: read at a time, waiting,
|
||||
> off, no agent, an older agent, a viewer); *About this PC* is the facts under the catalog's groups; *Right now* is a
|
||||
> `DataGrid` of every series with **the time it was read at** — a sensor read every fifth tick is never shown as new;
|
||||
> *Over time* is one catalog entry's last five minutes (`Charts/AdvancedSeriesChart`, a date axis).
|
||||
> - **Session** — a selector of the newest fifty sessions that have a `session_advanced` row
|
||||
> (`ISessionRepository.ListAdvancedAsync`), then the PC's facts as they were and the session's own, the stored
|
||||
> statistics, and the entry's series over the session (`SessionSeriesLoader.LoadAdvancedAsync`: `t_ms` is the clock,
|
||||
> NaN is left out, a negative reading is kept). A session whose raw series retention removed keeps its statistics
|
||||
> and says the series are gone. A session's summary has **Advanced metrics…** where the session has a row
|
||||
> (`SessionSummaryViewModel.HasAdvanced`); it asks for that session through `Services.AdvancedSelection` and
|
||||
> navigates, and a page already on screen takes the request at once.
|
||||
> - **Sources** — every entry of `AdvancedMetricCatalog`: its label, what it belongs to, its source, and *Read*, or
|
||||
> the reason it is not (`AdvReach_*`), or — live — why its source is silent (`AdvSource_*`).
|
||||
>
|
||||
> **Words.** Every catalog entry, group, reason, source state and driver token is a `Strings.resx` key made from its own
|
||||
> name (`Adv_<id>`, `AdvGroup_*`, `AdvReach_*`, `AdvSource_*`, `AdvToken_*`) in `en`, `vi`, `ja`; the English label of
|
||||
> an entry **is** its summary in the catalog, and a test holds the two equal. A key that is not there — a token a
|
||||
> newer build stored — reads as the stored text, never as nothing (`ViewModels/AdvancedLabels`).
|
||||
> `ViewModels/AdvancedPresenter` is the pure mapping, each rule with a test.
|
||||
>
|
||||
> **Charts.** A family with more than eight members is drawn as its lowest, average and highest
|
||||
> (`AdvancedPresenter.MaxLines`), and the page says so; the table beside it lists every member. Lines differ by
|
||||
> pattern as well as colour (`ChartPatterns`).
|
||||
>
|
||||
> **A viewer** (`--data-dir`) has no Agent: *This PC* says so, the page opens on *Session*, and nothing is asked. The
|
||||
> navigation item is there when the copy's option is on **or the copy holds an advanced session** (`App.RunAsync`).
|
||||
>
|
||||
> **Accessibility** (`ACCESSIBILITY.md` §For contributors): one first-level heading, a level on every section; the two
|
||||
> templates are implicit by type, so no page-local resource key is named; every row type overrides `ToString` so an
|
||||
> item is read by its text; no `LiveSetting` — the readings change every second and are not announced; each chart has
|
||||
> its name and says its numbers are in the table beside it. Tests: `AdvancedPresenterTests`, `AdvancedViewModelTests`,
|
||||
> `PagesLoadTests` (the page among every surface, both themes, the contrast themes), `AccessibilityTests`
|
||||
> (`CtrlOneToFive…`), `GuideDocumentsTests`.
|
||||
|
||||
### Settings
|
||||
> **Advanced metrics (2026-11-11, owner decision D101; Advanced PR-5).** The Recording section has **Advanced metrics**
|
||||
> (`telemetry.advanced`, off by default, off in a viewer like every setting the Agent reads): one `ui:CardControl` with a
|
||||
> `ToggleSwitch`, under *Raw series kept per game*. Its text says what is read, that off reads and stores nothing more,
|
||||
> that it applies from the next session and that an earlier session is not filled in. The Agent reads it at each
|
||||
> session's start, so the row gets the usual "Applied. The capture agent reads it at the next session" strip. **No page
|
||||
> shows what it stores yet** — the navigation item and the page are PR-7's (D105). With it, three texts that said what
|
||||
> session's start, so the row gets the usual "Applied. The capture agent reads it at the next session" strip. The
|
||||
> switch also sets `AdvancedOption.IsOn` at once, so the navigation item and Ctrl+6 follow it without a restart
|
||||
> (§Advanced, PR-7). With it, three texts that said what
|
||||
> an Agent running as administrator adds with PawnIO now name the processor's, the memory's and the motherboard's
|
||||
> sensors beside the CPU temperature: the Agent section's elevation line, the first run's Agent step, and the admin
|
||||
> mode's disclosure (`agent-admin-dialog/2`). Tests: `SettingsViewModelTests.AdvancedMetricsIsOffByDefaultAndItsToggleIsPersisted`,
|
||||
@@ -1041,7 +1082,7 @@ the requirement was one bullet under §UX rules, and nothing checked it.
|
||||
|
||||
| Keys | Does | Where |
|
||||
|---|---|---|
|
||||
| **Ctrl+1 … Ctrl+5** (and the numeric keypad's 1–5) | Dashboard · Games · Compare · Logs · Settings — and since beta.35 the page's first control takes the focus once it is shown, its title (the page's first-level heading) said to a screen reader; before, the focus stayed where it was, often on the page that had just gone | `MainWindow` `InputBindings` → `MainWindowViewModel.NavigateToCommand` → `ShellShortcuts`, then `Services/PageFocus` (the shell tells it each page shown, from `NavigationView.Navigated`) |
|
||||
| **Ctrl+1 … Ctrl+5** (and the numeric keypad's 1–5); **Ctrl+6** since 2026-11-11 (D105) — the Advanced page, only while `AdvancedOption.IsOn`: `ShellShortcuts` refuses it otherwise, so the number stays free | Dashboard · Games · Compare · Logs · Settings — and since beta.35 the page's first control takes the focus once it is shown, its title (the page's first-level heading) said to a screen reader; before, the focus stayed where it was, often on the page that had just gone | `MainWindow` `InputBindings` → `MainWindowViewModel.NavigateToCommand` → `ShellShortcuts`, then `Services/PageFocus` (the shell tells it each page shown, from `NavigationView.Navigated`) |
|
||||
| **Alt**, **F10** | Focuses the menu bar; arrows and Enter walk File / Tools / Help | WPF `Menu`, nothing custom |
|
||||
| **Alt** + a menu's access key | Opens that menu — `_File` `_Tools` `_Help`; `_Tệp` `_Công cụ` `Trợ _giúp`; `ファイル(_F)` `ツール(_T)` `ヘルプ(_H)` *(row added 2026-11-09: the keys existed since P3 and this table did not name them)* | the `Menu_*` strings' `_` |
|
||||
| **Tab / Shift+Tab** | Moves through a page in reading order | layout order; no `TabIndex` overrides |
|
||||
|
||||
@@ -654,7 +654,7 @@ and motherboard groups in a session with the option on. The texts that state wha
|
||||
Disclaimer 2.15 §5 and §5A (the owner's answer of 2026-11-11), the admin mode's disclosure (`agent-admin-dialog/2`),
|
||||
Settings, the first run, the guide and `LIMITATIONS.md` — and Privacy Policy 2.15 names what is read and stored.
|
||||
|
||||
### The page's feed (built 2026-11-11, Advanced PR-6; shown by nothing yet)
|
||||
### The page's feed (built 2026-11-11, Advanced PR-6; shown by the page since PR-7)
|
||||
|
||||
With no game running the Agent reads sensors **only while the page is open** (D107), and nothing tells the Agent
|
||||
that a page opened or closed:
|
||||
@@ -670,6 +670,20 @@ that a page opened or closed:
|
||||
sources' states. It stores nothing. Its states are the page's own words for why there is nothing to show: waiting
|
||||
for the first read, off, no agent (a viewer never has one), an older agent.
|
||||
|
||||
### The page (built 2026-11-11, Advanced PR-7)
|
||||
|
||||
`08_UI` §Advanced is the screen. What this document's model becomes there:
|
||||
|
||||
- **A machine fact** is under *This PC* ▸ *About this PC* while the Agent answers, and under *Session* as it was
|
||||
when that session was recorded (`machine_profiles`, one row per distinct set).
|
||||
- **A session fact** is under *Session* only.
|
||||
- **A series** is a row of *Right now* and a line of *Over time* while live — never stored then — and a row of the
|
||||
session's statistics and a line of its chart once a session stored it.
|
||||
- **An entry that is not read** is on *Sources* with its reason, in the same words as §Left out, by name.
|
||||
|
||||
`ISessionRepository.ListAdvancedAsync` lists the sessions that have a row; `SessionSeriesLoader.LoadAdvancedAsync`
|
||||
decodes their series against `t_ms`, leaving a NaN tick out and keeping a negative reading.
|
||||
|
||||
### What belongs to what
|
||||
|
||||
| Scope | What it is | Stored | Shown |
|
||||
|
||||
+11
-2
@@ -20,7 +20,7 @@ What each part of FrameLedger shows and what each button does. What the numbers
|
||||
update** (it waits while a game is being recorded); and the safety notices — a game's hooking refused, measurement
|
||||
stopped, hooking turned off — each with one button that only says you have read it.
|
||||
|
||||
**The pages** are on the left: **Dashboard**, **Games**, **Compare**, **Logs**, and **Settings** at the bottom.
|
||||
**The pages** are on the left: **Dashboard**, **Games**, **Compare**, **Logs**, and **Settings** at the bottom. **Advanced** joins them, after Logs, while Advanced metrics is switched on.
|
||||
|
||||
## The menus
|
||||
|
||||
@@ -107,6 +107,7 @@ It opens from a session row, from the Dashboard, and from the notice when a sess
|
||||
- **Frame generation in this session** — a bar and a table of every frame-generation state the session held, when it
|
||||
held more than one, with how frame generation was set.
|
||||
- **Tags and notes** with **Save**, and **Export CSV**, **Export JSON**, **Export PNG**.
|
||||
- **Advanced metrics…**, for a session recorded with Advanced metrics on: it opens that session on the Advanced page.
|
||||
|
||||
## Compare
|
||||
|
||||
@@ -120,6 +121,13 @@ not) and **frame generation** — a session you ticked stays in the list. **Clea
|
||||
What FrameLedger and its agent wrote down. Choose **App** or **Agent**, a level, and search; **Pause** stops the view from
|
||||
following new lines. **Open logs folder**, and **Export bug bundle**, which does the same as Help ▸ Report a bug….
|
||||
|
||||
## Advanced
|
||||
|
||||
There only while Settings ▸ Recording ▸ **Advanced metrics** is on. Three tabs: **This PC** — what the graphics
|
||||
driver and the sensors say right now, read only while the page is open; **Session** — what a session recorded with
|
||||
the option on kept, in a table and a chart; **Sources** — every reading FrameLedger knows of, and for each one it
|
||||
does not read, why. [Advanced metrics](12-advanced-metrics.md) describes each.
|
||||
|
||||
## Settings
|
||||
|
||||
Every switch and box is described in [Every setting](08-settings.md).
|
||||
@@ -133,7 +141,8 @@ is ready.
|
||||
|
||||
## Keyboard and mouse
|
||||
|
||||
- **Ctrl+1** … **Ctrl+5** open Dashboard, Games, Compare, Logs and Settings, and put the keyboard in that page.
|
||||
- **Ctrl+1** … **Ctrl+5** open Dashboard, Games, Compare, Logs and Settings, and put the keyboard in that page;
|
||||
**Ctrl+6** opens Advanced while Advanced metrics is on.
|
||||
- **Alt** or **F10** moves to the menus; **Alt** with a menu's underlined letter opens it (**Alt+F**, **Alt+T** and
|
||||
**Alt+H** for File, Tools and Help in English).
|
||||
- **Esc** closes a dialog the way its Close or Cancel button does.
|
||||
|
||||
@@ -22,7 +22,7 @@ The link under them, *Read what the hook does and does not do*, opens the safety
|
||||
| **Minimum session length (s)** | A shorter session is not kept. 5 to 600 seconds. *Agent.* | 30 |
|
||||
| **Sensor interval (ms)** | How often the PC's sensors are read during a session. 500 to 2000 ms. *Agent.* | 1000 |
|
||||
| **Raw series kept per game** | How many of each game's newest sessions keep their per-frame data; older ones keep their statistics. 0 keeps everything. *Agent.* | 20 |
|
||||
| **Advanced metrics** | Reads more from the graphics driver and the hardware sensors during a session — the graphics card's memory and load in detail, each fan and voltage, what your display can do, the driver's settings for the game — and stores it with the session. Off: nothing more is read or stored. It applies from the next session; a session recorded while it was off is not filled in later. *Agent.* | Off |
|
||||
| **Advanced metrics** | Reads more from the graphics driver and the hardware sensors during a session — the graphics card's memory and load in detail, each fan and voltage, what your display can do, the driver's settings for the game — and stores it with the session. Off: nothing more is read or stored. It applies from the next session; a session recorded while it was off is not filled in later. While it is on, the **Advanced** page is in the list on the left ([Advanced metrics](12-advanced-metrics.md)). *Agent.* | Off |
|
||||
|
||||
## Data
|
||||
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
# Advanced metrics
|
||||
|
||||
A session's summary shows the figures most people want. **Advanced metrics** is for looking closer: everything the
|
||||
graphics driver and the hardware sensors will say about your PC, kept with each session and shown on a page of its
|
||||
own.
|
||||
|
||||
It is **off unless you switch it on**, and while it is off nothing more is read or stored.
|
||||
|
||||
## Switch it on
|
||||
|
||||
Settings ▸ Recording ▸ **Advanced metrics**. A new item, **Advanced**, appears at the end of the list on the left
|
||||
(**Ctrl+6**). Sessions you record from then on keep the extra readings; a session recorded while it was off is not
|
||||
filled in later.
|
||||
|
||||
## This PC
|
||||
|
||||
What your PC says right now.
|
||||
|
||||
- **About this PC** — the graphics card's firmware, architecture and cores, its memory sizes, the driver's package,
|
||||
what each display can do with HDR and variable refresh, and the driver's global settings. A row with a number in
|
||||
brackets unfolds into a list.
|
||||
- **Right now** — every reading with the time it was read at. NVIDIA's own figures are read every second; the
|
||||
sensors (fans, voltages, loads) every five seconds, so a sensor's value can be a few seconds old, and its time
|
||||
says so.
|
||||
- **Over time** — choose a reading and see its last five minutes. More than eight lines at once cannot be told
|
||||
apart, so a reading with many parts (every processor core, say) is drawn as its lowest, average and highest.
|
||||
|
||||
These readings are taken **only while this page is open or a game is being recorded**, and what the page shows is
|
||||
not stored.
|
||||
|
||||
## Session
|
||||
|
||||
Choose a session recorded with Advanced metrics on. You see the PC as it was then, what belonged to that session
|
||||
alone — whether variable refresh was in use on the display the game ran on, the colour space the game presented in,
|
||||
the driver's settings for that game — the lowest, average and highest of every reading, and a chart over the
|
||||
session's length.
|
||||
|
||||
A session's summary has an **Advanced metrics…** button that opens that session here.
|
||||
|
||||
## Sources
|
||||
|
||||
Every reading FrameLedger knows of, with what it belongs to (this PC, a session, or a session over time), where it
|
||||
comes from, and whether it is read. Where it is not, the reason is written out:
|
||||
|
||||
- **the capture agent is not running as administrator**, or **PawnIO is not installed** — the processor's, the
|
||||
memory's and the motherboard's sensors need both ([Every setting](08-settings.md), *Run the agent as
|
||||
administrator*);
|
||||
- **not present on this PC** — the driver's own figures exist on NVIDIA cards only;
|
||||
- **inside the game — comes with a later release**;
|
||||
- **never read** — a serial number, a display's identification data, which other programs are encoding, the camera's
|
||||
position in the game. FrameLedger does not read these at all.
|
||||
|
||||
## Good to know
|
||||
|
||||
- A reading that could not be taken is **N/A**, never a guess and never a zero.
|
||||
- **A drive's temperature is not read**: the sensor library cannot list drives without touching removable ones.
|
||||
- None of these readings has been checked against another tool yet.
|
||||
- They are not part of an exported session or a bug report.
|
||||
|
||||
More limits are on the [Limitations](../LIMITATIONS.md) page, under *Sensors*.
|
||||
+3
-2
@@ -4,7 +4,7 @@ FrameLedger records how your games run on this PC — frame rate, frame times, t
|
||||
with, temperatures, and how much memory the game uses — and keeps every session so you can compare them later.
|
||||
Everything stays on your PC.
|
||||
|
||||
Each page below takes a minute or two to read. The first six are the guide; the next five are there to look things up.
|
||||
Each page below takes a minute or two to read. The first six are the guide; the next six are there to look things up.
|
||||
|
||||
1. [Install and first start](01-install.md)
|
||||
2. [Record a game](02-record-a-game.md)
|
||||
@@ -17,7 +17,8 @@ Each page below takes a minute or two to read. The first six are the guide; the
|
||||
9. [When something goes wrong](09-troubleshooting.md)
|
||||
10. [Words FrameLedger uses](10-glossary.md)
|
||||
11. [Alpha builds](11-alpha-builds.md) — the experimental builds on a new .NET, and how to go back
|
||||
12. [The terms, in plain words](terms-in-plain-words.md)
|
||||
12. [Advanced metrics](12-advanced-metrics.md) — everything the driver and the sensors say, if you switch it on
|
||||
13. [The terms, in plain words](terms-in-plain-words.md)
|
||||
|
||||
What FrameLedger cannot do is listed on its own page: [Limitations](../LIMITATIONS.md) (in the app: Help ▸
|
||||
Limitations). How it works with the keyboard alone, a screen reader or a contrast theme, and how to report a problem:
|
||||
|
||||
+2
-2
@@ -106,8 +106,8 @@
|
||||
> clocks, fans, voltages and power in detail, what a display can do, the driver's settings for the game — as they
|
||||
> report it: NVIDIA's figures once a second, the sensor library's every five seconds. None of these readings has
|
||||
> been checked against another tool. The processor's, the memory's and the motherboard's need the Agent as
|
||||
> administrator with PawnIO and have never been read on real hardware; a drive's temperature is not read. No
|
||||
> screen of the App shows them yet.
|
||||
> administrator with PawnIO and have never been read on real hardware; a drive's temperature is not read. The
|
||||
> Advanced page shows them as they were stored, and what the PC reads at the moment only while that page is open.
|
||||
> - **Safety:** every pre-injection check runs before injection, including the signed-by-a-known-vendor
|
||||
> half of the suspicious-module rule. During every capture the Agent re-runs the checks every 30 s and
|
||||
> stops capturing on a refusal: a Direct3D or OpenGL game's hooks are removed, and the Vulkan layer
|
||||
|
||||
+2
-2
@@ -215,8 +215,8 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
|
||||
> clocks, fans, voltages and power in detail, what a display can do, the driver's settings for the game — as they
|
||||
> report it: NVIDIA's figures once a second, the sensor library's every five seconds. None of these readings has
|
||||
> been checked against another tool. The processor's, the memory's and the motherboard's need the Agent as
|
||||
> administrator with PawnIO and have never been read on real hardware; a drive's temperature is not read. No
|
||||
> screen of the App shows them yet.
|
||||
> administrator with PawnIO and have never been read on real hardware; a drive's temperature is not read. The
|
||||
> Advanced page shows them as they were stored, and what the PC reads at the moment only while that page is open.
|
||||
> - **Safety:** every pre-injection check runs before injection, including the signed-by-a-known-vendor
|
||||
> half of the suspicious-module rule. During every capture the Agent re-runs the checks every 30 s and
|
||||
> stops capturing on a refusal: a Direct3D or OpenGL game's hooks are removed, and the Vulkan layer
|
||||
|
||||
@@ -43,7 +43,7 @@ An exported session (CSV or JSON) and a bug report can contain your games' names
|
||||
|
||||
## 4. What the app can technically observe
|
||||
|
||||
To do its job, FrameLedger observes: which of *your tracked* executables — the entries in your library whose recording is on — are running, and their process trees; whether a game you enabled hooking for runs in an app container, and which of Windows' code-protection settings it runs under (for example, accepting only Microsoft-signed code), read from Windows before any injection; the parameters your games pass to the graphics APIs it intercepts (presentation, upscaling, ray tracing, pipeline creation); the memory use of a tracked game's process — its dedicated and shared video memory, from Windows' GPU performance counters, and its working sets and commit, from Windows' process-memory information, for which a game it does not inject into is opened with the least access Windows offers and closed again (never its memory's content); loaded module names of a game being captured, the version information of its upscaling, frame-generation and neural-rendering libraries, and whether each was loaded from the game's folder or from the graphics driver's own copy (for detection and for the anti-cheat safety check); the names of the files in each library game's install folder, the version information of its executable and of the upscaling and neural-rendering libraries it ships, the content of its executable file (the markers of the engine and of the graphics libraries it carries, the libraries it imports, and the engine build name an Unreal Engine game carries), the version marks an engine keeps in its own files (Unity's player library and the header of its data file, the header of a Godot data pack, an RPG Maker game's title, core script and Game.ini, the library Game.ini names, and the version file of a Ren'Py game's engine), and the store files that name it (Steam's and GOG's, on your disk) and, for a game the Xbox app or the Microsoft Store installed, the package files in its install folder that describe it (`MicrosoftGame.config` and `appxmanifest.xml`) — to detect its engine, its engine version and its features and to check it for anti-cheat before any injection is possible; the lists of installed games that the Steam, GOG GALAXY, Epic Games and itch apps keep on your disk, and where GOG GALAXY is installed, the folders the Xbox app installs games into on each drive (named by the `.GamingRoot` file at the drive's root) with each game's package files, and Windows' answer to whether that game's package is installed for you — read when you import your library and when you press Play, to find the store that installed a game and hand the game to that store's app — Steam's and GOG GALAXY's also when you open a game's page, to find the artwork their apps keep for it; the cover and banner images that the Steam and GOG GALAXY apps keep on your disk for a game in your library and the logo and splash-screen images a game from the Xbox app ships in its own folder — read to show them on its page, never copied or sent anywhere; the size, position and state of a tracked game's window and the monitor it is on, read from Windows and not from the game, and — for a game FrameLedger injects into — whether the game asked for exclusive full-screen; the NVIDIA driver's settings for your tracked executables (read only: the DLSS and frame-generation overrides the NVIDIA App set); hardware sensor values from your graphics driver's own libraries; and — only while Advanced metrics is on — that driver's description of the graphics card and of each connected display, what it reports about the display a tracked game's window is on, its settings for a tracked game and its global ones (read only), and, when the capture agent runs as administrator with PawnIO installed, the sensors and model names of the processor, the memory and the motherboard (never a drive's); how busy the processor is and how much memory is in use, from Windows' own counters; the crash reports Windows keeps in its Application log about a tracked game's executable while it ran (to tell a crash from an ordinary exit — the reports are read, never sent anywhere); and the names of the programs a tracked game starts, so that a game's own crash reporter is recognised.
|
||||
To do its job, FrameLedger observes: which of *your tracked* executables — the entries in your library whose recording is on — are running, and their process trees; whether a game you enabled hooking for runs in an app container, and which of Windows' code-protection settings it runs under (for example, accepting only Microsoft-signed code), read from Windows before any injection; the parameters your games pass to the graphics APIs it intercepts (presentation, upscaling, ray tracing, pipeline creation); the memory use of a tracked game's process — its dedicated and shared video memory, from Windows' GPU performance counters, and its working sets and commit, from Windows' process-memory information, for which a game it does not inject into is opened with the least access Windows offers and closed again (never its memory's content); loaded module names of a game being captured, the version information of its upscaling, frame-generation and neural-rendering libraries, and whether each was loaded from the game's folder or from the graphics driver's own copy (for detection and for the anti-cheat safety check); the names of the files in each library game's install folder, the version information of its executable and of the upscaling and neural-rendering libraries it ships, the content of its executable file (the markers of the engine and of the graphics libraries it carries, the libraries it imports, and the engine build name an Unreal Engine game carries), the version marks an engine keeps in its own files (Unity's player library and the header of its data file, the header of a Godot data pack, an RPG Maker game's title, core script and Game.ini, the library Game.ini names, and the version file of a Ren'Py game's engine), and the store files that name it (Steam's and GOG's, on your disk) and, for a game the Xbox app or the Microsoft Store installed, the package files in its install folder that describe it (`MicrosoftGame.config` and `appxmanifest.xml`) — to detect its engine, its engine version and its features and to check it for anti-cheat before any injection is possible; the lists of installed games that the Steam, GOG GALAXY, Epic Games and itch apps keep on your disk, and where GOG GALAXY is installed, the folders the Xbox app installs games into on each drive (named by the `.GamingRoot` file at the drive's root) with each game's package files, and Windows' answer to whether that game's package is installed for you — read when you import your library and when you press Play, to find the store that installed a game and hand the game to that store's app — Steam's and GOG GALAXY's also when you open a game's page, to find the artwork their apps keep for it; the cover and banner images that the Steam and GOG GALAXY apps keep on your disk for a game in your library and the logo and splash-screen images a game from the Xbox app ships in its own folder — read to show them on its page, never copied or sent anywhere; the size, position and state of a tracked game's window and the monitor it is on, read from Windows and not from the game, and — for a game FrameLedger injects into — whether the game asked for exclusive full-screen; the NVIDIA driver's settings for your tracked executables (read only: the DLSS and frame-generation overrides the NVIDIA App set); hardware sensor values from your graphics driver's own libraries; and — only while Advanced metrics is on — that driver's description of the graphics card and of each connected display, what it reports about the display a tracked game's window is on, its settings for a tracked game and its global ones (read only), and, when the capture agent runs as administrator with PawnIO installed, the sensors and model names of the processor, the memory and the motherboard (never a drive's), all of which are also read with no game running while the Advanced page is open, to show them there, and are not stored then; how busy the processor is and how much memory is in use, from Windows' own counters; the crash reports Windows keeps in its Application log about a tracked game's executable while it ran (to tell a crash from an ordinary exit — the reports are read, never sent anywhere); and the names of the programs a tracked game starts, so that a game's own crash reporter is recognised.
|
||||
|
||||
It does **not** read game memory outside those API parameters, and does not read game saves, chat, input content, network traffic, or anything unrelated to performance measurement. It records only for programs you added to your library and did not switch recording off for — a program whose recording is off is not watched at all — and injects only into games you individually enabled.
|
||||
|
||||
|
||||
@@ -108,6 +108,10 @@ public partial class App : System.Windows.Application
|
||||
LoggingLevel.SetDebug(await registered.GetBooleanAsync(SettingsRegistry.LogDebug).ConfigureAwait(true));
|
||||
FpsDecimals.Two = await registered.GetBooleanAsync(SettingsRegistry.UiFpsDecimals).ConfigureAwait(true);
|
||||
ScrollBarHiding.Apply(await registered.GetBooleanAsync(SettingsRegistry.UiHideScrollBars).ConfigureAwait(true));
|
||||
// Advanced metrics (D101/D105): the page is offered while the option is on - and in a viewer also when the copy holds
|
||||
// a session recorded with it on, since that is what a copy is opened to look at.
|
||||
AdvancedOption.IsOn = await registered.GetBooleanAsync(SettingsRegistry.TelemetryAdvanced).ConfigureAwait(true)
|
||||
|| (UiPaths.IsViewer && (await new SqliteSessionRepository(_db).ListAdvancedAsync(1).ConfigureAwait(true)).Count > 0);
|
||||
var closePolicy = new WindowClosePolicy { MinimizeToTray = await registered.GetBooleanAsync(SettingsRegistry.UiMinimizeToTray).ConfigureAwait(true) };
|
||||
|
||||
_host = BuildHost(_db, appearance, registered, closePolicy);
|
||||
@@ -359,6 +363,9 @@ public partial class App : System.Windows.Application
|
||||
builder.Services.AddTransient<GameDetailViewModel>();
|
||||
builder.Services.AddTransient<ComparePage>();
|
||||
builder.Services.AddTransient<CompareViewModel>();
|
||||
builder.Services.AddTransient<AdvancedPage>();
|
||||
builder.Services.AddTransient<AdvancedViewModel>();
|
||||
builder.Services.AddSingleton<AdvancedSelection>();
|
||||
builder.Services.AddTransient<LogsPage>();
|
||||
builder.Services.AddTransient<LogsViewModel>();
|
||||
builder.Services.AddTransient<SettingsPage>();
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.Charts;
|
||||
|
||||
/// <summary>One line of the Advanced page's chart: its legend text and its points.</summary>
|
||||
/// <param name="Label">What the line is.</param>
|
||||
/// <param name="Xs">Seconds from the session's start, or OLE automation dates for a live chart.</param>
|
||||
/// <param name="Ys">The values, in the unit of the catalog entry.</param>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1819:Properties should not return arrays", Justification = "a data carrier for the chart, as SensorSeries is")]
|
||||
public sealed record AdvancedChartLine(string Label, double[] Xs, double[] Ys);
|
||||
@@ -0,0 +1,13 @@
|
||||
<!-- 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.AdvancedSeriesChart"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:charts="clr-namespace:FrameLedger.App.Charts"
|
||||
xmlns:res="clr-namespace:FrameLedger.App"
|
||||
MinHeight="260">
|
||||
<!-- 08_UI §Advanced: one catalog entry over time - its series, or their lowest, average and highest above eight. The
|
||||
table beside it on the page lists the same readings (A11y_ChartData_Advanced). -->
|
||||
<charts:ChartPlot x:Name="Plot" AutomationProperties.Name="{x:Static res:Strings.A11y_Chart_Advanced}" AutomationProperties.HelpText="{x:Static res:Strings.A11y_ChartData_Advanced}" />
|
||||
</UserControl>
|
||||
@@ -0,0 +1,90 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Windows.Controls;
|
||||
using ScottPlot;
|
||||
using ScottPlot.Plottables;
|
||||
|
||||
namespace FrameLedger.App.Charts;
|
||||
|
||||
/// <summary>
|
||||
/// The Advanced page's chart (owner decision D101): the series of one catalog entry over time. <see cref="TimeOfDay"/>
|
||||
/// says what the horizontal axis is — the clock, for what the PC reads now, or seconds from a session's start — and is
|
||||
/// set once, before the first <see cref="Show"/>: a date axis replaces the bottom axis and is not swapped back.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Lines differ by pattern and marker as well as by colour (<see cref="ChartPatterns"/>), so a chart read without
|
||||
/// colour still tells them apart; and a series with one reading is a point, not an invisible line.
|
||||
/// </remarks>
|
||||
public partial class AdvancedSeriesChart : UserControl
|
||||
{
|
||||
private bool _dateAxis;
|
||||
|
||||
public AdvancedSeriesChart()
|
||||
{
|
||||
InitializeComponent();
|
||||
ChartTheme.Attach(Plot);
|
||||
}
|
||||
|
||||
/// <summary>True when the points' x values are OLE automation dates (a live chart); false for seconds from a session's start.</summary>
|
||||
public bool TimeOfDay { get; set; }
|
||||
|
||||
public Plot ScottPlot => Plot.Plot;
|
||||
|
||||
/// <summary>How many lines the last <see cref="Show"/> drew — what a test reads.</summary>
|
||||
public int DrawnLines { get; private set; }
|
||||
|
||||
/// <summary>Draws <paramref name="lines"/> against <paramref name="unit"/>; no line clears the chart.</summary>
|
||||
public void Show(IReadOnlyList<AdvancedChartLine> lines, string unit)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(lines);
|
||||
Plot plot = Plot.Plot;
|
||||
plot.Clear();
|
||||
if (TimeOfDay && !_dateAxis)
|
||||
{
|
||||
// Before the theme and the labels: the date axis REPLACES the bottom axis and would drop both (TrendChart).
|
||||
plot.Axes.DateTimeTicksBottom();
|
||||
_dateAxis = true;
|
||||
}
|
||||
|
||||
ChartTheme.Apply(plot);
|
||||
plot.XLabel(TimeOfDay ? Strings.Advanced_Chart_Time : Strings.Advanced_Chart_Seconds);
|
||||
plot.YLabel(unit ?? string.Empty);
|
||||
|
||||
ChartPalette p = ChartTheme.Current;
|
||||
Color[] palette = [p.Native, p.Displayed, p.Percentile, p.Sensor, p.SensorSecondary, p.Stutter, p.Histogram, p.Segment];
|
||||
int drawn = 0;
|
||||
foreach (AdvancedChartLine line in lines)
|
||||
{
|
||||
if (line.Xs.Length == 0 || line.Xs.Length != line.Ys.Length)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Scatter scatter = plot.Add.Scatter(line.Xs, line.Ys, palette[drawn % palette.Length]);
|
||||
scatter.LineWidth = 2;
|
||||
scatter.MarkerSize = line.Xs.Length == 1 ? 7 : 0;
|
||||
scatter.LegendText = line.Label;
|
||||
ChartPatterns.Line(scatter, drawn);
|
||||
if (line.Xs.Length == 1)
|
||||
{
|
||||
ChartPatterns.Points(scatter, drawn);
|
||||
}
|
||||
|
||||
drawn++;
|
||||
}
|
||||
|
||||
DrawnLines = drawn;
|
||||
if (drawn > 0)
|
||||
{
|
||||
plot.Axes.AutoScale();
|
||||
plot.ShowLegend(Alignment.UpperLeft);
|
||||
}
|
||||
else
|
||||
{
|
||||
plot.HideLegend();
|
||||
}
|
||||
|
||||
Plot.Refresh();
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,49 @@ public sealed class SessionSeriesLoader
|
||||
public Task<IReadOnlyList<SensorSeries>> LoadSensorsAsync(long sessionId, CancellationToken ct = default) =>
|
||||
Task.Run(async () => (IReadOnlyList<SensorSeries>)DecodeSensors(await _sessions.FindSensorsAsync(sessionId, ct).ConfigureAwait(false), offsetS: 0), ct);
|
||||
|
||||
/// <summary>
|
||||
/// The session's advanced series (owner decision D102), timed from the session's start by the same <c>t_ms</c> clock
|
||||
/// as the sensors. A tick with no reading — NaN, and most ticks of a sensor read every fifth — is left out, never drawn
|
||||
/// as a zero; a series may be negative, so nothing else is. Empty for a session recorded with the option off. On the
|
||||
/// thread pool, as <see cref="LoadAsync"/>.
|
||||
/// </summary>
|
||||
public Task<IReadOnlyList<SensorSeries>> LoadAdvancedAsync(long sessionId, CancellationToken ct = default) =>
|
||||
Task.Run(async () => DecodeAdvanced(await _sessions.FindAdvancedSensorsAsync(sessionId, ct).ConfigureAwait(false)), ct);
|
||||
|
||||
/// <summary>The advanced blobs decoded: <c>t_ms</c> is their clock, NaN is "no reading".</summary>
|
||||
public static IReadOnlyList<SensorSeries> DecodeAdvanced(IReadOnlyList<SensorBlob> blobs)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(blobs);
|
||||
SensorBlob? clock = blobs.FirstOrDefault(static s => string.Equals(s.Series, "t_ms", StringComparison.Ordinal));
|
||||
float[]? tMs = clock is null || !string.Equals(clock.Codec, SeriesCodec.Tag, StringComparison.Ordinal) ? null : SeriesCodec.DecodeFloat32(clock.Data.ToArray());
|
||||
var result = new List<SensorSeries>();
|
||||
foreach (SensorBlob blob in blobs)
|
||||
{
|
||||
if (string.Equals(blob.Series, "t_ms", StringComparison.Ordinal) || !string.Equals(blob.Codec, SeriesCodec.Tag, StringComparison.Ordinal))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
float[] values = SeriesCodec.DecodeFloat32(blob.Data.ToArray());
|
||||
var xs = new List<double>();
|
||||
var ys = new List<double>();
|
||||
for (int i = 0; i < values.Length; i++)
|
||||
{
|
||||
if (float.IsNaN(values[i]))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
xs.Add(tMs is not null && i < tMs.Length ? tMs[i] / 1000.0 : i / Math.Max(blob.Hz, 0.001));
|
||||
ys.Add(values[i]);
|
||||
}
|
||||
|
||||
result.Add(new SensorSeries(blob.Series, [.. xs], [.. ys]));
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private async Task<SessionSeries?> ReadAndDecodeAsync(long sessionId, CancellationToken ct)
|
||||
{
|
||||
FrameBlobs? frames = await _sessions.FindFramesAsync(sessionId, ct).ConfigureAwait(false);
|
||||
|
||||
@@ -24,11 +24,14 @@
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="3" Key="D3" Modifiers="Control" />
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="4" Key="D4" Modifiers="Control" />
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="5" Key="D5" Modifiers="Control" />
|
||||
<!-- Ctrl+6 (owner decision D105): the Advanced page, only while its option is on - ShellShortcuts refuses it otherwise. -->
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="6" Key="D6" Modifiers="Control" />
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="1" Key="NumPad1" Modifiers="Control" />
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="2" Key="NumPad2" Modifiers="Control" />
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="3" Key="NumPad3" Modifiers="Control" />
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="4" Key="NumPad4" Modifiers="Control" />
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="5" Key="NumPad5" Modifiers="Control" />
|
||||
<KeyBinding Command="{Binding ViewModel.NavigateToCommand}" CommandParameter="6" Key="NumPad6" Modifiers="Control" />
|
||||
</ui:FluentWindow.InputBindings>
|
||||
|
||||
<!--
|
||||
@@ -186,6 +189,11 @@
|
||||
<ui:NavigationViewItem Content="{x:Static res:Strings.Nav_Logs}"
|
||||
Icon="{ui:SymbolIcon DocumentText24}"
|
||||
TargetPageType="{x:Type pages:LogsPage}" />
|
||||
<!-- Advanced metrics (owner decisions D101/D105): last in the menu, and there only while the option is on. -->
|
||||
<ui:NavigationViewItem Content="{x:Static res:Strings.Nav_Advanced}"
|
||||
Icon="{ui:SymbolIcon DataUsage24}"
|
||||
TargetPageType="{x:Type pages:AdvancedPage}"
|
||||
Visibility="{Binding Path=(services:AdvancedOption.IsOn), Converter={StaticResource BoolToVis}}" />
|
||||
</ui:NavigationView.MenuItems>
|
||||
<ui:NavigationView.FooterMenuItems>
|
||||
<ui:NavigationViewItem Content="{x:Static res:Strings.Nav_Settings}"
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
<!-- SPDX-License-Identifier: GPL-3.0-only -->
|
||||
<!-- Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE -->
|
||||
|
||||
<Page x:Class="FrameLedger.App.Pages.AdvancedPage"
|
||||
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:charts="clr-namespace:FrameLedger.App.Charts"
|
||||
xmlns:controls="clr-namespace:FrameLedger.App.Controls"
|
||||
xmlns:res="clr-namespace:FrameLedger.App"
|
||||
xmlns:vm="clr-namespace:FrameLedger.App.ViewModels"
|
||||
Title="{x:Static res:Strings.Advanced_Header}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
ScrollViewer.CanContentScroll="False">
|
||||
<!--
|
||||
08_UI §Advanced (owner decision D101). Three tabs, by what a value belongs to: This PC - what the Agent reads now,
|
||||
asked only while this page is on screen (D107) and never stored; Session - what a session recorded with the option
|
||||
on stored; Sources - every entry of the catalog with whether it is read, or why not. A reason is always words,
|
||||
never a colour alone, and each chart has its readings in a table beside it.
|
||||
-->
|
||||
<Page.Resources>
|
||||
<!-- One fact: label and value in two columns that line up within a group; a table-valued fact unfolds its rows.
|
||||
Both templates are implicit - found by the type they show - so nothing on the page names a resource key. -->
|
||||
<DataTemplate DataType="{x:Type vm:AdvancedFactRow}">
|
||||
<StackPanel>
|
||||
<Grid Margin="0,2,0,0" Visibility="{Binding HasDetails, Converter={StaticResource InverseBoolToVis}}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" SharedSizeGroup="AdvancedFactLabel" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock MaxWidth="460" Style="{StaticResource FieldLabel}" Text="{Binding Label}" TextWrapping="Wrap" />
|
||||
<TextBlock Grid.Column="1" Style="{StaticResource FieldValue}" Text="{Binding Value}" TextWrapping="Wrap" />
|
||||
</Grid>
|
||||
<Expander Margin="0,2,0,4" Visibility="{Binding HasDetails, Converter={StaticResource BoolToVis}}">
|
||||
<Expander.Header>
|
||||
<TextBlock TextWrapping="Wrap">
|
||||
<Run Text="{Binding Label, Mode=OneWay}" /><Run Text=" (" /><Run Text="{Binding Value, Mode=OneWay}" /><Run Text=")" />
|
||||
</TextBlock>
|
||||
</Expander.Header>
|
||||
<ItemsControl Margin="12,4,0,0" Focusable="False" Grid.IsSharedSizeScope="True" ItemsSource="{Binding Details}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate DataType="{x:Type vm:AdvancedDetailRow}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" SharedSizeGroup="AdvancedDetailName" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock MaxWidth="460" Style="{StaticResource FieldLabel}" Text="{Binding Name}" TextWrapping="Wrap" />
|
||||
<TextBlock Grid.Column="1" Style="{StaticResource FieldValue}" Text="{Binding Value}" TextWrapping="Wrap" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</Expander>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
|
||||
<!-- A group of the catalog under its heading. -->
|
||||
<DataTemplate DataType="{x:Type vm:AdvancedFactGroup}">
|
||||
<StackPanel Margin="0,12,0,0">
|
||||
<ui:TextBlock AutomationProperties.HeadingLevel="Level3" FontTypography="BodyStrong" Text="{Binding Title}" />
|
||||
<ItemsControl Margin="0,4,0,0" Focusable="False" Grid.IsSharedSizeScope="True" ItemsSource="{Binding Rows}" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</Page.Resources>
|
||||
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel Style="{StaticResource PageRoot}">
|
||||
<ui:TextBlock AutomationProperties.HeadingLevel="Level1" FontTypography="Title" Text="{x:Static vm:AdvancedViewModel.Header}" />
|
||||
|
||||
<TabControl Margin="0,16,0,0" SelectedIndex="{Binding ViewModel.SelectedTab, Mode=TwoWay}">
|
||||
<!-- This PC: read now, by the Agent, only while this page is open. -->
|
||||
<TabItem Header="{x:Static vm:AdvancedViewModel.TabMachine}">
|
||||
<StackPanel Margin="0,12,0,0">
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Machine_Intro}" TextWrapping="Wrap" />
|
||||
<ui:TextBlock Margin="0,8,0,0" Text="{Binding ViewModel.MachineStatus}" TextWrapping="Wrap" />
|
||||
<ui:TextBlock Margin="0,4,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Elevation_Hint}" TextWrapping="Wrap"
|
||||
Visibility="{Binding ViewModel.ShowElevationHint, Converter={StaticResource BoolToVis}}" />
|
||||
|
||||
<ui:TextBlock Margin="0,20,0,0" AutomationProperties.HeadingLevel="Level2" FontTypography="Subtitle" Text="{x:Static res:Strings.Advanced_Facts_Header}" />
|
||||
<ItemsControl Focusable="False" ItemsSource="{Binding ViewModel.MachineGroups}" />
|
||||
|
||||
<ui:TextBlock Margin="0,20,0,0" AutomationProperties.HeadingLevel="Level2" FontTypography="Subtitle" Text="{x:Static res:Strings.Advanced_Now_Header}" />
|
||||
<DataGrid MaxHeight="360" Margin="0,8,0,0" AutoGenerateColumns="False" AutomationProperties.Name="{x:Static res:Strings.Advanced_Now_Header}"
|
||||
CanUserAddRows="False" HeadersVisibility="Column" IsReadOnly="True" ItemsSource="{Binding ViewModel.LiveRows}" SelectionMode="Single">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Width="Auto" MinWidth="320" Binding="{Binding Label}" Header="{x:Static res:Strings.Advanced_Col_Name}" />
|
||||
<DataGridTextColumn Width="Auto" MinWidth="120" Binding="{Binding Value}" Header="{x:Static res:Strings.Advanced_Col_Value}" />
|
||||
<DataGridTextColumn Width="Auto" MinWidth="110" Binding="{Binding ReadAt}" Header="{x:Static res:Strings.Advanced_Col_ReadAt}" />
|
||||
<DataGridTemplateColumn Width="*" CanUserResize="False" CanUserSort="False" IsReadOnly="True" controls:CellName.Path="Label" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
<ui:TextBlock Margin="0,20,0,0" AutomationProperties.HeadingLevel="Level2" FontTypography="Subtitle" Text="{x:Static res:Strings.Advanced_Chart_Header}" />
|
||||
<StackPanel Margin="0,8,0,0" Orientation="Horizontal">
|
||||
<ui:TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="{x:Static res:Strings.Advanced_Chart_Metric}" />
|
||||
<ComboBox MinWidth="360" AutomationProperties.Name="{x:Static res:Strings.A11y_Advanced_Metric}" DisplayMemberPath="Label"
|
||||
ItemsSource="{Binding ViewModel.LiveMetrics}" SelectedItem="{Binding ViewModel.SelectedLiveMetric, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<ui:TextBlock Margin="0,6,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Chart_LiveNote}" TextWrapping="Wrap" />
|
||||
<ui:TextBlock Margin="0,4,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Chart_Band}" TextWrapping="Wrap"
|
||||
Visibility="{Binding ViewModel.LiveBand, Converter={StaticResource BoolToVis}}" />
|
||||
<ui:TextBlock Margin="0,12,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Chart_Empty}"
|
||||
Visibility="{Binding ViewModel.LiveChartEmpty, Converter={StaticResource BoolToVis}}" />
|
||||
<charts:AdvancedSeriesChart x:Name="LiveChart" Height="320" Margin="0,8,0,0" TimeOfDay="True"
|
||||
Visibility="{Binding ViewModel.LiveChartEmpty, Converter={StaticResource InverseBoolToVis}}" />
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
|
||||
<!-- Session: what one session recorded with the option on stored. -->
|
||||
<TabItem Header="{x:Static vm:AdvancedViewModel.TabSession}">
|
||||
<StackPanel Margin="0,12,0,0">
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Session_Empty}" TextWrapping="Wrap"
|
||||
Visibility="{Binding ViewModel.NoSessions, Converter={StaticResource BoolToVis}}" />
|
||||
<StackPanel Visibility="{Binding ViewModel.NoSessions, Converter={StaticResource InverseBoolToVis}}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ui:TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="{x:Static res:Strings.Advanced_Session_Pick}" />
|
||||
<ComboBox MinWidth="420" AutomationProperties.Name="{x:Static res:Strings.A11y_Advanced_Session}" DisplayMemberPath="Text"
|
||||
ItemsSource="{Binding ViewModel.SessionOptions}" SelectedItem="{Binding ViewModel.SelectedSession, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<ui:TextBlock Margin="0,8,0,0" Style="{StaticResource SecondaryText}" Text="{Binding ViewModel.SessionSources}" TextWrapping="Wrap"
|
||||
Visibility="{Binding ViewModel.SessionSources, Converter={StaticResource NullToCollapsed}}" />
|
||||
|
||||
<ui:TextBlock Margin="0,20,0,0" AutomationProperties.HeadingLevel="Level2" FontTypography="Subtitle" Text="{x:Static res:Strings.Advanced_Session_Facts}" />
|
||||
<ItemsControl Focusable="False" ItemsSource="{Binding ViewModel.SessionGroups}" />
|
||||
|
||||
<ui:TextBlock Margin="0,20,0,0" AutomationProperties.HeadingLevel="Level2" FontTypography="Subtitle" Text="{x:Static res:Strings.Advanced_Session_Stats}" />
|
||||
<ui:TextBlock Margin="0,8,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Session_NoStats}" TextWrapping="Wrap"
|
||||
Visibility="{Binding ViewModel.SessionHasNoStats, Converter={StaticResource BoolToVis}}" />
|
||||
<DataGrid MaxHeight="360" Margin="0,8,0,0" AutoGenerateColumns="False" AutomationProperties.Name="{x:Static res:Strings.Advanced_Session_Stats}"
|
||||
CanUserAddRows="False" HeadersVisibility="Column" IsReadOnly="True" ItemsSource="{Binding ViewModel.SessionStats}" SelectionMode="Single"
|
||||
Visibility="{Binding ViewModel.SessionHasNoStats, Converter={StaticResource InverseBoolToVis}}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Width="Auto" MinWidth="320" Binding="{Binding Label}" Header="{x:Static res:Strings.Advanced_Col_Name}" />
|
||||
<DataGridTextColumn Width="Auto" MinWidth="90" Binding="{Binding Samples}" Header="{x:Static res:Strings.Advanced_Col_Samples}" />
|
||||
<DataGridTextColumn Width="Auto" MinWidth="110" Binding="{Binding Min}" Header="{x:Static res:Strings.Advanced_Min}" />
|
||||
<DataGridTextColumn Width="Auto" MinWidth="110" Binding="{Binding Mean}" Header="{x:Static res:Strings.Advanced_Mean}" />
|
||||
<DataGridTextColumn Width="Auto" MinWidth="110" Binding="{Binding Max}" Header="{x:Static res:Strings.Advanced_Max}" />
|
||||
<DataGridTemplateColumn Width="*" CanUserResize="False" CanUserSort="False" IsReadOnly="True" controls:CellName.Path="Label" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
<ui:TextBlock Margin="0,20,0,0" AutomationProperties.HeadingLevel="Level2" FontTypography="Subtitle" Text="{x:Static res:Strings.Advanced_Chart_Header}" />
|
||||
<ui:TextBlock Margin="0,8,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Session_NoSeries}" TextWrapping="Wrap"
|
||||
Visibility="{Binding ViewModel.SessionSeriesGone, Converter={StaticResource BoolToVis}}" />
|
||||
<StackPanel Margin="0,8,0,0" Orientation="Horizontal">
|
||||
<ui:TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="{x:Static res:Strings.Advanced_Chart_Metric}" />
|
||||
<ComboBox MinWidth="360" AutomationProperties.Name="{x:Static res:Strings.A11y_Advanced_Metric}" DisplayMemberPath="Label"
|
||||
ItemsSource="{Binding ViewModel.SessionMetrics}" SelectedItem="{Binding ViewModel.SelectedSessionMetric, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<ui:TextBlock Margin="0,4,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Chart_Band}" TextWrapping="Wrap"
|
||||
Visibility="{Binding ViewModel.SessionBand, Converter={StaticResource BoolToVis}}" />
|
||||
<ui:TextBlock Margin="0,12,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Chart_Empty}"
|
||||
Visibility="{Binding ViewModel.SessionChartEmpty, Converter={StaticResource BoolToVis}}" />
|
||||
<charts:AdvancedSeriesChart x:Name="SessionChart" Height="320" Margin="0,8,0,0"
|
||||
Visibility="{Binding ViewModel.SessionChartEmpty, Converter={StaticResource InverseBoolToVis}}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
|
||||
<!-- Sources: the whole catalog, read or not, with the reason. -->
|
||||
<TabItem Header="{x:Static vm:AdvancedViewModel.TabSources}">
|
||||
<StackPanel Margin="0,12,0,0">
|
||||
<ui:TextBlock Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Sources_Intro}" TextWrapping="Wrap" />
|
||||
<ui:TextBlock Margin="0,8,0,0" Text="{Binding ViewModel.SourcesNow}" TextWrapping="Wrap"
|
||||
Visibility="{Binding ViewModel.SourcesNow, Converter={StaticResource NullToCollapsed}}" />
|
||||
<ui:TextBlock Margin="0,4,0,0" Style="{StaticResource SecondaryText}" Text="{x:Static res:Strings.Advanced_Elevation_Hint}" TextWrapping="Wrap" />
|
||||
<DataGrid MaxHeight="560" Margin="0,12,0,0" AutoGenerateColumns="False" AutomationProperties.Name="{x:Static vm:AdvancedViewModel.TabSources}"
|
||||
CanUserAddRows="False" HeadersVisibility="Column" IsReadOnly="True" ItemsSource="{Binding ViewModel.SourceRows}" SelectionMode="Single">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Width="Auto" MinWidth="320" MaxWidth="520" Binding="{Binding Label}" Header="{x:Static res:Strings.Advanced_Col_Name}" />
|
||||
<DataGridTextColumn Width="Auto" MinWidth="120" Binding="{Binding Scope}" Header="{x:Static res:Strings.Advanced_Col_Scope}" />
|
||||
<DataGridTextColumn Width="Auto" MinWidth="140" Binding="{Binding Source}" Header="{x:Static res:Strings.Advanced_Col_Source}" />
|
||||
<DataGridTextColumn Width="Auto" MinWidth="260" Binding="{Binding Status}" Header="{x:Static res:Strings.Advanced_Col_Status}" />
|
||||
<DataGridTemplateColumn Width="*" CanUserResize="False" CanUserSort="False" IsReadOnly="True" controls:CellName.Path="Label" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Page>
|
||||
@@ -0,0 +1,47 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using FrameLedger.App.ViewModels;
|
||||
using Wpf.Ui.Abstractions.Controls;
|
||||
|
||||
namespace FrameLedger.App.Pages;
|
||||
|
||||
/// <summary>
|
||||
/// The Advanced page (owner decision D101; <c>08_UI</c> §Advanced). The view model asks the Agent about this PC only
|
||||
/// between <c>Loaded</c> and <c>Unloaded</c> — which is what lets the Agent stop reading sensors when no game runs
|
||||
/// and the page is closed (D107) — and the two charts are drawn here from the lines it presents.
|
||||
/// </summary>
|
||||
public partial class AdvancedPage : INavigableView<AdvancedViewModel>
|
||||
{
|
||||
public AdvancedPage(AdvancedViewModel viewModel)
|
||||
{
|
||||
ViewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
|
||||
DataContext = this;
|
||||
InitializeComponent();
|
||||
|
||||
ViewModel.LivePresented += OnLivePresented;
|
||||
ViewModel.SessionPresented += OnSessionPresented;
|
||||
OnLivePresented(this, EventArgs.Empty);
|
||||
OnSessionPresented(this, EventArgs.Empty);
|
||||
Loaded += (_, _) => ViewModel.Attach();
|
||||
Unloaded += (_, _) => ViewModel.Detach();
|
||||
IsVisibleChanged += (_, e) =>
|
||||
{
|
||||
// A window hidden to the tray is not on screen either: the Agent is not asked for a page nobody sees.
|
||||
if (e.NewValue is true && IsLoaded)
|
||||
{
|
||||
ViewModel.Attach();
|
||||
}
|
||||
else if (e.NewValue is false)
|
||||
{
|
||||
ViewModel.Detach();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public AdvancedViewModel ViewModel { get; }
|
||||
|
||||
private void OnLivePresented(object? sender, EventArgs e) => LiveChart.Show(ViewModel.LiveLines, ViewModel.LiveUnit);
|
||||
|
||||
private void OnSessionPresented(object? sender, EventArgs e) => SessionChart.Show(ViewModel.SessionLines, ViewModel.SessionUnit);
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the Advanced page is offered (owner decisions D101 and D105): its navigation item is there, and Ctrl+6
|
||||
/// opens it, only while this is on. Set at start from <c>telemetry.advanced</c> and again whenever Settings moves the
|
||||
/// switch; in a viewer it is also on when the copy holds a session recorded with the option on, since that is what a
|
||||
/// copy is opened to look at.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// A static that XAML binds to, as <see cref="ContrastTheme"/> is: the shell's navigation item lives in the window's
|
||||
/// XAML, which a language change rebuilds, and a setting read once at start would not follow the switch.
|
||||
/// </remarks>
|
||||
public static class AdvancedOption
|
||||
{
|
||||
private static bool _isOn;
|
||||
|
||||
/// <summary>WPF's change notice for a static property: what a binding to <see cref="IsOn"/> listens to, weakly.</summary>
|
||||
public static event EventHandler<PropertyChangedEventArgs>? StaticPropertyChanged;
|
||||
|
||||
public static bool IsOn
|
||||
{
|
||||
get => _isOn;
|
||||
set
|
||||
{
|
||||
if (_isOn == value)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_isOn = value;
|
||||
StaticPropertyChanged?.Invoke(null, new PropertyChangedEventArgs(nameof(IsOn)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
|
||||
/// <summary>
|
||||
/// The session the Advanced page should show when it next opens: a session's summary names it, then navigates. One
|
||||
/// slot, taken once — a page opened from the navigation pane afterwards shows its newest session as usual.
|
||||
/// </summary>
|
||||
public sealed class AdvancedSelection
|
||||
{
|
||||
private long _sessionId;
|
||||
|
||||
/// <summary>A session was asked for: a page already on screen takes it now.</summary>
|
||||
public event EventHandler? Requested;
|
||||
|
||||
/// <summary>Asks the page to show <paramref name="sessionId"/> - now if it is on screen, else the next time it opens.</summary>
|
||||
public void Request(long sessionId)
|
||||
{
|
||||
Interlocked.Exchange(ref _sessionId, sessionId);
|
||||
Requested?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
/// <summary>The session asked for since the last call, or null.</summary>
|
||||
public long? Take() => Interlocked.Exchange(ref _sessionId, 0) is > 0 and long id ? id : null;
|
||||
}
|
||||
@@ -41,6 +41,7 @@ public static class EmbeddedDocuments
|
||||
"guide/09-troubleshooting.md",
|
||||
"guide/10-glossary.md",
|
||||
"guide/11-alpha-builds.md",
|
||||
"guide/12-advanced-metrics.md",
|
||||
"guide/terms-in-plain-words.md",
|
||||
];
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ public sealed class SessionSummaryOpener : ISessionSummaryOpener, ISessionWindow
|
||||
new TriStateOverridePrompt(() => window!.Dialogs),
|
||||
_services.GetRequiredService<IFileSaver>(),
|
||||
_services.GetRequiredService<IMessageStrip>());
|
||||
viewModel.ShowAdvanced = ShowAdvanced;
|
||||
window = new SessionSummaryWindow(viewModel, _services.GetRequiredService<IThemeApplier>(), _services.GetRequiredService<AppearanceSettings>())
|
||||
{
|
||||
Owner = _shell.Current,
|
||||
@@ -85,6 +86,17 @@ public sealed class SessionSummaryOpener : ISessionSummaryOpener, ISessionWindow
|
||||
}
|
||||
|
||||
/// <summary>The open window, back in front of the user: out of the taskbar first if it was minimised.</summary>
|
||||
/// <summary>The summary's "Advanced metrics…": the page is asked for that session, opened, and the main window brought forward.</summary>
|
||||
private void ShowAdvanced(long sessionId)
|
||||
{
|
||||
_services.GetRequiredService<AdvancedSelection>().Request(sessionId);
|
||||
_services.GetRequiredService<IPageNavigator>().Navigate<Pages.AdvancedPage>();
|
||||
if (_shell.Current is { } main)
|
||||
{
|
||||
BringForward(main);
|
||||
}
|
||||
}
|
||||
|
||||
private static void BringForward(Window window)
|
||||
{
|
||||
if (window.WindowState == WindowState.Minimized)
|
||||
|
||||
@@ -31,6 +31,10 @@ public static class ShellShortcuts
|
||||
case "4":
|
||||
navigator.Navigate<LogsPage>();
|
||||
return true;
|
||||
case "6" when AdvancedOption.IsOn:
|
||||
// Owner decision D105: the Advanced page keeps its number free while its option is off.
|
||||
navigator.Navigate<AdvancedPage>();
|
||||
return true;
|
||||
case "5":
|
||||
navigator.Navigate<SettingsPage>();
|
||||
return true;
|
||||
|
||||
Generated
+735
@@ -29,9 +29,12 @@ public static class Strings
|
||||
/// <summary>Every key, for an audit that walks them.</summary>
|
||||
public static IReadOnlyList<string> Keys { get; } =
|
||||
[
|
||||
nameof(A11y_Advanced_Metric),
|
||||
nameof(A11y_Advanced_Session),
|
||||
nameof(A11y_Agent_Connected),
|
||||
nameof(A11y_Change_Format),
|
||||
nameof(A11y_ChangeMarker_Format),
|
||||
nameof(A11y_Chart_Advanced),
|
||||
nameof(A11y_Chart_Clocks),
|
||||
nameof(A11y_Chart_Compare),
|
||||
nameof(A11y_Chart_ControlType),
|
||||
@@ -45,6 +48,7 @@ public static class Strings
|
||||
nameof(A11y_Chart_Temps),
|
||||
nameof(A11y_Chart_Trend),
|
||||
nameof(A11y_Chart_Vram),
|
||||
nameof(A11y_ChartData_Advanced),
|
||||
nameof(A11y_ChartData_Compare),
|
||||
nameof(A11y_ChartData_Latency),
|
||||
nameof(A11y_ChartData_Sessions),
|
||||
@@ -102,6 +106,245 @@ public static class Strings
|
||||
nameof(AddGame_Dialog_Title),
|
||||
nameof(AddGame_Failed_Format),
|
||||
nameof(AddGame_Filter),
|
||||
nameof(Adv_ffx_framegen_config),
|
||||
nameof(Adv_ffx_memory_usage),
|
||||
nameof(Adv_ffx_upscale_depth),
|
||||
nameof(Adv_ffx_upscale_exposure),
|
||||
nameof(Adv_ffx_upscale_flags),
|
||||
nameof(Adv_ffx_upscale_frame_time_delta),
|
||||
nameof(Adv_ffx_upscale_jitter),
|
||||
nameof(Adv_ffx_upscale_sharpening),
|
||||
nameof(Adv_lhm_battery),
|
||||
nameof(Adv_lhm_board_fan),
|
||||
nameof(Adv_lhm_board_fan_control),
|
||||
nameof(Adv_lhm_board_model),
|
||||
nameof(Adv_lhm_board_sensor_chip),
|
||||
nameof(Adv_lhm_board_temperature),
|
||||
nameof(Adv_lhm_board_voltage),
|
||||
nameof(Adv_lhm_controller),
|
||||
nameof(Adv_lhm_cpu_clock),
|
||||
nameof(Adv_lhm_cpu_load),
|
||||
nameof(Adv_lhm_cpu_power),
|
||||
nameof(Adv_lhm_cpu_temperature),
|
||||
nameof(Adv_lhm_cpu_voltage),
|
||||
nameof(Adv_lhm_gpu_clock),
|
||||
nameof(Adv_lhm_gpu_current),
|
||||
nameof(Adv_lhm_gpu_fan),
|
||||
nameof(Adv_lhm_gpu_fan_control),
|
||||
nameof(Adv_lhm_gpu_load),
|
||||
nameof(Adv_lhm_gpu_memory),
|
||||
nameof(Adv_lhm_gpu_power),
|
||||
nameof(Adv_lhm_gpu_temperature),
|
||||
nameof(Adv_lhm_gpu_throughput),
|
||||
nameof(Adv_lhm_gpu_voltage),
|
||||
nameof(Adv_lhm_memory_load),
|
||||
nameof(Adv_lhm_memory_modules),
|
||||
nameof(Adv_lhm_memory_temperature),
|
||||
nameof(Adv_lhm_psu),
|
||||
nameof(Adv_lhm_storage_models),
|
||||
nameof(Adv_lhm_storage_temperature),
|
||||
nameof(Adv_ngx_parameters),
|
||||
nameof(Adv_nvapi_clock_video),
|
||||
nameof(Adv_nvapi_display_adaptive_sync_off),
|
||||
nameof(Adv_nvapi_display_edid),
|
||||
nameof(Adv_nvapi_display_hdr_formats),
|
||||
nameof(Adv_nvapi_display_luminance_max),
|
||||
nameof(Adv_nvapi_display_luminance_max_frame_average),
|
||||
nameof(Adv_nvapi_display_luminance_min),
|
||||
nameof(Adv_nvapi_display_max_frame_interval),
|
||||
nameof(Adv_nvapi_display_vrr_support),
|
||||
nameof(Adv_nvapi_driver_base_branch),
|
||||
nameof(Adv_nvapi_driver_chipset),
|
||||
nameof(Adv_nvapi_driver_dch),
|
||||
nameof(Adv_nvapi_driver_global_profile),
|
||||
nameof(Adv_nvapi_driver_interface_version),
|
||||
nameof(Adv_nvapi_driver_package),
|
||||
nameof(Adv_nvapi_encoder_fps),
|
||||
nameof(Adv_nvapi_encoder_latency),
|
||||
nameof(Adv_nvapi_encoder_session_processes),
|
||||
nameof(Adv_nvapi_encoder_sessions),
|
||||
nameof(Adv_nvapi_gpu_architecture),
|
||||
nameof(Adv_nvapi_gpu_board_serial),
|
||||
nameof(Adv_nvapi_gpu_bus_type),
|
||||
nameof(Adv_nvapi_gpu_clock_base_core),
|
||||
nameof(Adv_nvapi_gpu_clock_base_memory),
|
||||
nameof(Adv_nvapi_gpu_clock_boost_core),
|
||||
nameof(Adv_nvapi_gpu_clock_boost_memory),
|
||||
nameof(Adv_nvapi_gpu_core_count),
|
||||
nameof(Adv_nvapi_gpu_external),
|
||||
nameof(Adv_nvapi_gpu_fan_duty),
|
||||
nameof(Adv_nvapi_gpu_pci_ids),
|
||||
nameof(Adv_nvapi_gpu_power),
|
||||
nameof(Adv_nvapi_gpu_ram_bus_width),
|
||||
nameof(Adv_nvapi_gpu_ram_type),
|
||||
nameof(Adv_nvapi_gpu_rt_cores),
|
||||
nameof(Adv_nvapi_gpu_system_type),
|
||||
nameof(Adv_nvapi_gpu_temp_default_max),
|
||||
nameof(Adv_nvapi_gpu_tensor_cores),
|
||||
nameof(Adv_nvapi_gpu_type),
|
||||
nameof(Adv_nvapi_gpu_uuid),
|
||||
nameof(Adv_nvapi_gpu_vbios_version),
|
||||
nameof(Adv_nvapi_gpu_voltage),
|
||||
nameof(Adv_nvapi_limit_ac_battery),
|
||||
nameof(Adv_nvapi_limit_api),
|
||||
nameof(Adv_nvapi_limit_insufficient_power),
|
||||
nameof(Adv_nvapi_load_bus),
|
||||
nameof(Adv_nvapi_load_framebuffer),
|
||||
nameof(Adv_nvapi_load_video),
|
||||
nameof(Adv_nvapi_pstate),
|
||||
nameof(Adv_nvapi_reflex_frame_report),
|
||||
nameof(Adv_nvapi_reflex_mode),
|
||||
nameof(Adv_nvapi_reflex_sleep_status),
|
||||
nameof(Adv_nvapi_session_driver_profile),
|
||||
nameof(Adv_nvapi_session_source_colorspace),
|
||||
nameof(Adv_nvapi_session_vrr_display_mode),
|
||||
nameof(Adv_nvapi_session_vrr_enabled),
|
||||
nameof(Adv_nvapi_session_vrr_possible),
|
||||
nameof(Adv_nvapi_session_vrr_requested),
|
||||
nameof(Adv_nvapi_temp_board),
|
||||
nameof(Adv_nvapi_temp_power_supply),
|
||||
nameof(Adv_nvapi_vram_available),
|
||||
nameof(Adv_nvapi_vram_dedicated),
|
||||
nameof(Adv_nvapi_vram_dedicated_available),
|
||||
nameof(Adv_nvapi_vram_eviction_count),
|
||||
nameof(Adv_nvapi_vram_evictions_size),
|
||||
nameof(Adv_nvapi_vram_framebuffer_physical),
|
||||
nameof(Adv_nvapi_vram_framebuffer_virtual),
|
||||
nameof(Adv_nvapi_vram_in_use),
|
||||
nameof(Adv_nvapi_vram_promotion_count),
|
||||
nameof(Adv_nvapi_vram_promotions_size),
|
||||
nameof(Adv_nvapi_vram_shared),
|
||||
nameof(Adv_nvapi_vram_system),
|
||||
nameof(Adv_sl_constants_camera),
|
||||
nameof(Adv_sl_constants_depth),
|
||||
nameof(Adv_sl_constants_jitter),
|
||||
nameof(Adv_sl_constants_motion_vectors),
|
||||
nameof(Adv_sl_constants_projection),
|
||||
nameof(Adv_sl_constants_resets),
|
||||
nameof(Adv_sl_deepdvc_options),
|
||||
nameof(Adv_sl_dlss_alpha_upscaling),
|
||||
nameof(Adv_sl_dlss_auto_exposure),
|
||||
nameof(Adv_sl_dlss_exposure),
|
||||
nameof(Adv_sl_dlss_hdr_input),
|
||||
nameof(Adv_sl_dlss_optimal_settings),
|
||||
nameof(Adv_sl_dlss_output_size),
|
||||
nameof(Adv_sl_dlss_presets),
|
||||
nameof(Adv_sl_dlss_vram_estimate),
|
||||
nameof(Adv_sl_dlssd_options),
|
||||
nameof(Adv_sl_dlssg_frames_presented),
|
||||
nameof(Adv_sl_dlssg_options),
|
||||
nameof(Adv_sl_dlssg_state),
|
||||
nameof(Adv_sl_dlssg_vram_estimate),
|
||||
nameof(Adv_sl_feature_requirements),
|
||||
nameof(Adv_sl_feature_versions),
|
||||
nameof(Adv_sl_init_preferences),
|
||||
nameof(Adv_sl_nis_options),
|
||||
nameof(Adv_sl_nvperf),
|
||||
nameof(Adv_sl_pcl_markers),
|
||||
nameof(Adv_sl_reflex_state),
|
||||
nameof(Adv_xess_options),
|
||||
nameof(Advanced_Chart_Band),
|
||||
nameof(Advanced_Chart_Empty),
|
||||
nameof(Advanced_Chart_Header),
|
||||
nameof(Advanced_Chart_LiveNote),
|
||||
nameof(Advanced_Chart_Metric),
|
||||
nameof(Advanced_Chart_Seconds),
|
||||
nameof(Advanced_Chart_Time),
|
||||
nameof(Advanced_Col_Name),
|
||||
nameof(Advanced_Col_ReadAt),
|
||||
nameof(Advanced_Col_Samples),
|
||||
nameof(Advanced_Col_Scope),
|
||||
nameof(Advanced_Col_Source),
|
||||
nameof(Advanced_Col_Status),
|
||||
nameof(Advanced_Col_Value),
|
||||
nameof(Advanced_Elevation_Hint),
|
||||
nameof(Advanced_Facts_Header),
|
||||
nameof(Advanced_Header),
|
||||
nameof(Advanced_Machine_Intro),
|
||||
nameof(Advanced_Max),
|
||||
nameof(Advanced_Mean),
|
||||
nameof(Advanced_Min),
|
||||
nameof(Advanced_Now_Header),
|
||||
nameof(Advanced_Session_Empty),
|
||||
nameof(Advanced_Session_Facts),
|
||||
nameof(Advanced_Session_NoSeries),
|
||||
nameof(Advanced_Session_NoStats),
|
||||
nameof(Advanced_Session_Pick),
|
||||
nameof(Advanced_Session_Stats),
|
||||
nameof(Advanced_Sources_Intro),
|
||||
nameof(Advanced_SourcesLine),
|
||||
nameof(Advanced_State_Live),
|
||||
nameof(Advanced_State_NoAgent),
|
||||
nameof(Advanced_State_Off),
|
||||
nameof(Advanced_State_OlderAgent),
|
||||
nameof(Advanced_State_Viewer),
|
||||
nameof(Advanced_State_Waiting),
|
||||
nameof(Advanced_Status_Read),
|
||||
nameof(Advanced_Status_Readable),
|
||||
nameof(Advanced_Status_SourceSilent),
|
||||
nameof(Advanced_Tab_Machine),
|
||||
nameof(Advanced_Tab_Session),
|
||||
nameof(Advanced_Tab_Sources),
|
||||
nameof(AdvGroup_Board),
|
||||
nameof(AdvGroup_Cpu),
|
||||
nameof(AdvGroup_Display),
|
||||
nameof(AdvGroup_Driver),
|
||||
nameof(AdvGroup_FrameGeneration),
|
||||
nameof(AdvGroup_Gpu),
|
||||
nameof(AdvGroup_GpuMemory),
|
||||
nameof(AdvGroup_Latency),
|
||||
nameof(AdvGroup_Memory),
|
||||
nameof(AdvGroup_Storage),
|
||||
nameof(AdvGroup_Upscaling),
|
||||
nameof(AdvReach_Deferred),
|
||||
nameof(AdvReach_HookedCall),
|
||||
nameof(AdvReach_Identifier),
|
||||
nameof(AdvReach_Licence),
|
||||
nameof(AdvReach_NewHook),
|
||||
nameof(AdvReach_NotInHeaders),
|
||||
nameof(AdvReach_PlayerState),
|
||||
nameof(AdvReach_Refused),
|
||||
nameof(AdvReach_Spike),
|
||||
nameof(AdvScope_MachineFact),
|
||||
nameof(AdvScope_Series),
|
||||
nameof(AdvScope_SessionFact),
|
||||
nameof(AdvSource_Faulted),
|
||||
nameof(AdvSource_NotElevated),
|
||||
nameof(AdvSource_NotPresent),
|
||||
nameof(AdvSource_PawnIoMissing),
|
||||
nameof(AdvSource_Reading),
|
||||
nameof(AdvSource_Unknown),
|
||||
nameof(AdvToken_adaptive_sync),
|
||||
nameof(AdvToken_agp),
|
||||
nameof(AdvToken_axi),
|
||||
nameof(AdvToken_bt2100_pq),
|
||||
nameof(AdvToken_desktop),
|
||||
nameof(AdvToken_discrete),
|
||||
nameof(AdvToken_dolby_vision),
|
||||
nameof(AdvToken_driver_default),
|
||||
nameof(AdvToken_edr),
|
||||
nameof(AdvToken_fpci),
|
||||
nameof(AdvToken_game_ready),
|
||||
nameof(AdvToken_gsync_module),
|
||||
nameof(AdvToken_hdr10),
|
||||
nameof(AdvToken_hdr10_plus),
|
||||
nameof(AdvToken_hdr10_plus_gaming),
|
||||
nameof(AdvToken_integrated),
|
||||
nameof(AdvToken_laptop),
|
||||
nameof(AdvToken_no_profile_for_game),
|
||||
nameof(AdvToken_not_a_number),
|
||||
nameof(AdvToken_not_supported),
|
||||
nameof(AdvToken_pci),
|
||||
nameof(AdvToken_pci_express),
|
||||
nameof(AdvToken_rtx_new_feature),
|
||||
nameof(AdvToken_rtx_production),
|
||||
nameof(AdvToken_scrgb_linear),
|
||||
nameof(AdvToken_srgb),
|
||||
nameof(AdvToken_studio),
|
||||
nameof(AdvToken_ulmb),
|
||||
nameof(AdvToken_usable_now),
|
||||
nameof(AdvToken_user_set),
|
||||
nameof(AdvToken_variable_refresh),
|
||||
nameof(Agent_Banner_Missing_Body),
|
||||
nameof(Agent_Banner_Offline_Body),
|
||||
nameof(Agent_Banner_Offline_Title),
|
||||
@@ -801,6 +1044,7 @@ public static class Strings
|
||||
nameof(Menu_Tools_OpenDataFolder),
|
||||
nameof(Menu_Tools_UpdateRules),
|
||||
nameof(Menu_Tools_VulkanLayer),
|
||||
nameof(Nav_Advanced),
|
||||
nameof(Nav_Compare),
|
||||
nameof(Nav_Dashboard),
|
||||
nameof(Nav_Games),
|
||||
@@ -1064,6 +1308,7 @@ public static class Strings
|
||||
nameof(Store_Gog_Format),
|
||||
nameof(Store_Steam_Format),
|
||||
nameof(Store_Xbox_Format),
|
||||
nameof(Summary_Advanced_Button),
|
||||
nameof(Summary_Annotations_Header),
|
||||
nameof(Summary_Crash_Body),
|
||||
nameof(Summary_Crash_Title),
|
||||
@@ -1267,12 +1512,18 @@ public static class Strings
|
||||
nameof(Viewer_ChangesThisPc_Off),
|
||||
];
|
||||
|
||||
public static string A11y_Advanced_Metric => ResourceManager.GetString(nameof(A11y_Advanced_Metric), Culture) ?? nameof(A11y_Advanced_Metric);
|
||||
|
||||
public static string A11y_Advanced_Session => ResourceManager.GetString(nameof(A11y_Advanced_Session), Culture) ?? nameof(A11y_Advanced_Session);
|
||||
|
||||
public static string A11y_Agent_Connected => ResourceManager.GetString(nameof(A11y_Agent_Connected), Culture) ?? nameof(A11y_Agent_Connected);
|
||||
|
||||
public static string A11y_Change_Format => ResourceManager.GetString(nameof(A11y_Change_Format), Culture) ?? nameof(A11y_Change_Format);
|
||||
|
||||
public static string A11y_ChangeMarker_Format => ResourceManager.GetString(nameof(A11y_ChangeMarker_Format), Culture) ?? nameof(A11y_ChangeMarker_Format);
|
||||
|
||||
public static string A11y_Chart_Advanced => ResourceManager.GetString(nameof(A11y_Chart_Advanced), Culture) ?? nameof(A11y_Chart_Advanced);
|
||||
|
||||
public static string A11y_Chart_Clocks => ResourceManager.GetString(nameof(A11y_Chart_Clocks), Culture) ?? nameof(A11y_Chart_Clocks);
|
||||
|
||||
public static string A11y_Chart_Compare => ResourceManager.GetString(nameof(A11y_Chart_Compare), Culture) ?? nameof(A11y_Chart_Compare);
|
||||
@@ -1299,6 +1550,8 @@ public static class Strings
|
||||
|
||||
public static string A11y_Chart_Vram => ResourceManager.GetString(nameof(A11y_Chart_Vram), Culture) ?? nameof(A11y_Chart_Vram);
|
||||
|
||||
public static string A11y_ChartData_Advanced => ResourceManager.GetString(nameof(A11y_ChartData_Advanced), Culture) ?? nameof(A11y_ChartData_Advanced);
|
||||
|
||||
public static string A11y_ChartData_Compare => ResourceManager.GetString(nameof(A11y_ChartData_Compare), Culture) ?? nameof(A11y_ChartData_Compare);
|
||||
|
||||
public static string A11y_ChartData_Latency => ResourceManager.GetString(nameof(A11y_ChartData_Latency), Culture) ?? nameof(A11y_ChartData_Latency);
|
||||
@@ -1413,6 +1666,484 @@ public static class Strings
|
||||
|
||||
public static string AddGame_Filter => ResourceManager.GetString(nameof(AddGame_Filter), Culture) ?? nameof(AddGame_Filter);
|
||||
|
||||
public static string Adv_ffx_framegen_config => ResourceManager.GetString(nameof(Adv_ffx_framegen_config), Culture) ?? nameof(Adv_ffx_framegen_config);
|
||||
|
||||
public static string Adv_ffx_memory_usage => ResourceManager.GetString(nameof(Adv_ffx_memory_usage), Culture) ?? nameof(Adv_ffx_memory_usage);
|
||||
|
||||
public static string Adv_ffx_upscale_depth => ResourceManager.GetString(nameof(Adv_ffx_upscale_depth), Culture) ?? nameof(Adv_ffx_upscale_depth);
|
||||
|
||||
public static string Adv_ffx_upscale_exposure => ResourceManager.GetString(nameof(Adv_ffx_upscale_exposure), Culture) ?? nameof(Adv_ffx_upscale_exposure);
|
||||
|
||||
public static string Adv_ffx_upscale_flags => ResourceManager.GetString(nameof(Adv_ffx_upscale_flags), Culture) ?? nameof(Adv_ffx_upscale_flags);
|
||||
|
||||
public static string Adv_ffx_upscale_frame_time_delta => ResourceManager.GetString(nameof(Adv_ffx_upscale_frame_time_delta), Culture) ?? nameof(Adv_ffx_upscale_frame_time_delta);
|
||||
|
||||
public static string Adv_ffx_upscale_jitter => ResourceManager.GetString(nameof(Adv_ffx_upscale_jitter), Culture) ?? nameof(Adv_ffx_upscale_jitter);
|
||||
|
||||
public static string Adv_ffx_upscale_sharpening => ResourceManager.GetString(nameof(Adv_ffx_upscale_sharpening), Culture) ?? nameof(Adv_ffx_upscale_sharpening);
|
||||
|
||||
public static string Adv_lhm_battery => ResourceManager.GetString(nameof(Adv_lhm_battery), Culture) ?? nameof(Adv_lhm_battery);
|
||||
|
||||
public static string Adv_lhm_board_fan => ResourceManager.GetString(nameof(Adv_lhm_board_fan), Culture) ?? nameof(Adv_lhm_board_fan);
|
||||
|
||||
public static string Adv_lhm_board_fan_control => ResourceManager.GetString(nameof(Adv_lhm_board_fan_control), Culture) ?? nameof(Adv_lhm_board_fan_control);
|
||||
|
||||
public static string Adv_lhm_board_model => ResourceManager.GetString(nameof(Adv_lhm_board_model), Culture) ?? nameof(Adv_lhm_board_model);
|
||||
|
||||
public static string Adv_lhm_board_sensor_chip => ResourceManager.GetString(nameof(Adv_lhm_board_sensor_chip), Culture) ?? nameof(Adv_lhm_board_sensor_chip);
|
||||
|
||||
public static string Adv_lhm_board_temperature => ResourceManager.GetString(nameof(Adv_lhm_board_temperature), Culture) ?? nameof(Adv_lhm_board_temperature);
|
||||
|
||||
public static string Adv_lhm_board_voltage => ResourceManager.GetString(nameof(Adv_lhm_board_voltage), Culture) ?? nameof(Adv_lhm_board_voltage);
|
||||
|
||||
public static string Adv_lhm_controller => ResourceManager.GetString(nameof(Adv_lhm_controller), Culture) ?? nameof(Adv_lhm_controller);
|
||||
|
||||
public static string Adv_lhm_cpu_clock => ResourceManager.GetString(nameof(Adv_lhm_cpu_clock), Culture) ?? nameof(Adv_lhm_cpu_clock);
|
||||
|
||||
public static string Adv_lhm_cpu_load => ResourceManager.GetString(nameof(Adv_lhm_cpu_load), Culture) ?? nameof(Adv_lhm_cpu_load);
|
||||
|
||||
public static string Adv_lhm_cpu_power => ResourceManager.GetString(nameof(Adv_lhm_cpu_power), Culture) ?? nameof(Adv_lhm_cpu_power);
|
||||
|
||||
public static string Adv_lhm_cpu_temperature => ResourceManager.GetString(nameof(Adv_lhm_cpu_temperature), Culture) ?? nameof(Adv_lhm_cpu_temperature);
|
||||
|
||||
public static string Adv_lhm_cpu_voltage => ResourceManager.GetString(nameof(Adv_lhm_cpu_voltage), Culture) ?? nameof(Adv_lhm_cpu_voltage);
|
||||
|
||||
public static string Adv_lhm_gpu_clock => ResourceManager.GetString(nameof(Adv_lhm_gpu_clock), Culture) ?? nameof(Adv_lhm_gpu_clock);
|
||||
|
||||
public static string Adv_lhm_gpu_current => ResourceManager.GetString(nameof(Adv_lhm_gpu_current), Culture) ?? nameof(Adv_lhm_gpu_current);
|
||||
|
||||
public static string Adv_lhm_gpu_fan => ResourceManager.GetString(nameof(Adv_lhm_gpu_fan), Culture) ?? nameof(Adv_lhm_gpu_fan);
|
||||
|
||||
public static string Adv_lhm_gpu_fan_control => ResourceManager.GetString(nameof(Adv_lhm_gpu_fan_control), Culture) ?? nameof(Adv_lhm_gpu_fan_control);
|
||||
|
||||
public static string Adv_lhm_gpu_load => ResourceManager.GetString(nameof(Adv_lhm_gpu_load), Culture) ?? nameof(Adv_lhm_gpu_load);
|
||||
|
||||
public static string Adv_lhm_gpu_memory => ResourceManager.GetString(nameof(Adv_lhm_gpu_memory), Culture) ?? nameof(Adv_lhm_gpu_memory);
|
||||
|
||||
public static string Adv_lhm_gpu_power => ResourceManager.GetString(nameof(Adv_lhm_gpu_power), Culture) ?? nameof(Adv_lhm_gpu_power);
|
||||
|
||||
public static string Adv_lhm_gpu_temperature => ResourceManager.GetString(nameof(Adv_lhm_gpu_temperature), Culture) ?? nameof(Adv_lhm_gpu_temperature);
|
||||
|
||||
public static string Adv_lhm_gpu_throughput => ResourceManager.GetString(nameof(Adv_lhm_gpu_throughput), Culture) ?? nameof(Adv_lhm_gpu_throughput);
|
||||
|
||||
public static string Adv_lhm_gpu_voltage => ResourceManager.GetString(nameof(Adv_lhm_gpu_voltage), Culture) ?? nameof(Adv_lhm_gpu_voltage);
|
||||
|
||||
public static string Adv_lhm_memory_load => ResourceManager.GetString(nameof(Adv_lhm_memory_load), Culture) ?? nameof(Adv_lhm_memory_load);
|
||||
|
||||
public static string Adv_lhm_memory_modules => ResourceManager.GetString(nameof(Adv_lhm_memory_modules), Culture) ?? nameof(Adv_lhm_memory_modules);
|
||||
|
||||
public static string Adv_lhm_memory_temperature => ResourceManager.GetString(nameof(Adv_lhm_memory_temperature), Culture) ?? nameof(Adv_lhm_memory_temperature);
|
||||
|
||||
public static string Adv_lhm_psu => ResourceManager.GetString(nameof(Adv_lhm_psu), Culture) ?? nameof(Adv_lhm_psu);
|
||||
|
||||
public static string Adv_lhm_storage_models => ResourceManager.GetString(nameof(Adv_lhm_storage_models), Culture) ?? nameof(Adv_lhm_storage_models);
|
||||
|
||||
public static string Adv_lhm_storage_temperature => ResourceManager.GetString(nameof(Adv_lhm_storage_temperature), Culture) ?? nameof(Adv_lhm_storage_temperature);
|
||||
|
||||
public static string Adv_ngx_parameters => ResourceManager.GetString(nameof(Adv_ngx_parameters), Culture) ?? nameof(Adv_ngx_parameters);
|
||||
|
||||
public static string Adv_nvapi_clock_video => ResourceManager.GetString(nameof(Adv_nvapi_clock_video), Culture) ?? nameof(Adv_nvapi_clock_video);
|
||||
|
||||
public static string Adv_nvapi_display_adaptive_sync_off => ResourceManager.GetString(nameof(Adv_nvapi_display_adaptive_sync_off), Culture) ?? nameof(Adv_nvapi_display_adaptive_sync_off);
|
||||
|
||||
public static string Adv_nvapi_display_edid => ResourceManager.GetString(nameof(Adv_nvapi_display_edid), Culture) ?? nameof(Adv_nvapi_display_edid);
|
||||
|
||||
public static string Adv_nvapi_display_hdr_formats => ResourceManager.GetString(nameof(Adv_nvapi_display_hdr_formats), Culture) ?? nameof(Adv_nvapi_display_hdr_formats);
|
||||
|
||||
public static string Adv_nvapi_display_luminance_max => ResourceManager.GetString(nameof(Adv_nvapi_display_luminance_max), Culture) ?? nameof(Adv_nvapi_display_luminance_max);
|
||||
|
||||
public static string Adv_nvapi_display_luminance_max_frame_average => ResourceManager.GetString(nameof(Adv_nvapi_display_luminance_max_frame_average), Culture) ?? nameof(Adv_nvapi_display_luminance_max_frame_average);
|
||||
|
||||
public static string Adv_nvapi_display_luminance_min => ResourceManager.GetString(nameof(Adv_nvapi_display_luminance_min), Culture) ?? nameof(Adv_nvapi_display_luminance_min);
|
||||
|
||||
public static string Adv_nvapi_display_max_frame_interval => ResourceManager.GetString(nameof(Adv_nvapi_display_max_frame_interval), Culture) ?? nameof(Adv_nvapi_display_max_frame_interval);
|
||||
|
||||
public static string Adv_nvapi_display_vrr_support => ResourceManager.GetString(nameof(Adv_nvapi_display_vrr_support), Culture) ?? nameof(Adv_nvapi_display_vrr_support);
|
||||
|
||||
public static string Adv_nvapi_driver_base_branch => ResourceManager.GetString(nameof(Adv_nvapi_driver_base_branch), Culture) ?? nameof(Adv_nvapi_driver_base_branch);
|
||||
|
||||
public static string Adv_nvapi_driver_chipset => ResourceManager.GetString(nameof(Adv_nvapi_driver_chipset), Culture) ?? nameof(Adv_nvapi_driver_chipset);
|
||||
|
||||
public static string Adv_nvapi_driver_dch => ResourceManager.GetString(nameof(Adv_nvapi_driver_dch), Culture) ?? nameof(Adv_nvapi_driver_dch);
|
||||
|
||||
public static string Adv_nvapi_driver_global_profile => ResourceManager.GetString(nameof(Adv_nvapi_driver_global_profile), Culture) ?? nameof(Adv_nvapi_driver_global_profile);
|
||||
|
||||
public static string Adv_nvapi_driver_interface_version => ResourceManager.GetString(nameof(Adv_nvapi_driver_interface_version), Culture) ?? nameof(Adv_nvapi_driver_interface_version);
|
||||
|
||||
public static string Adv_nvapi_driver_package => ResourceManager.GetString(nameof(Adv_nvapi_driver_package), Culture) ?? nameof(Adv_nvapi_driver_package);
|
||||
|
||||
public static string Adv_nvapi_encoder_fps => ResourceManager.GetString(nameof(Adv_nvapi_encoder_fps), Culture) ?? nameof(Adv_nvapi_encoder_fps);
|
||||
|
||||
public static string Adv_nvapi_encoder_latency => ResourceManager.GetString(nameof(Adv_nvapi_encoder_latency), Culture) ?? nameof(Adv_nvapi_encoder_latency);
|
||||
|
||||
public static string Adv_nvapi_encoder_session_processes => ResourceManager.GetString(nameof(Adv_nvapi_encoder_session_processes), Culture) ?? nameof(Adv_nvapi_encoder_session_processes);
|
||||
|
||||
public static string Adv_nvapi_encoder_sessions => ResourceManager.GetString(nameof(Adv_nvapi_encoder_sessions), Culture) ?? nameof(Adv_nvapi_encoder_sessions);
|
||||
|
||||
public static string Adv_nvapi_gpu_architecture => ResourceManager.GetString(nameof(Adv_nvapi_gpu_architecture), Culture) ?? nameof(Adv_nvapi_gpu_architecture);
|
||||
|
||||
public static string Adv_nvapi_gpu_board_serial => ResourceManager.GetString(nameof(Adv_nvapi_gpu_board_serial), Culture) ?? nameof(Adv_nvapi_gpu_board_serial);
|
||||
|
||||
public static string Adv_nvapi_gpu_bus_type => ResourceManager.GetString(nameof(Adv_nvapi_gpu_bus_type), Culture) ?? nameof(Adv_nvapi_gpu_bus_type);
|
||||
|
||||
public static string Adv_nvapi_gpu_clock_base_core => ResourceManager.GetString(nameof(Adv_nvapi_gpu_clock_base_core), Culture) ?? nameof(Adv_nvapi_gpu_clock_base_core);
|
||||
|
||||
public static string Adv_nvapi_gpu_clock_base_memory => ResourceManager.GetString(nameof(Adv_nvapi_gpu_clock_base_memory), Culture) ?? nameof(Adv_nvapi_gpu_clock_base_memory);
|
||||
|
||||
public static string Adv_nvapi_gpu_clock_boost_core => ResourceManager.GetString(nameof(Adv_nvapi_gpu_clock_boost_core), Culture) ?? nameof(Adv_nvapi_gpu_clock_boost_core);
|
||||
|
||||
public static string Adv_nvapi_gpu_clock_boost_memory => ResourceManager.GetString(nameof(Adv_nvapi_gpu_clock_boost_memory), Culture) ?? nameof(Adv_nvapi_gpu_clock_boost_memory);
|
||||
|
||||
public static string Adv_nvapi_gpu_core_count => ResourceManager.GetString(nameof(Adv_nvapi_gpu_core_count), Culture) ?? nameof(Adv_nvapi_gpu_core_count);
|
||||
|
||||
public static string Adv_nvapi_gpu_external => ResourceManager.GetString(nameof(Adv_nvapi_gpu_external), Culture) ?? nameof(Adv_nvapi_gpu_external);
|
||||
|
||||
public static string Adv_nvapi_gpu_fan_duty => ResourceManager.GetString(nameof(Adv_nvapi_gpu_fan_duty), Culture) ?? nameof(Adv_nvapi_gpu_fan_duty);
|
||||
|
||||
public static string Adv_nvapi_gpu_pci_ids => ResourceManager.GetString(nameof(Adv_nvapi_gpu_pci_ids), Culture) ?? nameof(Adv_nvapi_gpu_pci_ids);
|
||||
|
||||
public static string Adv_nvapi_gpu_power => ResourceManager.GetString(nameof(Adv_nvapi_gpu_power), Culture) ?? nameof(Adv_nvapi_gpu_power);
|
||||
|
||||
public static string Adv_nvapi_gpu_ram_bus_width => ResourceManager.GetString(nameof(Adv_nvapi_gpu_ram_bus_width), Culture) ?? nameof(Adv_nvapi_gpu_ram_bus_width);
|
||||
|
||||
public static string Adv_nvapi_gpu_ram_type => ResourceManager.GetString(nameof(Adv_nvapi_gpu_ram_type), Culture) ?? nameof(Adv_nvapi_gpu_ram_type);
|
||||
|
||||
public static string Adv_nvapi_gpu_rt_cores => ResourceManager.GetString(nameof(Adv_nvapi_gpu_rt_cores), Culture) ?? nameof(Adv_nvapi_gpu_rt_cores);
|
||||
|
||||
public static string Adv_nvapi_gpu_system_type => ResourceManager.GetString(nameof(Adv_nvapi_gpu_system_type), Culture) ?? nameof(Adv_nvapi_gpu_system_type);
|
||||
|
||||
public static string Adv_nvapi_gpu_temp_default_max => ResourceManager.GetString(nameof(Adv_nvapi_gpu_temp_default_max), Culture) ?? nameof(Adv_nvapi_gpu_temp_default_max);
|
||||
|
||||
public static string Adv_nvapi_gpu_tensor_cores => ResourceManager.GetString(nameof(Adv_nvapi_gpu_tensor_cores), Culture) ?? nameof(Adv_nvapi_gpu_tensor_cores);
|
||||
|
||||
public static string Adv_nvapi_gpu_type => ResourceManager.GetString(nameof(Adv_nvapi_gpu_type), Culture) ?? nameof(Adv_nvapi_gpu_type);
|
||||
|
||||
public static string Adv_nvapi_gpu_uuid => ResourceManager.GetString(nameof(Adv_nvapi_gpu_uuid), Culture) ?? nameof(Adv_nvapi_gpu_uuid);
|
||||
|
||||
public static string Adv_nvapi_gpu_vbios_version => ResourceManager.GetString(nameof(Adv_nvapi_gpu_vbios_version), Culture) ?? nameof(Adv_nvapi_gpu_vbios_version);
|
||||
|
||||
public static string Adv_nvapi_gpu_voltage => ResourceManager.GetString(nameof(Adv_nvapi_gpu_voltage), Culture) ?? nameof(Adv_nvapi_gpu_voltage);
|
||||
|
||||
public static string Adv_nvapi_limit_ac_battery => ResourceManager.GetString(nameof(Adv_nvapi_limit_ac_battery), Culture) ?? nameof(Adv_nvapi_limit_ac_battery);
|
||||
|
||||
public static string Adv_nvapi_limit_api => ResourceManager.GetString(nameof(Adv_nvapi_limit_api), Culture) ?? nameof(Adv_nvapi_limit_api);
|
||||
|
||||
public static string Adv_nvapi_limit_insufficient_power => ResourceManager.GetString(nameof(Adv_nvapi_limit_insufficient_power), Culture) ?? nameof(Adv_nvapi_limit_insufficient_power);
|
||||
|
||||
public static string Adv_nvapi_load_bus => ResourceManager.GetString(nameof(Adv_nvapi_load_bus), Culture) ?? nameof(Adv_nvapi_load_bus);
|
||||
|
||||
public static string Adv_nvapi_load_framebuffer => ResourceManager.GetString(nameof(Adv_nvapi_load_framebuffer), Culture) ?? nameof(Adv_nvapi_load_framebuffer);
|
||||
|
||||
public static string Adv_nvapi_load_video => ResourceManager.GetString(nameof(Adv_nvapi_load_video), Culture) ?? nameof(Adv_nvapi_load_video);
|
||||
|
||||
public static string Adv_nvapi_pstate => ResourceManager.GetString(nameof(Adv_nvapi_pstate), Culture) ?? nameof(Adv_nvapi_pstate);
|
||||
|
||||
public static string Adv_nvapi_reflex_frame_report => ResourceManager.GetString(nameof(Adv_nvapi_reflex_frame_report), Culture) ?? nameof(Adv_nvapi_reflex_frame_report);
|
||||
|
||||
public static string Adv_nvapi_reflex_mode => ResourceManager.GetString(nameof(Adv_nvapi_reflex_mode), Culture) ?? nameof(Adv_nvapi_reflex_mode);
|
||||
|
||||
public static string Adv_nvapi_reflex_sleep_status => ResourceManager.GetString(nameof(Adv_nvapi_reflex_sleep_status), Culture) ?? nameof(Adv_nvapi_reflex_sleep_status);
|
||||
|
||||
public static string Adv_nvapi_session_driver_profile => ResourceManager.GetString(nameof(Adv_nvapi_session_driver_profile), Culture) ?? nameof(Adv_nvapi_session_driver_profile);
|
||||
|
||||
public static string Adv_nvapi_session_source_colorspace => ResourceManager.GetString(nameof(Adv_nvapi_session_source_colorspace), Culture) ?? nameof(Adv_nvapi_session_source_colorspace);
|
||||
|
||||
public static string Adv_nvapi_session_vrr_display_mode => ResourceManager.GetString(nameof(Adv_nvapi_session_vrr_display_mode), Culture) ?? nameof(Adv_nvapi_session_vrr_display_mode);
|
||||
|
||||
public static string Adv_nvapi_session_vrr_enabled => ResourceManager.GetString(nameof(Adv_nvapi_session_vrr_enabled), Culture) ?? nameof(Adv_nvapi_session_vrr_enabled);
|
||||
|
||||
public static string Adv_nvapi_session_vrr_possible => ResourceManager.GetString(nameof(Adv_nvapi_session_vrr_possible), Culture) ?? nameof(Adv_nvapi_session_vrr_possible);
|
||||
|
||||
public static string Adv_nvapi_session_vrr_requested => ResourceManager.GetString(nameof(Adv_nvapi_session_vrr_requested), Culture) ?? nameof(Adv_nvapi_session_vrr_requested);
|
||||
|
||||
public static string Adv_nvapi_temp_board => ResourceManager.GetString(nameof(Adv_nvapi_temp_board), Culture) ?? nameof(Adv_nvapi_temp_board);
|
||||
|
||||
public static string Adv_nvapi_temp_power_supply => ResourceManager.GetString(nameof(Adv_nvapi_temp_power_supply), Culture) ?? nameof(Adv_nvapi_temp_power_supply);
|
||||
|
||||
public static string Adv_nvapi_vram_available => ResourceManager.GetString(nameof(Adv_nvapi_vram_available), Culture) ?? nameof(Adv_nvapi_vram_available);
|
||||
|
||||
public static string Adv_nvapi_vram_dedicated => ResourceManager.GetString(nameof(Adv_nvapi_vram_dedicated), Culture) ?? nameof(Adv_nvapi_vram_dedicated);
|
||||
|
||||
public static string Adv_nvapi_vram_dedicated_available => ResourceManager.GetString(nameof(Adv_nvapi_vram_dedicated_available), Culture) ?? nameof(Adv_nvapi_vram_dedicated_available);
|
||||
|
||||
public static string Adv_nvapi_vram_eviction_count => ResourceManager.GetString(nameof(Adv_nvapi_vram_eviction_count), Culture) ?? nameof(Adv_nvapi_vram_eviction_count);
|
||||
|
||||
public static string Adv_nvapi_vram_evictions_size => ResourceManager.GetString(nameof(Adv_nvapi_vram_evictions_size), Culture) ?? nameof(Adv_nvapi_vram_evictions_size);
|
||||
|
||||
public static string Adv_nvapi_vram_framebuffer_physical => ResourceManager.GetString(nameof(Adv_nvapi_vram_framebuffer_physical), Culture) ?? nameof(Adv_nvapi_vram_framebuffer_physical);
|
||||
|
||||
public static string Adv_nvapi_vram_framebuffer_virtual => ResourceManager.GetString(nameof(Adv_nvapi_vram_framebuffer_virtual), Culture) ?? nameof(Adv_nvapi_vram_framebuffer_virtual);
|
||||
|
||||
public static string Adv_nvapi_vram_in_use => ResourceManager.GetString(nameof(Adv_nvapi_vram_in_use), Culture) ?? nameof(Adv_nvapi_vram_in_use);
|
||||
|
||||
public static string Adv_nvapi_vram_promotion_count => ResourceManager.GetString(nameof(Adv_nvapi_vram_promotion_count), Culture) ?? nameof(Adv_nvapi_vram_promotion_count);
|
||||
|
||||
public static string Adv_nvapi_vram_promotions_size => ResourceManager.GetString(nameof(Adv_nvapi_vram_promotions_size), Culture) ?? nameof(Adv_nvapi_vram_promotions_size);
|
||||
|
||||
public static string Adv_nvapi_vram_shared => ResourceManager.GetString(nameof(Adv_nvapi_vram_shared), Culture) ?? nameof(Adv_nvapi_vram_shared);
|
||||
|
||||
public static string Adv_nvapi_vram_system => ResourceManager.GetString(nameof(Adv_nvapi_vram_system), Culture) ?? nameof(Adv_nvapi_vram_system);
|
||||
|
||||
public static string Adv_sl_constants_camera => ResourceManager.GetString(nameof(Adv_sl_constants_camera), Culture) ?? nameof(Adv_sl_constants_camera);
|
||||
|
||||
public static string Adv_sl_constants_depth => ResourceManager.GetString(nameof(Adv_sl_constants_depth), Culture) ?? nameof(Adv_sl_constants_depth);
|
||||
|
||||
public static string Adv_sl_constants_jitter => ResourceManager.GetString(nameof(Adv_sl_constants_jitter), Culture) ?? nameof(Adv_sl_constants_jitter);
|
||||
|
||||
public static string Adv_sl_constants_motion_vectors => ResourceManager.GetString(nameof(Adv_sl_constants_motion_vectors), Culture) ?? nameof(Adv_sl_constants_motion_vectors);
|
||||
|
||||
public static string Adv_sl_constants_projection => ResourceManager.GetString(nameof(Adv_sl_constants_projection), Culture) ?? nameof(Adv_sl_constants_projection);
|
||||
|
||||
public static string Adv_sl_constants_resets => ResourceManager.GetString(nameof(Adv_sl_constants_resets), Culture) ?? nameof(Adv_sl_constants_resets);
|
||||
|
||||
public static string Adv_sl_deepdvc_options => ResourceManager.GetString(nameof(Adv_sl_deepdvc_options), Culture) ?? nameof(Adv_sl_deepdvc_options);
|
||||
|
||||
public static string Adv_sl_dlss_alpha_upscaling => ResourceManager.GetString(nameof(Adv_sl_dlss_alpha_upscaling), Culture) ?? nameof(Adv_sl_dlss_alpha_upscaling);
|
||||
|
||||
public static string Adv_sl_dlss_auto_exposure => ResourceManager.GetString(nameof(Adv_sl_dlss_auto_exposure), Culture) ?? nameof(Adv_sl_dlss_auto_exposure);
|
||||
|
||||
public static string Adv_sl_dlss_exposure => ResourceManager.GetString(nameof(Adv_sl_dlss_exposure), Culture) ?? nameof(Adv_sl_dlss_exposure);
|
||||
|
||||
public static string Adv_sl_dlss_hdr_input => ResourceManager.GetString(nameof(Adv_sl_dlss_hdr_input), Culture) ?? nameof(Adv_sl_dlss_hdr_input);
|
||||
|
||||
public static string Adv_sl_dlss_optimal_settings => ResourceManager.GetString(nameof(Adv_sl_dlss_optimal_settings), Culture) ?? nameof(Adv_sl_dlss_optimal_settings);
|
||||
|
||||
public static string Adv_sl_dlss_output_size => ResourceManager.GetString(nameof(Adv_sl_dlss_output_size), Culture) ?? nameof(Adv_sl_dlss_output_size);
|
||||
|
||||
public static string Adv_sl_dlss_presets => ResourceManager.GetString(nameof(Adv_sl_dlss_presets), Culture) ?? nameof(Adv_sl_dlss_presets);
|
||||
|
||||
public static string Adv_sl_dlss_vram_estimate => ResourceManager.GetString(nameof(Adv_sl_dlss_vram_estimate), Culture) ?? nameof(Adv_sl_dlss_vram_estimate);
|
||||
|
||||
public static string Adv_sl_dlssd_options => ResourceManager.GetString(nameof(Adv_sl_dlssd_options), Culture) ?? nameof(Adv_sl_dlssd_options);
|
||||
|
||||
public static string Adv_sl_dlssg_frames_presented => ResourceManager.GetString(nameof(Adv_sl_dlssg_frames_presented), Culture) ?? nameof(Adv_sl_dlssg_frames_presented);
|
||||
|
||||
public static string Adv_sl_dlssg_options => ResourceManager.GetString(nameof(Adv_sl_dlssg_options), Culture) ?? nameof(Adv_sl_dlssg_options);
|
||||
|
||||
public static string Adv_sl_dlssg_state => ResourceManager.GetString(nameof(Adv_sl_dlssg_state), Culture) ?? nameof(Adv_sl_dlssg_state);
|
||||
|
||||
public static string Adv_sl_dlssg_vram_estimate => ResourceManager.GetString(nameof(Adv_sl_dlssg_vram_estimate), Culture) ?? nameof(Adv_sl_dlssg_vram_estimate);
|
||||
|
||||
public static string Adv_sl_feature_requirements => ResourceManager.GetString(nameof(Adv_sl_feature_requirements), Culture) ?? nameof(Adv_sl_feature_requirements);
|
||||
|
||||
public static string Adv_sl_feature_versions => ResourceManager.GetString(nameof(Adv_sl_feature_versions), Culture) ?? nameof(Adv_sl_feature_versions);
|
||||
|
||||
public static string Adv_sl_init_preferences => ResourceManager.GetString(nameof(Adv_sl_init_preferences), Culture) ?? nameof(Adv_sl_init_preferences);
|
||||
|
||||
public static string Adv_sl_nis_options => ResourceManager.GetString(nameof(Adv_sl_nis_options), Culture) ?? nameof(Adv_sl_nis_options);
|
||||
|
||||
public static string Adv_sl_nvperf => ResourceManager.GetString(nameof(Adv_sl_nvperf), Culture) ?? nameof(Adv_sl_nvperf);
|
||||
|
||||
public static string Adv_sl_pcl_markers => ResourceManager.GetString(nameof(Adv_sl_pcl_markers), Culture) ?? nameof(Adv_sl_pcl_markers);
|
||||
|
||||
public static string Adv_sl_reflex_state => ResourceManager.GetString(nameof(Adv_sl_reflex_state), Culture) ?? nameof(Adv_sl_reflex_state);
|
||||
|
||||
public static string Adv_xess_options => ResourceManager.GetString(nameof(Adv_xess_options), Culture) ?? nameof(Adv_xess_options);
|
||||
|
||||
public static string Advanced_Chart_Band => ResourceManager.GetString(nameof(Advanced_Chart_Band), Culture) ?? nameof(Advanced_Chart_Band);
|
||||
|
||||
public static string Advanced_Chart_Empty => ResourceManager.GetString(nameof(Advanced_Chart_Empty), Culture) ?? nameof(Advanced_Chart_Empty);
|
||||
|
||||
public static string Advanced_Chart_Header => ResourceManager.GetString(nameof(Advanced_Chart_Header), Culture) ?? nameof(Advanced_Chart_Header);
|
||||
|
||||
public static string Advanced_Chart_LiveNote => ResourceManager.GetString(nameof(Advanced_Chart_LiveNote), Culture) ?? nameof(Advanced_Chart_LiveNote);
|
||||
|
||||
public static string Advanced_Chart_Metric => ResourceManager.GetString(nameof(Advanced_Chart_Metric), Culture) ?? nameof(Advanced_Chart_Metric);
|
||||
|
||||
public static string Advanced_Chart_Seconds => ResourceManager.GetString(nameof(Advanced_Chart_Seconds), Culture) ?? nameof(Advanced_Chart_Seconds);
|
||||
|
||||
public static string Advanced_Chart_Time => ResourceManager.GetString(nameof(Advanced_Chart_Time), Culture) ?? nameof(Advanced_Chart_Time);
|
||||
|
||||
public static string Advanced_Col_Name => ResourceManager.GetString(nameof(Advanced_Col_Name), Culture) ?? nameof(Advanced_Col_Name);
|
||||
|
||||
public static string Advanced_Col_ReadAt => ResourceManager.GetString(nameof(Advanced_Col_ReadAt), Culture) ?? nameof(Advanced_Col_ReadAt);
|
||||
|
||||
public static string Advanced_Col_Samples => ResourceManager.GetString(nameof(Advanced_Col_Samples), Culture) ?? nameof(Advanced_Col_Samples);
|
||||
|
||||
public static string Advanced_Col_Scope => ResourceManager.GetString(nameof(Advanced_Col_Scope), Culture) ?? nameof(Advanced_Col_Scope);
|
||||
|
||||
public static string Advanced_Col_Source => ResourceManager.GetString(nameof(Advanced_Col_Source), Culture) ?? nameof(Advanced_Col_Source);
|
||||
|
||||
public static string Advanced_Col_Status => ResourceManager.GetString(nameof(Advanced_Col_Status), Culture) ?? nameof(Advanced_Col_Status);
|
||||
|
||||
public static string Advanced_Col_Value => ResourceManager.GetString(nameof(Advanced_Col_Value), Culture) ?? nameof(Advanced_Col_Value);
|
||||
|
||||
public static string Advanced_Elevation_Hint => ResourceManager.GetString(nameof(Advanced_Elevation_Hint), Culture) ?? nameof(Advanced_Elevation_Hint);
|
||||
|
||||
public static string Advanced_Facts_Header => ResourceManager.GetString(nameof(Advanced_Facts_Header), Culture) ?? nameof(Advanced_Facts_Header);
|
||||
|
||||
public static string Advanced_Header => ResourceManager.GetString(nameof(Advanced_Header), Culture) ?? nameof(Advanced_Header);
|
||||
|
||||
public static string Advanced_Machine_Intro => ResourceManager.GetString(nameof(Advanced_Machine_Intro), Culture) ?? nameof(Advanced_Machine_Intro);
|
||||
|
||||
public static string Advanced_Max => ResourceManager.GetString(nameof(Advanced_Max), Culture) ?? nameof(Advanced_Max);
|
||||
|
||||
public static string Advanced_Mean => ResourceManager.GetString(nameof(Advanced_Mean), Culture) ?? nameof(Advanced_Mean);
|
||||
|
||||
public static string Advanced_Min => ResourceManager.GetString(nameof(Advanced_Min), Culture) ?? nameof(Advanced_Min);
|
||||
|
||||
public static string Advanced_Now_Header => ResourceManager.GetString(nameof(Advanced_Now_Header), Culture) ?? nameof(Advanced_Now_Header);
|
||||
|
||||
public static string Advanced_Session_Empty => ResourceManager.GetString(nameof(Advanced_Session_Empty), Culture) ?? nameof(Advanced_Session_Empty);
|
||||
|
||||
public static string Advanced_Session_Facts => ResourceManager.GetString(nameof(Advanced_Session_Facts), Culture) ?? nameof(Advanced_Session_Facts);
|
||||
|
||||
public static string Advanced_Session_NoSeries => ResourceManager.GetString(nameof(Advanced_Session_NoSeries), Culture) ?? nameof(Advanced_Session_NoSeries);
|
||||
|
||||
public static string Advanced_Session_NoStats => ResourceManager.GetString(nameof(Advanced_Session_NoStats), Culture) ?? nameof(Advanced_Session_NoStats);
|
||||
|
||||
public static string Advanced_Session_Pick => ResourceManager.GetString(nameof(Advanced_Session_Pick), Culture) ?? nameof(Advanced_Session_Pick);
|
||||
|
||||
public static string Advanced_Session_Stats => ResourceManager.GetString(nameof(Advanced_Session_Stats), Culture) ?? nameof(Advanced_Session_Stats);
|
||||
|
||||
public static string Advanced_Sources_Intro => ResourceManager.GetString(nameof(Advanced_Sources_Intro), Culture) ?? nameof(Advanced_Sources_Intro);
|
||||
|
||||
public static string Advanced_SourcesLine => ResourceManager.GetString(nameof(Advanced_SourcesLine), Culture) ?? nameof(Advanced_SourcesLine);
|
||||
|
||||
public static string Advanced_State_Live => ResourceManager.GetString(nameof(Advanced_State_Live), Culture) ?? nameof(Advanced_State_Live);
|
||||
|
||||
public static string Advanced_State_NoAgent => ResourceManager.GetString(nameof(Advanced_State_NoAgent), Culture) ?? nameof(Advanced_State_NoAgent);
|
||||
|
||||
public static string Advanced_State_Off => ResourceManager.GetString(nameof(Advanced_State_Off), Culture) ?? nameof(Advanced_State_Off);
|
||||
|
||||
public static string Advanced_State_OlderAgent => ResourceManager.GetString(nameof(Advanced_State_OlderAgent), Culture) ?? nameof(Advanced_State_OlderAgent);
|
||||
|
||||
public static string Advanced_State_Viewer => ResourceManager.GetString(nameof(Advanced_State_Viewer), Culture) ?? nameof(Advanced_State_Viewer);
|
||||
|
||||
public static string Advanced_State_Waiting => ResourceManager.GetString(nameof(Advanced_State_Waiting), Culture) ?? nameof(Advanced_State_Waiting);
|
||||
|
||||
public static string Advanced_Status_Read => ResourceManager.GetString(nameof(Advanced_Status_Read), Culture) ?? nameof(Advanced_Status_Read);
|
||||
|
||||
public static string Advanced_Status_Readable => ResourceManager.GetString(nameof(Advanced_Status_Readable), Culture) ?? nameof(Advanced_Status_Readable);
|
||||
|
||||
public static string Advanced_Status_SourceSilent => ResourceManager.GetString(nameof(Advanced_Status_SourceSilent), Culture) ?? nameof(Advanced_Status_SourceSilent);
|
||||
|
||||
public static string Advanced_Tab_Machine => ResourceManager.GetString(nameof(Advanced_Tab_Machine), Culture) ?? nameof(Advanced_Tab_Machine);
|
||||
|
||||
public static string Advanced_Tab_Session => ResourceManager.GetString(nameof(Advanced_Tab_Session), Culture) ?? nameof(Advanced_Tab_Session);
|
||||
|
||||
public static string Advanced_Tab_Sources => ResourceManager.GetString(nameof(Advanced_Tab_Sources), Culture) ?? nameof(Advanced_Tab_Sources);
|
||||
|
||||
public static string AdvGroup_Board => ResourceManager.GetString(nameof(AdvGroup_Board), Culture) ?? nameof(AdvGroup_Board);
|
||||
|
||||
public static string AdvGroup_Cpu => ResourceManager.GetString(nameof(AdvGroup_Cpu), Culture) ?? nameof(AdvGroup_Cpu);
|
||||
|
||||
public static string AdvGroup_Display => ResourceManager.GetString(nameof(AdvGroup_Display), Culture) ?? nameof(AdvGroup_Display);
|
||||
|
||||
public static string AdvGroup_Driver => ResourceManager.GetString(nameof(AdvGroup_Driver), Culture) ?? nameof(AdvGroup_Driver);
|
||||
|
||||
public static string AdvGroup_FrameGeneration => ResourceManager.GetString(nameof(AdvGroup_FrameGeneration), Culture) ?? nameof(AdvGroup_FrameGeneration);
|
||||
|
||||
public static string AdvGroup_Gpu => ResourceManager.GetString(nameof(AdvGroup_Gpu), Culture) ?? nameof(AdvGroup_Gpu);
|
||||
|
||||
public static string AdvGroup_GpuMemory => ResourceManager.GetString(nameof(AdvGroup_GpuMemory), Culture) ?? nameof(AdvGroup_GpuMemory);
|
||||
|
||||
public static string AdvGroup_Latency => ResourceManager.GetString(nameof(AdvGroup_Latency), Culture) ?? nameof(AdvGroup_Latency);
|
||||
|
||||
public static string AdvGroup_Memory => ResourceManager.GetString(nameof(AdvGroup_Memory), Culture) ?? nameof(AdvGroup_Memory);
|
||||
|
||||
public static string AdvGroup_Storage => ResourceManager.GetString(nameof(AdvGroup_Storage), Culture) ?? nameof(AdvGroup_Storage);
|
||||
|
||||
public static string AdvGroup_Upscaling => ResourceManager.GetString(nameof(AdvGroup_Upscaling), Culture) ?? nameof(AdvGroup_Upscaling);
|
||||
|
||||
public static string AdvReach_Deferred => ResourceManager.GetString(nameof(AdvReach_Deferred), Culture) ?? nameof(AdvReach_Deferred);
|
||||
|
||||
public static string AdvReach_HookedCall => ResourceManager.GetString(nameof(AdvReach_HookedCall), Culture) ?? nameof(AdvReach_HookedCall);
|
||||
|
||||
public static string AdvReach_Identifier => ResourceManager.GetString(nameof(AdvReach_Identifier), Culture) ?? nameof(AdvReach_Identifier);
|
||||
|
||||
public static string AdvReach_Licence => ResourceManager.GetString(nameof(AdvReach_Licence), Culture) ?? nameof(AdvReach_Licence);
|
||||
|
||||
public static string AdvReach_NewHook => ResourceManager.GetString(nameof(AdvReach_NewHook), Culture) ?? nameof(AdvReach_NewHook);
|
||||
|
||||
public static string AdvReach_NotInHeaders => ResourceManager.GetString(nameof(AdvReach_NotInHeaders), Culture) ?? nameof(AdvReach_NotInHeaders);
|
||||
|
||||
public static string AdvReach_PlayerState => ResourceManager.GetString(nameof(AdvReach_PlayerState), Culture) ?? nameof(AdvReach_PlayerState);
|
||||
|
||||
public static string AdvReach_Refused => ResourceManager.GetString(nameof(AdvReach_Refused), Culture) ?? nameof(AdvReach_Refused);
|
||||
|
||||
public static string AdvReach_Spike => ResourceManager.GetString(nameof(AdvReach_Spike), Culture) ?? nameof(AdvReach_Spike);
|
||||
|
||||
public static string AdvScope_MachineFact => ResourceManager.GetString(nameof(AdvScope_MachineFact), Culture) ?? nameof(AdvScope_MachineFact);
|
||||
|
||||
public static string AdvScope_Series => ResourceManager.GetString(nameof(AdvScope_Series), Culture) ?? nameof(AdvScope_Series);
|
||||
|
||||
public static string AdvScope_SessionFact => ResourceManager.GetString(nameof(AdvScope_SessionFact), Culture) ?? nameof(AdvScope_SessionFact);
|
||||
|
||||
public static string AdvSource_Faulted => ResourceManager.GetString(nameof(AdvSource_Faulted), Culture) ?? nameof(AdvSource_Faulted);
|
||||
|
||||
public static string AdvSource_NotElevated => ResourceManager.GetString(nameof(AdvSource_NotElevated), Culture) ?? nameof(AdvSource_NotElevated);
|
||||
|
||||
public static string AdvSource_NotPresent => ResourceManager.GetString(nameof(AdvSource_NotPresent), Culture) ?? nameof(AdvSource_NotPresent);
|
||||
|
||||
public static string AdvSource_PawnIoMissing => ResourceManager.GetString(nameof(AdvSource_PawnIoMissing), Culture) ?? nameof(AdvSource_PawnIoMissing);
|
||||
|
||||
public static string AdvSource_Reading => ResourceManager.GetString(nameof(AdvSource_Reading), Culture) ?? nameof(AdvSource_Reading);
|
||||
|
||||
public static string AdvSource_Unknown => ResourceManager.GetString(nameof(AdvSource_Unknown), Culture) ?? nameof(AdvSource_Unknown);
|
||||
|
||||
public static string AdvToken_adaptive_sync => ResourceManager.GetString(nameof(AdvToken_adaptive_sync), Culture) ?? nameof(AdvToken_adaptive_sync);
|
||||
|
||||
public static string AdvToken_agp => ResourceManager.GetString(nameof(AdvToken_agp), Culture) ?? nameof(AdvToken_agp);
|
||||
|
||||
public static string AdvToken_axi => ResourceManager.GetString(nameof(AdvToken_axi), Culture) ?? nameof(AdvToken_axi);
|
||||
|
||||
public static string AdvToken_bt2100_pq => ResourceManager.GetString(nameof(AdvToken_bt2100_pq), Culture) ?? nameof(AdvToken_bt2100_pq);
|
||||
|
||||
public static string AdvToken_desktop => ResourceManager.GetString(nameof(AdvToken_desktop), Culture) ?? nameof(AdvToken_desktop);
|
||||
|
||||
public static string AdvToken_discrete => ResourceManager.GetString(nameof(AdvToken_discrete), Culture) ?? nameof(AdvToken_discrete);
|
||||
|
||||
public static string AdvToken_dolby_vision => ResourceManager.GetString(nameof(AdvToken_dolby_vision), Culture) ?? nameof(AdvToken_dolby_vision);
|
||||
|
||||
public static string AdvToken_driver_default => ResourceManager.GetString(nameof(AdvToken_driver_default), Culture) ?? nameof(AdvToken_driver_default);
|
||||
|
||||
public static string AdvToken_edr => ResourceManager.GetString(nameof(AdvToken_edr), Culture) ?? nameof(AdvToken_edr);
|
||||
|
||||
public static string AdvToken_fpci => ResourceManager.GetString(nameof(AdvToken_fpci), Culture) ?? nameof(AdvToken_fpci);
|
||||
|
||||
public static string AdvToken_game_ready => ResourceManager.GetString(nameof(AdvToken_game_ready), Culture) ?? nameof(AdvToken_game_ready);
|
||||
|
||||
public static string AdvToken_gsync_module => ResourceManager.GetString(nameof(AdvToken_gsync_module), Culture) ?? nameof(AdvToken_gsync_module);
|
||||
|
||||
public static string AdvToken_hdr10 => ResourceManager.GetString(nameof(AdvToken_hdr10), Culture) ?? nameof(AdvToken_hdr10);
|
||||
|
||||
public static string AdvToken_hdr10_plus => ResourceManager.GetString(nameof(AdvToken_hdr10_plus), Culture) ?? nameof(AdvToken_hdr10_plus);
|
||||
|
||||
public static string AdvToken_hdr10_plus_gaming => ResourceManager.GetString(nameof(AdvToken_hdr10_plus_gaming), Culture) ?? nameof(AdvToken_hdr10_plus_gaming);
|
||||
|
||||
public static string AdvToken_integrated => ResourceManager.GetString(nameof(AdvToken_integrated), Culture) ?? nameof(AdvToken_integrated);
|
||||
|
||||
public static string AdvToken_laptop => ResourceManager.GetString(nameof(AdvToken_laptop), Culture) ?? nameof(AdvToken_laptop);
|
||||
|
||||
public static string AdvToken_no_profile_for_game => ResourceManager.GetString(nameof(AdvToken_no_profile_for_game), Culture) ?? nameof(AdvToken_no_profile_for_game);
|
||||
|
||||
public static string AdvToken_not_a_number => ResourceManager.GetString(nameof(AdvToken_not_a_number), Culture) ?? nameof(AdvToken_not_a_number);
|
||||
|
||||
public static string AdvToken_not_supported => ResourceManager.GetString(nameof(AdvToken_not_supported), Culture) ?? nameof(AdvToken_not_supported);
|
||||
|
||||
public static string AdvToken_pci => ResourceManager.GetString(nameof(AdvToken_pci), Culture) ?? nameof(AdvToken_pci);
|
||||
|
||||
public static string AdvToken_pci_express => ResourceManager.GetString(nameof(AdvToken_pci_express), Culture) ?? nameof(AdvToken_pci_express);
|
||||
|
||||
public static string AdvToken_rtx_new_feature => ResourceManager.GetString(nameof(AdvToken_rtx_new_feature), Culture) ?? nameof(AdvToken_rtx_new_feature);
|
||||
|
||||
public static string AdvToken_rtx_production => ResourceManager.GetString(nameof(AdvToken_rtx_production), Culture) ?? nameof(AdvToken_rtx_production);
|
||||
|
||||
public static string AdvToken_scrgb_linear => ResourceManager.GetString(nameof(AdvToken_scrgb_linear), Culture) ?? nameof(AdvToken_scrgb_linear);
|
||||
|
||||
public static string AdvToken_srgb => ResourceManager.GetString(nameof(AdvToken_srgb), Culture) ?? nameof(AdvToken_srgb);
|
||||
|
||||
public static string AdvToken_studio => ResourceManager.GetString(nameof(AdvToken_studio), Culture) ?? nameof(AdvToken_studio);
|
||||
|
||||
public static string AdvToken_ulmb => ResourceManager.GetString(nameof(AdvToken_ulmb), Culture) ?? nameof(AdvToken_ulmb);
|
||||
|
||||
public static string AdvToken_usable_now => ResourceManager.GetString(nameof(AdvToken_usable_now), Culture) ?? nameof(AdvToken_usable_now);
|
||||
|
||||
public static string AdvToken_user_set => ResourceManager.GetString(nameof(AdvToken_user_set), Culture) ?? nameof(AdvToken_user_set);
|
||||
|
||||
public static string AdvToken_variable_refresh => ResourceManager.GetString(nameof(AdvToken_variable_refresh), Culture) ?? nameof(AdvToken_variable_refresh);
|
||||
|
||||
public static string Agent_Banner_Missing_Body => ResourceManager.GetString(nameof(Agent_Banner_Missing_Body), Culture) ?? nameof(Agent_Banner_Missing_Body);
|
||||
|
||||
public static string Agent_Banner_Offline_Body => ResourceManager.GetString(nameof(Agent_Banner_Offline_Body), Culture) ?? nameof(Agent_Banner_Offline_Body);
|
||||
@@ -2811,6 +3542,8 @@ public static class Strings
|
||||
|
||||
public static string Menu_Tools_VulkanLayer => ResourceManager.GetString(nameof(Menu_Tools_VulkanLayer), Culture) ?? nameof(Menu_Tools_VulkanLayer);
|
||||
|
||||
public static string Nav_Advanced => ResourceManager.GetString(nameof(Nav_Advanced), Culture) ?? nameof(Nav_Advanced);
|
||||
|
||||
public static string Nav_Compare => ResourceManager.GetString(nameof(Nav_Compare), Culture) ?? nameof(Nav_Compare);
|
||||
|
||||
public static string Nav_Dashboard => ResourceManager.GetString(nameof(Nav_Dashboard), Culture) ?? nameof(Nav_Dashboard);
|
||||
@@ -3337,6 +4070,8 @@ public static class Strings
|
||||
|
||||
public static string Store_Xbox_Format => ResourceManager.GetString(nameof(Store_Xbox_Format), Culture) ?? nameof(Store_Xbox_Format);
|
||||
|
||||
public static string Summary_Advanced_Button => ResourceManager.GetString(nameof(Summary_Advanced_Button), Culture) ?? nameof(Summary_Advanced_Button);
|
||||
|
||||
public static string Summary_Annotations_Header => ResourceManager.GetString(nameof(Summary_Annotations_Header), Culture) ?? nameof(Summary_Annotations_Header);
|
||||
|
||||
public static string Summary_Crash_Body => ResourceManager.GetString(nameof(Summary_Crash_Body), Culture) ?? nameof(Summary_Crash_Body);
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -18,9 +18,738 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="A11y_Advanced_Metric" xml:space="preserve">
|
||||
<value>Reading to chart</value>
|
||||
</data>
|
||||
<data name="A11y_Advanced_Session" xml:space="preserve">
|
||||
<value>Session to show</value>
|
||||
</data>
|
||||
<data name="A11y_Chart_Advanced" xml:space="preserve">
|
||||
<value>Advanced reading over time</value>
|
||||
</data>
|
||||
<data name="A11y_ChartData_Advanced" xml:space="preserve">
|
||||
<value>Each line is one reading. The table beside the chart lists the same readings.</value>
|
||||
</data>
|
||||
<data name="About_Title" xml:space="preserve">
|
||||
<value>About FrameLedger</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_framegen_config" xml:space="preserve">
|
||||
<value>The game's FSR frame-generation configuration</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_memory_usage" xml:space="preserve">
|
||||
<value>FSR's own video memory, when the game asks it</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_depth" xml:space="preserve">
|
||||
<value>Near and far planes and field of view given to FSR</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_exposure" xml:space="preserve">
|
||||
<value>Pre-exposure given to FSR</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_flags" xml:space="preserve">
|
||||
<value>The flags of the game's FSR dispatch</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_frame_time_delta" xml:space="preserve">
|
||||
<value>The frame time the game reported to FSR</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_jitter" xml:space="preserve">
|
||||
<value>The jitter offsets the game gave FSR</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_sharpening" xml:space="preserve">
|
||||
<value>FSR sharpening: on or off, and its strength</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_battery" xml:space="preserve">
|
||||
<value>Battery sensors</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_fan" xml:space="preserve">
|
||||
<value>Each fan header's speed</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_fan_control" xml:space="preserve">
|
||||
<value>Each fan header's duty</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_model" xml:space="preserve">
|
||||
<value>The motherboard's maker and model</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_sensor_chip" xml:space="preserve">
|
||||
<value>The board's sensor chip</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_temperature" xml:space="preserve">
|
||||
<value>The board's temperature sensors</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_voltage" xml:space="preserve">
|
||||
<value>The board's voltage rails</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_controller" xml:space="preserve">
|
||||
<value>Fan-controller sensors: the same search of USB devices</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_clock" xml:space="preserve">
|
||||
<value>Each core's clock, and the bus clock</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_load" xml:space="preserve">
|
||||
<value>Processor load: the total and each core</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_power" xml:space="preserve">
|
||||
<value>Processor power: the package, the cores</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_temperature" xml:space="preserve">
|
||||
<value>Processor temperatures: the package and each core</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_voltage" xml:space="preserve">
|
||||
<value>Processor voltages</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_clock" xml:space="preserve">
|
||||
<value>Every clock of the card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_current" xml:space="preserve">
|
||||
<value>Every current of the card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_fan" xml:space="preserve">
|
||||
<value>Every fan of the card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_fan_control" xml:space="preserve">
|
||||
<value>Each fan's duty</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_load" xml:space="preserve">
|
||||
<value>Every load of the card: its engines, its bus, its memory controller</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_memory" xml:space="preserve">
|
||||
<value>The card's memory counters: total, free, used, Direct3D dedicated and shared</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_power" xml:space="preserve">
|
||||
<value>Every power reading of the card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_temperature" xml:space="preserve">
|
||||
<value>Every temperature sensor of the card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_throughput" xml:space="preserve">
|
||||
<value>PCI Express traffic to and from the card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_voltage" xml:space="preserve">
|
||||
<value>Every voltage of the card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_memory_load" xml:space="preserve">
|
||||
<value>Memory in use: physical and virtual</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_memory_modules" xml:space="preserve">
|
||||
<value>The memory modules: size, speed, maker's part name - never a serial number</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_memory_temperature" xml:space="preserve">
|
||||
<value>Each memory module's temperature, where it has a sensor</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_psu" xml:space="preserve">
|
||||
<value>Power-supply sensors: reading them makes the library search every USB device</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_storage_models" xml:space="preserve">
|
||||
<value>The drives' model names: the library cannot list drives without touching removable ones</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_storage_temperature" xml:space="preserve">
|
||||
<value>Each drive's temperature: the same, so the storage group is not opened</value>
|
||||
</data>
|
||||
<data name="Adv_ngx_parameters" xml:space="preserve">
|
||||
<value>NGX parameters: the quality value, the DLSS hints</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_clock_video" xml:space="preserve">
|
||||
<value>Video clock</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_adaptive_sync_off" xml:space="preserve">
|
||||
<value>Adaptive sync is switched off on the display</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_edid" xml:space="preserve">
|
||||
<value>A display's EDID block, which carries its serial number</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_hdr_formats" xml:space="preserve">
|
||||
<value>HDR formats a display accepts: HDR10, HDR10+, HDR10+ Gaming, Dolby Vision, EDR</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_luminance_max" xml:space="preserve">
|
||||
<value>A display's maximum luminance for HDR content</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_luminance_max_frame_average" xml:space="preserve">
|
||||
<value>Its maximum frame-average light level</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_luminance_min" xml:space="preserve">
|
||||
<value>Its minimum luminance</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_max_frame_interval" xml:space="preserve">
|
||||
<value>The longest frame interval adaptive sync is set to hold</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_vrr_support" xml:space="preserve">
|
||||
<value>Variable refresh: supported, G-SYNC module or adaptive sync, ULMB, usable at the current mode</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_base_branch" xml:space="preserve">
|
||||
<value>The driver's base branch</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_chipset" xml:space="preserve">
|
||||
<value>Chipset vendor and name, as the driver reports them</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_dch" xml:space="preserve">
|
||||
<value>The driver is a DCH package</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_global_profile" xml:space="preserve">
|
||||
<value>Every setting of the driver's global profile, read-only</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_interface_version" xml:space="preserve">
|
||||
<value>NVAPI's own interface version</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_package" xml:space="preserve">
|
||||
<value>Game Ready, Studio or an RTX enterprise branch</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_encoder_fps" xml:space="preserve">
|
||||
<value>Average encoding rate of the active sessions</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_encoder_latency" xml:space="preserve">
|
||||
<value>Average encoding latency</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_encoder_session_processes" xml:space="preserve">
|
||||
<value>Which programs are encoding</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_encoder_sessions" xml:space="preserve">
|
||||
<value>Active hardware-encoder sessions, all programs</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_architecture" xml:space="preserve">
|
||||
<value>Chip architecture, implementation and revision</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_board_serial" xml:space="preserve">
|
||||
<value>The card's board serial number</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_bus_type" xml:space="preserve">
|
||||
<value>The bus the card sits on</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_clock_base_core" xml:space="preserve">
|
||||
<value>Base core clock</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_clock_base_memory" xml:space="preserve">
|
||||
<value>Base memory clock</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_clock_boost_core" xml:space="preserve">
|
||||
<value>Boost core clock</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_clock_boost_memory" xml:space="preserve">
|
||||
<value>Boost memory clock</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_core_count" xml:space="preserve">
|
||||
<value>Graphics cores</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_external" xml:space="preserve">
|
||||
<value>The card is an external one</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_fan_duty" xml:space="preserve">
|
||||
<value>Fan duty through NVAPI (LibreHardwareMonitor reads it)</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_pci_ids" xml:space="preserve">
|
||||
<value>PCI device, subsystem and revision ids - the model, not the unit</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_power" xml:space="preserve">
|
||||
<value>Card power through NVAPI (LibreHardwareMonitor reads it)</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_ram_bus_width" xml:space="preserve">
|
||||
<value>Width of the card's memory bus</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_ram_type" xml:space="preserve">
|
||||
<value>The card's memory type</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_rt_cores" xml:space="preserve">
|
||||
<value>Ray-tracing cores</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_system_type" xml:space="preserve">
|
||||
<value>Laptop or desktop, as the driver sees the PC</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_temp_default_max" xml:space="preserve">
|
||||
<value>The core sensor's default maximum temperature</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_tensor_cores" xml:space="preserve">
|
||||
<value>Tensor cores</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_type" xml:space="preserve">
|
||||
<value>Integrated or discrete graphics</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_uuid" xml:space="preserve">
|
||||
<value>The card's unique id</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_vbios_version" xml:space="preserve">
|
||||
<value>Video BIOS version</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_voltage" xml:space="preserve">
|
||||
<value>Card voltage through NVAPI (LibreHardwareMonitor reads it)</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_limit_ac_battery" xml:space="preserve">
|
||||
<value>Held back by a switch to battery on the tick: 100 or 0</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_limit_api" xml:space="preserve">
|
||||
<value>Held back at a program's request on the tick: 100 or 0</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_limit_insufficient_power" xml:space="preserve">
|
||||
<value>Held back by a missing power connector on the tick: 100 or 0</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_load_bus" xml:space="preserve">
|
||||
<value>Bus-interface utilisation</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_load_framebuffer" xml:space="preserve">
|
||||
<value>Frame-buffer (memory controller) utilisation</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_load_video" xml:space="preserve">
|
||||
<value>Video-engine utilisation</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_pstate" xml:space="preserve">
|
||||
<value>The card's current performance state (P-state id)</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_reflex_frame_report" xml:space="preserve">
|
||||
<value>Latency per frame: simulation, render submit, present, driver, OS queue, GPU render</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_reflex_mode" xml:space="preserve">
|
||||
<value>Reflex: low-latency mode, boost, the frame-rate limit</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_reflex_sleep_status" xml:space="preserve">
|
||||
<value>What the driver's low-latency state is</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_driver_profile" xml:space="preserve">
|
||||
<value>The settings the driver's profile for this game sets itself, read-only</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_source_colorspace" xml:space="preserve">
|
||||
<value>The colour space the game presented in, as the driver reports it for the process</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_vrr_display_mode" xml:space="preserve">
|
||||
<value>The display itself was in variable-refresh mode</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_vrr_enabled" xml:space="preserve">
|
||||
<value>Variable refresh was active on the game's display</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_vrr_possible" xml:space="preserve">
|
||||
<value>Variable refresh was possible on it</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_vrr_requested" xml:space="preserve">
|
||||
<value>Variable refresh was requested for it</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_temp_board" xml:space="preserve">
|
||||
<value>Board ambient temperature, where the card has the sensor</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_temp_power_supply" xml:space="preserve">
|
||||
<value>The card's power-supply temperature, where it has the sensor</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_available" xml:space="preserve">
|
||||
<value>Dedicated video memory available now, all programs</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_dedicated" xml:space="preserve">
|
||||
<value>Dedicated video memory on the card</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_dedicated_available" xml:space="preserve">
|
||||
<value>Dedicated video memory available for surfaces</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_eviction_count" xml:space="preserve">
|
||||
<value>Evictions from dedicated video memory since the driver loaded</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_evictions_size" xml:space="preserve">
|
||||
<value>Memory released by evictions since the driver loaded</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_framebuffer_physical" xml:space="preserve">
|
||||
<value>Physical frame buffer size</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_framebuffer_virtual" xml:space="preserve">
|
||||
<value>Virtual frame buffer size</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_in_use" xml:space="preserve">
|
||||
<value>Dedicated video memory in use now, all programs: available for surfaces less available now</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_promotion_count" xml:space="preserve">
|
||||
<value>Promotions into dedicated video memory since the driver loaded</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_promotions_size" xml:space="preserve">
|
||||
<value>Memory moved in by promotions since the driver loaded</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_shared" xml:space="preserve">
|
||||
<value>Shared system memory the driver may commit</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_system" xml:space="preserve">
|
||||
<value>System memory the driver reserved at load</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_camera" xml:space="preserve">
|
||||
<value>Camera position, axes and matrices</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_depth" xml:space="preserve">
|
||||
<value>Near and far planes, and whether depth is inverted</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_jitter" xml:space="preserve">
|
||||
<value>The jitter offsets the game gave Streamline</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_motion_vectors" xml:space="preserve">
|
||||
<value>Motion-vector scale, and whether they are 3D, dilated, jittered</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_projection" xml:space="preserve">
|
||||
<value>Field of view, aspect ratio, orthographic or not</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_resets" xml:space="preserve">
|
||||
<value>How often the game reset the upscaler's history</value>
|
||||
</data>
|
||||
<data name="Adv_sl_deepdvc_options" xml:space="preserve">
|
||||
<value>RTX Dynamic Vibrance's options</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_alpha_upscaling" xml:space="preserve">
|
||||
<value>DLSS upscales the alpha channel</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_auto_exposure" xml:space="preserve">
|
||||
<value>DLSS auto-exposure</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_exposure" xml:space="preserve">
|
||||
<value>Pre-exposure and exposure scale given to DLSS</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_hdr_input" xml:space="preserve">
|
||||
<value>The game told DLSS its colour buffers are HDR</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_optimal_settings" xml:space="preserve">
|
||||
<value>The render size and sharpness DLSS recommends</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_output_size" xml:space="preserve">
|
||||
<value>The output size the game gave DLSS</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_presets" xml:space="preserve">
|
||||
<value>The DLSS model preset per quality mode</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_vram_estimate" xml:space="preserve">
|
||||
<value>DLSS's own estimate of its video memory</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssd_options" xml:space="preserve">
|
||||
<value>Ray reconstruction's options</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssg_frames_presented" xml:space="preserve">
|
||||
<value>Frames DLSS frame generation presented, by its own count</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssg_options" xml:space="preserve">
|
||||
<value>DLSS frame generation: mode, frames to generate</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssg_state" xml:space="preserve">
|
||||
<value>DLSS frame generation: status, the most frames it can generate</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssg_vram_estimate" xml:space="preserve">
|
||||
<value>DLSS frame generation's estimate of its video memory</value>
|
||||
</data>
|
||||
<data name="Adv_sl_feature_requirements" xml:space="preserve">
|
||||
<value>What each Streamline feature requires: operating system, driver, buffers</value>
|
||||
</data>
|
||||
<data name="Adv_sl_feature_versions" xml:space="preserve">
|
||||
<value>Each Streamline feature's version and its NGX model version</value>
|
||||
</data>
|
||||
<data name="Adv_sl_init_preferences" xml:space="preserve">
|
||||
<value>The preferences the game started Streamline with</value>
|
||||
</data>
|
||||
<data name="Adv_sl_nis_options" xml:space="preserve">
|
||||
<value>NVIDIA Image Scaling's options</value>
|
||||
</data>
|
||||
<data name="Adv_sl_nvperf" xml:space="preserve">
|
||||
<value>Streamline's performance counters (NSight Perf SDK licence)</value>
|
||||
</data>
|
||||
<data name="Adv_sl_pcl_markers" xml:space="preserve">
|
||||
<value>PC-latency markers the game sets</value>
|
||||
</data>
|
||||
<data name="Adv_sl_reflex_state" xml:space="preserve">
|
||||
<value>Reflex through Streamline: availability and its frame reports</value>
|
||||
</data>
|
||||
<data name="Adv_xess_options" xml:space="preserve">
|
||||
<value>XeSS's options</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Band" xml:space="preserve">
|
||||
<value>More than eight series: the lowest, the average and the highest of them are drawn. The table lists each one.</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Empty" xml:space="preserve">
|
||||
<value>Nothing to draw yet.</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Header" xml:space="preserve">
|
||||
<value>Over time</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_LiveNote" xml:space="preserve">
|
||||
<value>The last five minutes, kept in memory only.</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Metric" xml:space="preserve">
|
||||
<value>Show</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Seconds" xml:space="preserve">
|
||||
<value>Seconds from the session's start</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Time" xml:space="preserve">
|
||||
<value>Time</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Name" xml:space="preserve">
|
||||
<value>Reading</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_ReadAt" xml:space="preserve">
|
||||
<value>Read at</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Samples" xml:space="preserve">
|
||||
<value>Readings</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Scope" xml:space="preserve">
|
||||
<value>Belongs to</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Source" xml:space="preserve">
|
||||
<value>Source</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Status" xml:space="preserve">
|
||||
<value>Status</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Value" xml:space="preserve">
|
||||
<value>Value</value>
|
||||
</data>
|
||||
<data name="Advanced_Elevation_Hint" xml:space="preserve">
|
||||
<value>The processor, the memory and the motherboard are read only when the capture agent runs as administrator with PawnIO installed (Settings ▸ Capture agent).</value>
|
||||
</data>
|
||||
<data name="Advanced_Facts_Header" xml:space="preserve">
|
||||
<value>About this PC</value>
|
||||
</data>
|
||||
<data name="Advanced_Header" xml:space="preserve">
|
||||
<value>Advanced metrics</value>
|
||||
</data>
|
||||
<data name="Advanced_Machine_Intro" xml:space="preserve">
|
||||
<value>What the graphics driver and the hardware sensors say about this PC right now. It is read only while this page is open or a game is being recorded, and nothing shown here is stored.</value>
|
||||
</data>
|
||||
<data name="Advanced_Max" xml:space="preserve">
|
||||
<value>Highest</value>
|
||||
</data>
|
||||
<data name="Advanced_Mean" xml:space="preserve">
|
||||
<value>Average</value>
|
||||
</data>
|
||||
<data name="Advanced_Min" xml:space="preserve">
|
||||
<value>Lowest</value>
|
||||
</data>
|
||||
<data name="Advanced_Now_Header" xml:space="preserve">
|
||||
<value>Right now</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_Empty" xml:space="preserve">
|
||||
<value>No session has been recorded with Advanced metrics on yet. A session recorded while it was off is not filled in later.</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_Facts" xml:space="preserve">
|
||||
<value>The PC and the session</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_NoSeries" xml:space="preserve">
|
||||
<value>This session's per-second series are no longer kept (Settings ▸ Recording ▸ Raw series kept per game); its statistics are.</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_NoStats" xml:space="preserve">
|
||||
<value>No reading was stored for this session.</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_Pick" xml:space="preserve">
|
||||
<value>Session</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_Stats" xml:space="preserve">
|
||||
<value>Statistics of the session</value>
|
||||
</data>
|
||||
<data name="Advanced_Sources_Intro" xml:space="preserve">
|
||||
<value>Everything FrameLedger knows how to read, and everything it does not read, with the reason.</value>
|
||||
</data>
|
||||
<data name="Advanced_SourcesLine" xml:space="preserve">
|
||||
<value>NVIDIA driver: {0}. Graphics-card sensors: {1}. Processor, memory and motherboard sensors: {2}.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_Live" xml:space="preserve">
|
||||
<value>Read by the capture agent at {0}. NVIDIA's figures are read every second, the sensors every five.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_NoAgent" xml:space="preserve">
|
||||
<value>The capture agent is not answering. What is shown below is as old as its time says.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_Off" xml:space="preserve">
|
||||
<value>Advanced metrics is off, so nothing is read. Turn it on in Settings ▸ Recording.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_OlderAgent" xml:space="preserve">
|
||||
<value>The capture agent that is running is an older version and cannot answer this. Restart FrameLedger.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_Viewer" xml:space="preserve">
|
||||
<value>This is a copy of a ledger: nothing is read from this PC. The sessions stored in the copy are under Session.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_Waiting" xml:space="preserve">
|
||||
<value>The capture agent is opening its sources…</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_Read" xml:space="preserve">
|
||||
<value>Read</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_Readable" xml:space="preserve">
|
||||
<value>Read when a session or this page asks</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_SourceSilent" xml:space="preserve">
|
||||
<value>Not read now: {0}</value>
|
||||
</data>
|
||||
<data name="Advanced_Tab_Machine" xml:space="preserve">
|
||||
<value>This PC</value>
|
||||
</data>
|
||||
<data name="Advanced_Tab_Session" xml:space="preserve">
|
||||
<value>Session</value>
|
||||
</data>
|
||||
<data name="Advanced_Tab_Sources" xml:space="preserve">
|
||||
<value>Sources</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Board" xml:space="preserve">
|
||||
<value>Motherboard</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Cpu" xml:space="preserve">
|
||||
<value>Processor</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Display" xml:space="preserve">
|
||||
<value>Displays</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Driver" xml:space="preserve">
|
||||
<value>Graphics driver</value>
|
||||
</data>
|
||||
<data name="AdvGroup_FrameGeneration" xml:space="preserve">
|
||||
<value>Frame generation</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Gpu" xml:space="preserve">
|
||||
<value>Graphics card</value>
|
||||
</data>
|
||||
<data name="AdvGroup_GpuMemory" xml:space="preserve">
|
||||
<value>Graphics card memory</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Latency" xml:space="preserve">
|
||||
<value>Latency</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Memory" xml:space="preserve">
|
||||
<value>Memory</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Storage" xml:space="preserve">
|
||||
<value>Storage</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Upscaling" xml:space="preserve">
|
||||
<value>Upscaling</value>
|
||||
</data>
|
||||
<data name="AdvReach_Deferred" xml:space="preserve">
|
||||
<value>Not read in this release</value>
|
||||
</data>
|
||||
<data name="AdvReach_HookedCall" xml:space="preserve">
|
||||
<value>Inside the game - comes with a later release</value>
|
||||
</data>
|
||||
<data name="AdvReach_Identifier" xml:space="preserve">
|
||||
<value>Never read: it identifies this PC, a display or another program</value>
|
||||
</data>
|
||||
<data name="AdvReach_Licence" xml:space="preserve">
|
||||
<value>Not read: the vendor's licence does not allow it</value>
|
||||
</data>
|
||||
<data name="AdvReach_NewHook" xml:space="preserve">
|
||||
<value>Inside the game, with a new hook - comes with a later release</value>
|
||||
</data>
|
||||
<data name="AdvReach_NotInHeaders" xml:space="preserve">
|
||||
<value>Not offered by this interface</value>
|
||||
</data>
|
||||
<data name="AdvReach_PlayerState" xml:space="preserve">
|
||||
<value>Never read: it is the player's state in the game</value>
|
||||
</data>
|
||||
<data name="AdvReach_Refused" xml:space="preserve">
|
||||
<value>Not read: it would make the sensor library search every USB device</value>
|
||||
</data>
|
||||
<data name="AdvReach_Spike" xml:space="preserve">
|
||||
<value>Being studied; not decided</value>
|
||||
</data>
|
||||
<data name="AdvScope_MachineFact" xml:space="preserve">
|
||||
<value>This PC</value>
|
||||
</data>
|
||||
<data name="AdvScope_Series" xml:space="preserve">
|
||||
<value>A session, over time</value>
|
||||
</data>
|
||||
<data name="AdvScope_SessionFact" xml:space="preserve">
|
||||
<value>A session</value>
|
||||
</data>
|
||||
<data name="AdvSource_Faulted" xml:space="preserve">
|
||||
<value>failed while reading</value>
|
||||
</data>
|
||||
<data name="AdvSource_NotElevated" xml:space="preserve">
|
||||
<value>the capture agent is not running as administrator</value>
|
||||
</data>
|
||||
<data name="AdvSource_NotPresent" xml:space="preserve">
|
||||
<value>not present on this PC</value>
|
||||
</data>
|
||||
<data name="AdvSource_PawnIoMissing" xml:space="preserve">
|
||||
<value>PawnIO is not installed</value>
|
||||
</data>
|
||||
<data name="AdvSource_Reading" xml:space="preserve">
|
||||
<value>answering</value>
|
||||
</data>
|
||||
<data name="AdvSource_Unknown" xml:space="preserve">
|
||||
<value>not asked yet</value>
|
||||
</data>
|
||||
<data name="AdvToken_adaptive_sync" xml:space="preserve">
|
||||
<value>Adaptive sync</value>
|
||||
</data>
|
||||
<data name="AdvToken_agp" xml:space="preserve">
|
||||
<value>AGP</value>
|
||||
</data>
|
||||
<data name="AdvToken_axi" xml:space="preserve">
|
||||
<value>AXI</value>
|
||||
</data>
|
||||
<data name="AdvToken_bt2100_pq" xml:space="preserve">
|
||||
<value>BT.2100 PQ (HDR10)</value>
|
||||
</data>
|
||||
<data name="AdvToken_desktop" xml:space="preserve">
|
||||
<value>Desktop</value>
|
||||
</data>
|
||||
<data name="AdvToken_discrete" xml:space="preserve">
|
||||
<value>Discrete</value>
|
||||
</data>
|
||||
<data name="AdvToken_dolby_vision" xml:space="preserve">
|
||||
<value>Dolby Vision</value>
|
||||
</data>
|
||||
<data name="AdvToken_driver_default" xml:space="preserve">
|
||||
<value>Driver default</value>
|
||||
</data>
|
||||
<data name="AdvToken_edr" xml:space="preserve">
|
||||
<value>EDR</value>
|
||||
</data>
|
||||
<data name="AdvToken_fpci" xml:space="preserve">
|
||||
<value>FPCI</value>
|
||||
</data>
|
||||
<data name="AdvToken_game_ready" xml:space="preserve">
|
||||
<value>Game Ready</value>
|
||||
</data>
|
||||
<data name="AdvToken_gsync_module" xml:space="preserve">
|
||||
<value>G-SYNC module</value>
|
||||
</data>
|
||||
<data name="AdvToken_hdr10" xml:space="preserve">
|
||||
<value>HDR10</value>
|
||||
</data>
|
||||
<data name="AdvToken_hdr10_plus" xml:space="preserve">
|
||||
<value>HDR10+</value>
|
||||
</data>
|
||||
<data name="AdvToken_hdr10_plus_gaming" xml:space="preserve">
|
||||
<value>HDR10+ Gaming</value>
|
||||
</data>
|
||||
<data name="AdvToken_integrated" xml:space="preserve">
|
||||
<value>Integrated</value>
|
||||
</data>
|
||||
<data name="AdvToken_laptop" xml:space="preserve">
|
||||
<value>Laptop</value>
|
||||
</data>
|
||||
<data name="AdvToken_no_profile_for_game" xml:space="preserve">
|
||||
<value>The driver has no profile for this game</value>
|
||||
</data>
|
||||
<data name="AdvToken_not_a_number" xml:space="preserve">
|
||||
<value>Not a number</value>
|
||||
</data>
|
||||
<data name="AdvToken_not_supported" xml:space="preserve">
|
||||
<value>Not supported</value>
|
||||
</data>
|
||||
<data name="AdvToken_pci" xml:space="preserve">
|
||||
<value>PCI</value>
|
||||
</data>
|
||||
<data name="AdvToken_pci_express" xml:space="preserve">
|
||||
<value>PCI Express</value>
|
||||
</data>
|
||||
<data name="AdvToken_rtx_new_feature" xml:space="preserve">
|
||||
<value>RTX new-feature branch</value>
|
||||
</data>
|
||||
<data name="AdvToken_rtx_production" xml:space="preserve">
|
||||
<value>RTX production branch</value>
|
||||
</data>
|
||||
<data name="AdvToken_scrgb_linear" xml:space="preserve">
|
||||
<value>scRGB (linear)</value>
|
||||
</data>
|
||||
<data name="AdvToken_srgb" xml:space="preserve">
|
||||
<value>sRGB</value>
|
||||
</data>
|
||||
<data name="AdvToken_studio" xml:space="preserve">
|
||||
<value>Studio</value>
|
||||
</data>
|
||||
<data name="AdvToken_ulmb" xml:space="preserve">
|
||||
<value>ULMB</value>
|
||||
</data>
|
||||
<data name="AdvToken_usable_now" xml:space="preserve">
|
||||
<value>Usable at the current mode</value>
|
||||
</data>
|
||||
<data name="AdvToken_user_set" xml:space="preserve">
|
||||
<value>Set by the user</value>
|
||||
</data>
|
||||
<data name="AdvToken_variable_refresh" xml:space="preserve">
|
||||
<value>Variable refresh</value>
|
||||
</data>
|
||||
<data name="Agent_Banner_Missing_Body" xml:space="preserve">
|
||||
<value>FrameLedger.Agent.exe was not found beside this application. Sessions are still readable; live status and capture control are not.</value>
|
||||
</data>
|
||||
@@ -282,6 +1011,9 @@
|
||||
<data name="Menu_Tools_VulkanLayer" xml:space="preserve">
|
||||
<value>Vulkan layer registration…</value>
|
||||
</data>
|
||||
<data name="Nav_Advanced" xml:space="preserve">
|
||||
<value>Advanced</value>
|
||||
</data>
|
||||
<data name="Nav_Compare" xml:space="preserve">
|
||||
<value>Compare</value>
|
||||
</data>
|
||||
@@ -960,6 +1692,9 @@
|
||||
<data name="Sessions_Col_Tier" xml:space="preserve">
|
||||
<value>Tier</value>
|
||||
</data>
|
||||
<data name="Summary_Advanced_Button" xml:space="preserve">
|
||||
<value>Advanced metrics…</value>
|
||||
</data>
|
||||
<data name="Tier_Dash_Tooltip" xml:space="preserve">
|
||||
<value>—: frame generation was measured as none, so there is no displayed rate distinct from the native one</value>
|
||||
</data>
|
||||
|
||||
@@ -13,9 +13,738 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="A11y_Advanced_Metric" xml:space="preserve">
|
||||
<value>Chỉ số để vẽ biểu đồ</value>
|
||||
</data>
|
||||
<data name="A11y_Advanced_Session" xml:space="preserve">
|
||||
<value>Phiên để hiển thị</value>
|
||||
</data>
|
||||
<data name="A11y_Chart_Advanced" xml:space="preserve">
|
||||
<value>Chỉ số nâng cao theo thời gian</value>
|
||||
</data>
|
||||
<data name="A11y_ChartData_Advanced" xml:space="preserve">
|
||||
<value>Mỗi đường là một chỉ số. Bảng cạnh biểu đồ liệt kê cùng các chỉ số đó.</value>
|
||||
</data>
|
||||
<data name="About_Title" xml:space="preserve">
|
||||
<value>Giới thiệu FrameLedger</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_framegen_config" xml:space="preserve">
|
||||
<value>Cấu hình tạo khung hình FSR của game</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_memory_usage" xml:space="preserve">
|
||||
<value>Bộ nhớ video của riêng FSR, khi game hỏi</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_depth" xml:space="preserve">
|
||||
<value>Mặt phẳng gần, xa và góc nhìn đưa cho FSR</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_exposure" xml:space="preserve">
|
||||
<value>Tiền phơi sáng đưa cho FSR</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_flags" xml:space="preserve">
|
||||
<value>Các cờ trong lệnh dispatch FSR của game</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_frame_time_delta" xml:space="preserve">
|
||||
<value>Thời gian khung hình game báo cho FSR</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_jitter" xml:space="preserve">
|
||||
<value>Độ lệch jitter game đưa cho FSR</value>
|
||||
</data>
|
||||
<data name="Adv_ffx_upscale_sharpening" xml:space="preserve">
|
||||
<value>Làm nét của FSR: bật hay tắt, và cường độ</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_battery" xml:space="preserve">
|
||||
<value>Cảm biến pin</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_fan" xml:space="preserve">
|
||||
<value>Tốc độ của từng chân cắm quạt</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_fan_control" xml:space="preserve">
|
||||
<value>Mức điều khiển của từng chân cắm quạt</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_model" xml:space="preserve">
|
||||
<value>Hãng và model bo mạch chủ</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_sensor_chip" xml:space="preserve">
|
||||
<value>Chip cảm biến của bo mạch</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_temperature" xml:space="preserve">
|
||||
<value>Các cảm biến nhiệt độ của bo mạch</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_board_voltage" xml:space="preserve">
|
||||
<value>Các đường điện áp của bo mạch</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_controller" xml:space="preserve">
|
||||
<value>Cảm biến bộ điều khiển quạt: cũng phải dò thiết bị USB như vậy</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_clock" xml:space="preserve">
|
||||
<value>Xung của từng nhân, và xung bus</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_load" xml:space="preserve">
|
||||
<value>Tải bộ xử lý: tổng và từng nhân</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_power" xml:space="preserve">
|
||||
<value>Công suất bộ xử lý: cả gói, các nhân</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_temperature" xml:space="preserve">
|
||||
<value>Nhiệt độ bộ xử lý: cả gói và từng nhân</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_cpu_voltage" xml:space="preserve">
|
||||
<value>Các điện áp của bộ xử lý</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_clock" xml:space="preserve">
|
||||
<value>Mọi xung nhịp của card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_current" xml:space="preserve">
|
||||
<value>Mọi dòng điện của card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_fan" xml:space="preserve">
|
||||
<value>Mọi quạt của card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_fan_control" xml:space="preserve">
|
||||
<value>Mức điều khiển của từng quạt</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_load" xml:space="preserve">
|
||||
<value>Mọi mức tải của card: các bộ xử lý, bus, bộ điều khiển bộ nhớ</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_memory" xml:space="preserve">
|
||||
<value>Các bộ đếm bộ nhớ của card: tổng, trống, đã dùng, Direct3D chuyên dụng và dùng chung</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_power" xml:space="preserve">
|
||||
<value>Mọi số đo công suất của card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_temperature" xml:space="preserve">
|
||||
<value>Mọi cảm biến nhiệt độ của card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_throughput" xml:space="preserve">
|
||||
<value>Lưu lượng PCI Express đến và đi từ card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_gpu_voltage" xml:space="preserve">
|
||||
<value>Mọi điện áp của card</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_memory_load" xml:space="preserve">
|
||||
<value>Bộ nhớ đang dùng: vật lý và ảo</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_memory_modules" xml:space="preserve">
|
||||
<value>Các thanh nhớ: dung lượng, tốc độ, tên linh kiện của hãng - không bao giờ có số sê-ri</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_memory_temperature" xml:space="preserve">
|
||||
<value>Nhiệt độ từng thanh nhớ, nếu có cảm biến</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_psu" xml:space="preserve">
|
||||
<value>Cảm biến bộ nguồn: đọc chúng khiến thư viện dò mọi thiết bị USB</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_storage_models" xml:space="preserve">
|
||||
<value>Tên model các ổ đĩa: thư viện không liệt kê được ổ mà không chạm vào ổ tháo rời</value>
|
||||
</data>
|
||||
<data name="Adv_lhm_storage_temperature" xml:space="preserve">
|
||||
<value>Nhiệt độ từng ổ đĩa: cùng lý do, nên nhóm lưu trữ không được mở</value>
|
||||
</data>
|
||||
<data name="Adv_ngx_parameters" xml:space="preserve">
|
||||
<value>Tham số NGX: giá trị chất lượng, các gợi ý DLSS</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_clock_video" xml:space="preserve">
|
||||
<value>Xung video</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_adaptive_sync_off" xml:space="preserve">
|
||||
<value>Adaptive sync đang tắt trên màn hình</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_edid" xml:space="preserve">
|
||||
<value>Khối EDID của màn hình, có chứa số sê-ri của nó</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_hdr_formats" xml:space="preserve">
|
||||
<value>Định dạng HDR màn hình nhận: HDR10, HDR10+, HDR10+ Gaming, Dolby Vision, EDR</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_luminance_max" xml:space="preserve">
|
||||
<value>Độ chói tối đa của màn hình cho nội dung HDR</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_luminance_max_frame_average" xml:space="preserve">
|
||||
<value>Mức sáng trung bình khung hình tối đa của màn hình</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_luminance_min" xml:space="preserve">
|
||||
<value>Độ chói tối thiểu của màn hình</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_max_frame_interval" xml:space="preserve">
|
||||
<value>Khoảng khung hình dài nhất mà adaptive sync được đặt để giữ</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_display_vrr_support" xml:space="preserve">
|
||||
<value>Tần số quét biến thiên: có hỗ trợ, mô-đun G-SYNC hay adaptive sync, ULMB, dùng được ở chế độ hiện tại</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_base_branch" xml:space="preserve">
|
||||
<value>Nhánh gốc của driver</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_chipset" xml:space="preserve">
|
||||
<value>Hãng và tên chipset, theo driver báo</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_dch" xml:space="preserve">
|
||||
<value>Driver là gói DCH</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_global_profile" xml:space="preserve">
|
||||
<value>Mọi thiết lập trong profile toàn cục của driver, chỉ đọc</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_interface_version" xml:space="preserve">
|
||||
<value>Phiên bản giao diện của chính NVAPI</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_driver_package" xml:space="preserve">
|
||||
<value>Game Ready, Studio hay một nhánh RTX doanh nghiệp</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_encoder_fps" xml:space="preserve">
|
||||
<value>Tốc độ mã hoá trung bình của các phiên đang chạy</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_encoder_latency" xml:space="preserve">
|
||||
<value>Độ trễ mã hoá trung bình</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_encoder_session_processes" xml:space="preserve">
|
||||
<value>Những chương trình nào đang mã hoá</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_encoder_sessions" xml:space="preserve">
|
||||
<value>Số phiên mã hoá phần cứng đang chạy, mọi chương trình</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_architecture" xml:space="preserve">
|
||||
<value>Kiến trúc chip, bản triển khai và phiên bản</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_board_serial" xml:space="preserve">
|
||||
<value>Số sê-ri bo mạch của card</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_bus_type" xml:space="preserve">
|
||||
<value>Bus mà card cắm vào</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_clock_base_core" xml:space="preserve">
|
||||
<value>Xung nhân cơ sở</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_clock_base_memory" xml:space="preserve">
|
||||
<value>Xung bộ nhớ cơ sở</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_clock_boost_core" xml:space="preserve">
|
||||
<value>Xung nhân tăng tốc</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_clock_boost_memory" xml:space="preserve">
|
||||
<value>Xung bộ nhớ tăng tốc</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_core_count" xml:space="preserve">
|
||||
<value>Số nhân đồ hoạ</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_external" xml:space="preserve">
|
||||
<value>Card là card gắn ngoài</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_fan_duty" xml:space="preserve">
|
||||
<value>Mức điều khiển quạt qua NVAPI (LibreHardwareMonitor đọc số này)</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_pci_ids" xml:space="preserve">
|
||||
<value>Mã PCI của thiết bị, hệ con và phiên bản - là model, không phải từng chiếc</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_power" xml:space="preserve">
|
||||
<value>Công suất card qua NVAPI (LibreHardwareMonitor đọc số này)</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_ram_bus_width" xml:space="preserve">
|
||||
<value>Độ rộng bus bộ nhớ của card</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_ram_type" xml:space="preserve">
|
||||
<value>Loại bộ nhớ của card</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_rt_cores" xml:space="preserve">
|
||||
<value>Số nhân dò tia</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_system_type" xml:space="preserve">
|
||||
<value>Laptop hay máy bàn, theo cách driver nhìn máy</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_temp_default_max" xml:space="preserve">
|
||||
<value>Nhiệt độ tối đa mặc định của cảm biến nhân</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_tensor_cores" xml:space="preserve">
|
||||
<value>Số nhân tensor</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_type" xml:space="preserve">
|
||||
<value>Đồ hoạ tích hợp hay rời</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_uuid" xml:space="preserve">
|
||||
<value>Mã định danh duy nhất của card</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_vbios_version" xml:space="preserve">
|
||||
<value>Phiên bản Video BIOS</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_gpu_voltage" xml:space="preserve">
|
||||
<value>Điện áp card qua NVAPI (LibreHardwareMonitor đọc số này)</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_limit_ac_battery" xml:space="preserve">
|
||||
<value>Bị kìm do chuyển sang pin ở lần đọc: 100 hoặc 0</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_limit_api" xml:space="preserve">
|
||||
<value>Bị kìm theo yêu cầu của một chương trình ở lần đọc: 100 hoặc 0</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_limit_insufficient_power" xml:space="preserve">
|
||||
<value>Bị kìm do thiếu đầu cấp nguồn ở lần đọc: 100 hoặc 0</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_load_bus" xml:space="preserve">
|
||||
<value>Mức dùng giao tiếp bus</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_load_framebuffer" xml:space="preserve">
|
||||
<value>Mức dùng frame buffer (bộ điều khiển bộ nhớ)</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_load_video" xml:space="preserve">
|
||||
<value>Mức dùng bộ xử lý video</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_pstate" xml:space="preserve">
|
||||
<value>Trạng thái hiệu năng hiện tại của card (mã P-state)</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_reflex_frame_report" xml:space="preserve">
|
||||
<value>Độ trễ từng khung hình: mô phỏng, gửi lệnh dựng hình, present, driver, hàng đợi hệ điều hành, GPU dựng hình</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_reflex_mode" xml:space="preserve">
|
||||
<value>Reflex: chế độ độ trễ thấp, boost, giới hạn tốc độ khung hình</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_reflex_sleep_status" xml:space="preserve">
|
||||
<value>Trạng thái độ trễ thấp của driver</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_driver_profile" xml:space="preserve">
|
||||
<value>Các thiết lập mà profile của driver cho game này tự đặt, chỉ đọc</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_source_colorspace" xml:space="preserve">
|
||||
<value>Không gian màu game xuất ra, theo driver báo cho tiến trình</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_vrr_display_mode" xml:space="preserve">
|
||||
<value>Chính màn hình đã ở chế độ tần số quét biến thiên</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_vrr_enabled" xml:space="preserve">
|
||||
<value>Tần số quét biến thiên đã hoạt động trên màn hình của game</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_vrr_possible" xml:space="preserve">
|
||||
<value>Tần số quét biến thiên khả dụng trên màn hình đó</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_session_vrr_requested" xml:space="preserve">
|
||||
<value>Tần số quét biến thiên đã được yêu cầu cho màn hình đó</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_temp_board" xml:space="preserve">
|
||||
<value>Nhiệt độ môi trường trên bo của card, nếu card có cảm biến</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_temp_power_supply" xml:space="preserve">
|
||||
<value>Nhiệt độ khối cấp nguồn của card, nếu card có cảm biến</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_available" xml:space="preserve">
|
||||
<value>Bộ nhớ video chuyên dụng còn trống lúc này, mọi chương trình</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_dedicated" xml:space="preserve">
|
||||
<value>Bộ nhớ video chuyên dụng trên card</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_dedicated_available" xml:space="preserve">
|
||||
<value>Bộ nhớ video chuyên dụng dùng được cho bề mặt</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_eviction_count" xml:space="preserve">
|
||||
<value>Số lần bị đẩy khỏi bộ nhớ video chuyên dụng, tính từ lúc driver nạp</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_evictions_size" xml:space="preserve">
|
||||
<value>Bộ nhớ được giải phóng do bị đẩy ra, tính từ lúc driver nạp</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_framebuffer_physical" xml:space="preserve">
|
||||
<value>Kích thước frame buffer vật lý</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_framebuffer_virtual" xml:space="preserve">
|
||||
<value>Kích thước frame buffer ảo</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_in_use" xml:space="preserve">
|
||||
<value>Bộ nhớ video chuyên dụng đang dùng lúc này, mọi chương trình: phần dùng được cho bề mặt trừ phần còn trống</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_promotion_count" xml:space="preserve">
|
||||
<value>Số lần thăng cấp vào bộ nhớ video chuyên dụng, tính từ lúc driver nạp</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_promotions_size" xml:space="preserve">
|
||||
<value>Bộ nhớ được đưa vào do thăng cấp, tính từ lúc driver nạp</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_shared" xml:space="preserve">
|
||||
<value>Bộ nhớ hệ thống dùng chung driver có thể cấp</value>
|
||||
</data>
|
||||
<data name="Adv_nvapi_vram_system" xml:space="preserve">
|
||||
<value>Bộ nhớ hệ thống driver giữ lúc nạp</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_camera" xml:space="preserve">
|
||||
<value>Vị trí, các trục và ma trận của camera</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_depth" xml:space="preserve">
|
||||
<value>Mặt phẳng gần và xa, và độ sâu có bị đảo hay không</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_jitter" xml:space="preserve">
|
||||
<value>Độ lệch jitter game đưa cho Streamline</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_motion_vectors" xml:space="preserve">
|
||||
<value>Tỉ lệ vector chuyển động, và chúng có là 3D, giãn nở, có jitter hay không</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_projection" xml:space="preserve">
|
||||
<value>Góc nhìn, tỉ lệ khung, phép chiếu trực giao hay không</value>
|
||||
</data>
|
||||
<data name="Adv_sl_constants_resets" xml:space="preserve">
|
||||
<value>Số lần game đặt lại lịch sử của bộ nâng cấp</value>
|
||||
</data>
|
||||
<data name="Adv_sl_deepdvc_options" xml:space="preserve">
|
||||
<value>Các tuỳ chọn của RTX Dynamic Vibrance</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_alpha_upscaling" xml:space="preserve">
|
||||
<value>DLSS nâng cấp cả kênh alpha</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_auto_exposure" xml:space="preserve">
|
||||
<value>Tự động phơi sáng của DLSS</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_exposure" xml:space="preserve">
|
||||
<value>Tiền phơi sáng và hệ số phơi sáng đưa cho DLSS</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_hdr_input" xml:space="preserve">
|
||||
<value>Game báo cho DLSS rằng bộ đệm màu là HDR</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_optimal_settings" xml:space="preserve">
|
||||
<value>Kích thước dựng hình và độ nét DLSS khuyến nghị</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_output_size" xml:space="preserve">
|
||||
<value>Kích thước đầu ra game đưa cho DLSS</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_presets" xml:space="preserve">
|
||||
<value>Preset mô hình DLSS theo từng chế độ chất lượng</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlss_vram_estimate" xml:space="preserve">
|
||||
<value>Ước tính của chính DLSS về bộ nhớ video nó dùng</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssd_options" xml:space="preserve">
|
||||
<value>Các tuỳ chọn của Ray Reconstruction</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssg_frames_presented" xml:space="preserve">
|
||||
<value>Số khung tạo khung hình DLSS đã hiển thị, theo bộ đếm của chính nó</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssg_options" xml:space="preserve">
|
||||
<value>Tạo khung hình DLSS: chế độ, số khung cần tạo</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssg_state" xml:space="preserve">
|
||||
<value>Tạo khung hình DLSS: trạng thái, số khung tối đa có thể tạo</value>
|
||||
</data>
|
||||
<data name="Adv_sl_dlssg_vram_estimate" xml:space="preserve">
|
||||
<value>Ước tính của tạo khung hình DLSS về bộ nhớ video nó dùng</value>
|
||||
</data>
|
||||
<data name="Adv_sl_feature_requirements" xml:space="preserve">
|
||||
<value>Yêu cầu của từng tính năng Streamline: hệ điều hành, driver, bộ đệm</value>
|
||||
</data>
|
||||
<data name="Adv_sl_feature_versions" xml:space="preserve">
|
||||
<value>Phiên bản từng tính năng Streamline và phiên bản mô hình NGX của nó</value>
|
||||
</data>
|
||||
<data name="Adv_sl_init_preferences" xml:space="preserve">
|
||||
<value>Các tuỳ chọn game dùng khi khởi động Streamline</value>
|
||||
</data>
|
||||
<data name="Adv_sl_nis_options" xml:space="preserve">
|
||||
<value>Các tuỳ chọn của NVIDIA Image Scaling</value>
|
||||
</data>
|
||||
<data name="Adv_sl_nvperf" xml:space="preserve">
|
||||
<value>Bộ đếm hiệu năng của Streamline (giấy phép NSight Perf SDK)</value>
|
||||
</data>
|
||||
<data name="Adv_sl_pcl_markers" xml:space="preserve">
|
||||
<value>Các mốc PC-latency game đặt</value>
|
||||
</data>
|
||||
<data name="Adv_sl_reflex_state" xml:space="preserve">
|
||||
<value>Reflex qua Streamline: có khả dụng không và các báo cáo khung hình của nó</value>
|
||||
</data>
|
||||
<data name="Adv_xess_options" xml:space="preserve">
|
||||
<value>Các tuỳ chọn của XeSS</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Band" xml:space="preserve">
|
||||
<value>Hơn tám chuỗi: biểu đồ vẽ giá trị thấp nhất, trung bình và cao nhất của chúng. Bảng liệt kê từng chuỗi.</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Empty" xml:space="preserve">
|
||||
<value>Chưa có gì để vẽ.</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Header" xml:space="preserve">
|
||||
<value>Theo thời gian</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_LiveNote" xml:space="preserve">
|
||||
<value>Năm phút gần nhất, chỉ giữ trong bộ nhớ.</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Metric" xml:space="preserve">
|
||||
<value>Hiển thị</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Seconds" xml:space="preserve">
|
||||
<value>Giây tính từ đầu phiên</value>
|
||||
</data>
|
||||
<data name="Advanced_Chart_Time" xml:space="preserve">
|
||||
<value>Thời gian</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Name" xml:space="preserve">
|
||||
<value>Chỉ số</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_ReadAt" xml:space="preserve">
|
||||
<value>Đọc lúc</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Samples" xml:space="preserve">
|
||||
<value>Số lần đọc</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Scope" xml:space="preserve">
|
||||
<value>Thuộc về</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Source" xml:space="preserve">
|
||||
<value>Nguồn</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Status" xml:space="preserve">
|
||||
<value>Trạng thái</value>
|
||||
</data>
|
||||
<data name="Advanced_Col_Value" xml:space="preserve">
|
||||
<value>Giá trị</value>
|
||||
</data>
|
||||
<data name="Advanced_Elevation_Hint" xml:space="preserve">
|
||||
<value>Bộ xử lý, bộ nhớ và bo mạch chỉ được đọc khi capture agent chạy quyền quản trị và máy đã cài PawnIO (Cài đặt ▸ Capture agent).</value>
|
||||
</data>
|
||||
<data name="Advanced_Facts_Header" xml:space="preserve">
|
||||
<value>Về máy này</value>
|
||||
</data>
|
||||
<data name="Advanced_Header" xml:space="preserve">
|
||||
<value>Thông số nâng cao</value>
|
||||
</data>
|
||||
<data name="Advanced_Machine_Intro" xml:space="preserve">
|
||||
<value>Những gì driver đồ hoạ và các cảm biến phần cứng cho biết về máy này lúc này. Chỉ được đọc khi trang này đang mở hoặc đang ghi một game, và những gì hiện ở đây không được lưu.</value>
|
||||
</data>
|
||||
<data name="Advanced_Max" xml:space="preserve">
|
||||
<value>Cao nhất</value>
|
||||
</data>
|
||||
<data name="Advanced_Mean" xml:space="preserve">
|
||||
<value>Trung bình</value>
|
||||
</data>
|
||||
<data name="Advanced_Min" xml:space="preserve">
|
||||
<value>Thấp nhất</value>
|
||||
</data>
|
||||
<data name="Advanced_Now_Header" xml:space="preserve">
|
||||
<value>Lúc này</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_Empty" xml:space="preserve">
|
||||
<value>Chưa có phiên nào được ghi khi Thông số nâng cao đang bật. Phiên ghi lúc tắt sẽ không được bổ sung về sau.</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_Facts" xml:space="preserve">
|
||||
<value>Máy và phiên</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_NoSeries" xml:space="preserve">
|
||||
<value>Chuỗi theo giây của phiên này không còn được giữ (Cài đặt ▸ Ghi phiên ▸ Số chuỗi thô giữ lại mỗi game); thống kê thì vẫn còn.</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_NoStats" xml:space="preserve">
|
||||
<value>Phiên này không lưu số đo nào.</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_Pick" xml:space="preserve">
|
||||
<value>Phiên</value>
|
||||
</data>
|
||||
<data name="Advanced_Session_Stats" xml:space="preserve">
|
||||
<value>Thống kê của phiên</value>
|
||||
</data>
|
||||
<data name="Advanced_Sources_Intro" xml:space="preserve">
|
||||
<value>Mọi thứ FrameLedger biết cách đọc, và mọi thứ nó không đọc, kèm lý do.</value>
|
||||
</data>
|
||||
<data name="Advanced_SourcesLine" xml:space="preserve">
|
||||
<value>Driver NVIDIA: {0}. Cảm biến card đồ hoạ: {1}. Cảm biến bộ xử lý, bộ nhớ và bo mạch: {2}.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_Live" xml:space="preserve">
|
||||
<value>Capture agent đọc lúc {0}. Số liệu của NVIDIA được đọc mỗi giây, các cảm biến mỗi năm giây.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_NoAgent" xml:space="preserve">
|
||||
<value>Capture agent không trả lời. Những gì hiện bên dưới cũ đúng như thời điểm ghi kèm.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_Off" xml:space="preserve">
|
||||
<value>Thông số nâng cao đang tắt nên không đọc gì cả. Bật ở Cài đặt ▸ Ghi phiên.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_OlderAgent" xml:space="preserve">
|
||||
<value>Capture agent đang chạy là bản cũ hơn và không trả lời được yêu cầu này. Hãy khởi động lại FrameLedger.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_Viewer" xml:space="preserve">
|
||||
<value>Đây là bản sao của một sổ ghi: không đọc gì từ máy này. Các phiên lưu trong bản sao nằm ở thẻ Phiên.</value>
|
||||
</data>
|
||||
<data name="Advanced_State_Waiting" xml:space="preserve">
|
||||
<value>Capture agent đang mở các nguồn đọc…</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_Read" xml:space="preserve">
|
||||
<value>Đang đọc</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_Readable" xml:space="preserve">
|
||||
<value>Được đọc khi một phiên hoặc trang này yêu cầu</value>
|
||||
</data>
|
||||
<data name="Advanced_Status_SourceSilent" xml:space="preserve">
|
||||
<value>Hiện không đọc được: {0}</value>
|
||||
</data>
|
||||
<data name="Advanced_Tab_Machine" xml:space="preserve">
|
||||
<value>Máy này</value>
|
||||
</data>
|
||||
<data name="Advanced_Tab_Session" xml:space="preserve">
|
||||
<value>Phiên</value>
|
||||
</data>
|
||||
<data name="Advanced_Tab_Sources" xml:space="preserve">
|
||||
<value>Nguồn</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Board" xml:space="preserve">
|
||||
<value>Bo mạch chủ</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Cpu" xml:space="preserve">
|
||||
<value>Bộ xử lý</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Display" xml:space="preserve">
|
||||
<value>Màn hình</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Driver" xml:space="preserve">
|
||||
<value>Driver đồ hoạ</value>
|
||||
</data>
|
||||
<data name="AdvGroup_FrameGeneration" xml:space="preserve">
|
||||
<value>Tạo khung hình</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Gpu" xml:space="preserve">
|
||||
<value>Card đồ hoạ</value>
|
||||
</data>
|
||||
<data name="AdvGroup_GpuMemory" xml:space="preserve">
|
||||
<value>Bộ nhớ card đồ hoạ</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Latency" xml:space="preserve">
|
||||
<value>Độ trễ</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Memory" xml:space="preserve">
|
||||
<value>Bộ nhớ</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Storage" xml:space="preserve">
|
||||
<value>Lưu trữ</value>
|
||||
</data>
|
||||
<data name="AdvGroup_Upscaling" xml:space="preserve">
|
||||
<value>Nâng cấp hình ảnh</value>
|
||||
</data>
|
||||
<data name="AdvReach_Deferred" xml:space="preserve">
|
||||
<value>Không đọc trong bản phát hành này</value>
|
||||
</data>
|
||||
<data name="AdvReach_HookedCall" xml:space="preserve">
|
||||
<value>Bên trong game - sẽ có ở bản phát hành sau</value>
|
||||
</data>
|
||||
<data name="AdvReach_Identifier" xml:space="preserve">
|
||||
<value>Không bao giờ đọc: nó định danh máy này, một màn hình hoặc chương trình khác</value>
|
||||
</data>
|
||||
<data name="AdvReach_Licence" xml:space="preserve">
|
||||
<value>Không đọc: giấy phép của hãng không cho phép</value>
|
||||
</data>
|
||||
<data name="AdvReach_NewHook" xml:space="preserve">
|
||||
<value>Bên trong game, cần hook mới - sẽ có ở bản phát hành sau</value>
|
||||
</data>
|
||||
<data name="AdvReach_NotInHeaders" xml:space="preserve">
|
||||
<value>Giao diện này không cung cấp</value>
|
||||
</data>
|
||||
<data name="AdvReach_PlayerState" xml:space="preserve">
|
||||
<value>Không bao giờ đọc: đó là trạng thái của người chơi trong game</value>
|
||||
</data>
|
||||
<data name="AdvReach_Refused" xml:space="preserve">
|
||||
<value>Không đọc: việc này khiến thư viện cảm biến dò mọi thiết bị USB</value>
|
||||
</data>
|
||||
<data name="AdvReach_Spike" xml:space="preserve">
|
||||
<value>Đang nghiên cứu; chưa quyết định</value>
|
||||
</data>
|
||||
<data name="AdvScope_MachineFact" xml:space="preserve">
|
||||
<value>Máy này</value>
|
||||
</data>
|
||||
<data name="AdvScope_Series" xml:space="preserve">
|
||||
<value>Một phiên, theo thời gian</value>
|
||||
</data>
|
||||
<data name="AdvScope_SessionFact" xml:space="preserve">
|
||||
<value>Một phiên</value>
|
||||
</data>
|
||||
<data name="AdvSource_Faulted" xml:space="preserve">
|
||||
<value>gặp lỗi khi đọc</value>
|
||||
</data>
|
||||
<data name="AdvSource_NotElevated" xml:space="preserve">
|
||||
<value>capture agent không chạy quyền quản trị</value>
|
||||
</data>
|
||||
<data name="AdvSource_NotPresent" xml:space="preserve">
|
||||
<value>không có trên máy này</value>
|
||||
</data>
|
||||
<data name="AdvSource_PawnIoMissing" xml:space="preserve">
|
||||
<value>chưa cài PawnIO</value>
|
||||
</data>
|
||||
<data name="AdvSource_Reading" xml:space="preserve">
|
||||
<value>đang trả lời</value>
|
||||
</data>
|
||||
<data name="AdvSource_Unknown" xml:space="preserve">
|
||||
<value>chưa được hỏi</value>
|
||||
</data>
|
||||
<data name="AdvToken_adaptive_sync" xml:space="preserve">
|
||||
<value>Adaptive sync</value>
|
||||
</data>
|
||||
<data name="AdvToken_agp" xml:space="preserve">
|
||||
<value>AGP</value>
|
||||
</data>
|
||||
<data name="AdvToken_axi" xml:space="preserve">
|
||||
<value>AXI</value>
|
||||
</data>
|
||||
<data name="AdvToken_bt2100_pq" xml:space="preserve">
|
||||
<value>BT.2100 PQ (HDR10)</value>
|
||||
</data>
|
||||
<data name="AdvToken_desktop" xml:space="preserve">
|
||||
<value>Máy bàn</value>
|
||||
</data>
|
||||
<data name="AdvToken_discrete" xml:space="preserve">
|
||||
<value>Rời</value>
|
||||
</data>
|
||||
<data name="AdvToken_dolby_vision" xml:space="preserve">
|
||||
<value>Dolby Vision</value>
|
||||
</data>
|
||||
<data name="AdvToken_driver_default" xml:space="preserve">
|
||||
<value>Mặc định của driver</value>
|
||||
</data>
|
||||
<data name="AdvToken_edr" xml:space="preserve">
|
||||
<value>EDR</value>
|
||||
</data>
|
||||
<data name="AdvToken_fpci" xml:space="preserve">
|
||||
<value>FPCI</value>
|
||||
</data>
|
||||
<data name="AdvToken_game_ready" xml:space="preserve">
|
||||
<value>Game Ready</value>
|
||||
</data>
|
||||
<data name="AdvToken_gsync_module" xml:space="preserve">
|
||||
<value>Mô-đun G-SYNC</value>
|
||||
</data>
|
||||
<data name="AdvToken_hdr10" xml:space="preserve">
|
||||
<value>HDR10</value>
|
||||
</data>
|
||||
<data name="AdvToken_hdr10_plus" xml:space="preserve">
|
||||
<value>HDR10+</value>
|
||||
</data>
|
||||
<data name="AdvToken_hdr10_plus_gaming" xml:space="preserve">
|
||||
<value>HDR10+ Gaming</value>
|
||||
</data>
|
||||
<data name="AdvToken_integrated" xml:space="preserve">
|
||||
<value>Tích hợp</value>
|
||||
</data>
|
||||
<data name="AdvToken_laptop" xml:space="preserve">
|
||||
<value>Laptop</value>
|
||||
</data>
|
||||
<data name="AdvToken_no_profile_for_game" xml:space="preserve">
|
||||
<value>Driver không có profile cho game này</value>
|
||||
</data>
|
||||
<data name="AdvToken_not_a_number" xml:space="preserve">
|
||||
<value>Không phải số</value>
|
||||
</data>
|
||||
<data name="AdvToken_not_supported" xml:space="preserve">
|
||||
<value>Không hỗ trợ</value>
|
||||
</data>
|
||||
<data name="AdvToken_pci" xml:space="preserve">
|
||||
<value>PCI</value>
|
||||
</data>
|
||||
<data name="AdvToken_pci_express" xml:space="preserve">
|
||||
<value>PCI Express</value>
|
||||
</data>
|
||||
<data name="AdvToken_rtx_new_feature" xml:space="preserve">
|
||||
<value>Nhánh RTX tính năng mới</value>
|
||||
</data>
|
||||
<data name="AdvToken_rtx_production" xml:space="preserve">
|
||||
<value>Nhánh RTX production</value>
|
||||
</data>
|
||||
<data name="AdvToken_scrgb_linear" xml:space="preserve">
|
||||
<value>scRGB (tuyến tính)</value>
|
||||
</data>
|
||||
<data name="AdvToken_srgb" xml:space="preserve">
|
||||
<value>sRGB</value>
|
||||
</data>
|
||||
<data name="AdvToken_studio" xml:space="preserve">
|
||||
<value>Studio</value>
|
||||
</data>
|
||||
<data name="AdvToken_ulmb" xml:space="preserve">
|
||||
<value>ULMB</value>
|
||||
</data>
|
||||
<data name="AdvToken_usable_now" xml:space="preserve">
|
||||
<value>Dùng được ở chế độ hiện tại</value>
|
||||
</data>
|
||||
<data name="AdvToken_user_set" xml:space="preserve">
|
||||
<value>Do người dùng đặt</value>
|
||||
</data>
|
||||
<data name="AdvToken_variable_refresh" xml:space="preserve">
|
||||
<value>Tần số quét biến thiên</value>
|
||||
</data>
|
||||
<data name="Agent_Banner_Missing_Body" xml:space="preserve">
|
||||
<value>Không tìm thấy FrameLedger.Agent.exe cạnh ứng dụng. Vẫn đọc được các phiên chơi; trạng thái trực tiếp và điều khiển thu thập thì không.</value>
|
||||
</data>
|
||||
@@ -277,6 +1006,9 @@
|
||||
<data name="Menu_Tools_VulkanLayer" xml:space="preserve">
|
||||
<value>Đăng ký Vulkan layer…</value>
|
||||
</data>
|
||||
<data name="Nav_Advanced" xml:space="preserve">
|
||||
<value>Nâng cao</value>
|
||||
</data>
|
||||
<data name="Nav_Compare" xml:space="preserve">
|
||||
<value>So sánh</value>
|
||||
</data>
|
||||
@@ -955,6 +1687,9 @@
|
||||
<data name="Sessions_Col_Tier" xml:space="preserve">
|
||||
<value>Tier</value>
|
||||
</data>
|
||||
<data name="Summary_Advanced_Button" xml:space="preserve">
|
||||
<value>Thông số nâng cao…</value>
|
||||
</data>
|
||||
<data name="Tier_Dash_Tooltip" xml:space="preserve">
|
||||
<value>—: đã đo là không có frame generation, nên không có FPS hiển thị khác với FPS gốc</value>
|
||||
</data>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>One row under a table-valued fact of the Advanced page: a driver setting, a memory module.</summary>
|
||||
/// <param name="Name">What the row is, in the words it was stored with.</param>
|
||||
/// <param name="Value">Its value, a token of it in this language.</param>
|
||||
public sealed record AdvancedDetailRow(string Name, string Value)
|
||||
{
|
||||
/// <summary>What a screen reader says for the row: its name and its value.</summary>
|
||||
public override string ToString() => Name + ": " + Value;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>The facts of one group of the catalog - the graphics card, the displays - under its heading.</summary>
|
||||
/// <param name="Title">The group in this language.</param>
|
||||
/// <param name="Rows">Its facts, in the catalog's order.</param>
|
||||
public sealed record AdvancedFactGroup(string Title, IReadOnlyList<AdvancedFactRow> Rows)
|
||||
{
|
||||
/// <summary>What a screen reader says for the group: its title.</summary>
|
||||
public override string ToString() => Title;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>One fact of the Advanced page: what it is, its value in one line, and the rows of a table-valued one.</summary>
|
||||
/// <param name="Label">The catalog entry in this language, with the display or device it is about.</param>
|
||||
/// <param name="Value">The value in its unit; for a table, how many rows it has.</param>
|
||||
/// <param name="Details">The rows of a table-valued fact; empty for every other.</param>
|
||||
public sealed record AdvancedFactRow(string Label, string Value, IReadOnlyList<AdvancedDetailRow> Details)
|
||||
{
|
||||
/// <summary>Whether there are rows to unfold.</summary>
|
||||
public bool HasDetails => Details.Count > 0;
|
||||
|
||||
/// <summary>What a screen reader says for the row: its label and its value.</summary>
|
||||
public override string ToString() => Label + ": " + Value;
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Globalization;
|
||||
using FrameLedger.Application.Advanced;
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>
|
||||
/// The words of the Advanced page (owner decision D101): a catalog entry's label, a group's, a token's, a source's
|
||||
/// state — each a key of <c>Strings.resx</c> made from the thing's own name — and a value in its unit.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// A key that is not there reads as the thing's own name, never as nothing: a ledger written by a newer build can
|
||||
/// hold a token this build has no word for, and the page shows what was stored.
|
||||
/// </remarks>
|
||||
public static class AdvancedLabels
|
||||
{
|
||||
/// <summary>A catalog entry's label; its English summary where no string names it.</summary>
|
||||
public static string Of(AdvancedMetric metric)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(metric);
|
||||
return Lookup(metric.LabelKey) ?? metric.Summary;
|
||||
}
|
||||
|
||||
/// <summary>A member of a family: the family's label and what the hardware calls the member.</summary>
|
||||
public static string Member(string family, string? member) => string.IsNullOrWhiteSpace(member) ? family : family + " — " + member;
|
||||
|
||||
public static string Group(AdvancedGroup group) => Lookup("AdvGroup_" + group) ?? group.ToString();
|
||||
|
||||
public static string Scope(AdvancedScope scope) => Lookup("AdvScope_" + scope) ?? scope.ToString();
|
||||
|
||||
/// <summary>A source's name. These are the vendors' own names and are the same in every language.</summary>
|
||||
public static string Source(AdvancedSource source) => source switch
|
||||
{
|
||||
AdvancedSource.Nvapi => "NVAPI",
|
||||
AdvancedSource.Lhm => "LibreHardwareMonitor",
|
||||
AdvancedSource.Streamline => "Streamline",
|
||||
AdvancedSource.FidelityFx => "FidelityFX",
|
||||
AdvancedSource.Ngx => "NGX",
|
||||
AdvancedSource.Xess => "XeSS",
|
||||
_ => source.ToString(),
|
||||
};
|
||||
|
||||
/// <summary>Why an entry that is not read is not.</summary>
|
||||
public static string Reach(AdvancedReach reach) => Lookup("AdvReach_" + reach) ?? reach.ToString();
|
||||
|
||||
public static string Status(AdvancedSourceStatus status) => Lookup("AdvSource_" + status) ?? status.ToString();
|
||||
|
||||
/// <summary>A token the driver's answer was mapped to; the token itself where this build has no word for it.</summary>
|
||||
public static string Token(string token) => Lookup("AdvToken_" + token) ?? token;
|
||||
|
||||
/// <summary>A number in its unit. A flag is yes or no; a count has no unit.</summary>
|
||||
public static string Number(double value, AdvancedUnit unit)
|
||||
{
|
||||
CultureInfo c = CultureInfo.CurrentCulture;
|
||||
return unit switch
|
||||
{
|
||||
AdvancedUnit.Flag => value != 0 ? Strings.Common_Yes : Strings.Common_No,
|
||||
AdvancedUnit.Celsius => value.ToString("0.#", c) + " °C",
|
||||
AdvancedUnit.Percent => value.ToString("0.#", c) + " %",
|
||||
AdvancedUnit.Megahertz => value.ToString("0.#", c) + " MHz",
|
||||
AdvancedUnit.Mebibytes => value.ToString("N0", c) + " MiB",
|
||||
AdvancedUnit.Watts => value.ToString("0.#", c) + " W",
|
||||
AdvancedUnit.Volts => value.ToString("0.###", c) + " V",
|
||||
AdvancedUnit.Amperes => value.ToString("0.##", c) + " A",
|
||||
AdvancedUnit.Rpm => value.ToString("N0", c) + " RPM",
|
||||
AdvancedUnit.Microseconds => value.ToString("N0", c) + " µs",
|
||||
AdvancedUnit.Milliseconds => value.ToString("0.##", c) + " ms",
|
||||
AdvancedUnit.Nits => value.ToString("0.####", c) + " cd/m²",
|
||||
AdvancedUnit.FramesPerSecond => value.ToString("0.#", c) + " FPS",
|
||||
AdvancedUnit.BytesPerSecond => Rate(value, c),
|
||||
AdvancedUnit.Bits => value.ToString("N0", c) + " bit",
|
||||
_ => value.ToString("0.###", c),
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>The unit's symbol for a chart's axis; empty where the value has none.</summary>
|
||||
public static string Unit(AdvancedUnit unit) => unit switch
|
||||
{
|
||||
AdvancedUnit.Celsius => "°C",
|
||||
AdvancedUnit.Percent => "%",
|
||||
AdvancedUnit.Megahertz => "MHz",
|
||||
AdvancedUnit.Mebibytes => "MiB",
|
||||
AdvancedUnit.Watts => "W",
|
||||
AdvancedUnit.Volts => "V",
|
||||
AdvancedUnit.Amperes => "A",
|
||||
AdvancedUnit.Rpm => "RPM",
|
||||
AdvancedUnit.Microseconds => "µs",
|
||||
AdvancedUnit.Milliseconds => "ms",
|
||||
AdvancedUnit.Nits => "cd/m²",
|
||||
AdvancedUnit.FramesPerSecond => "FPS",
|
||||
AdvancedUnit.BytesPerSecond => "B/s",
|
||||
AdvancedUnit.Bits => "bit",
|
||||
_ => string.Empty,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// A fact's value in one line: a number in its unit, a text as it is, tokens in this language. A table has no one
|
||||
/// line — its rows are shown under it — so it reads as how many rows it has.
|
||||
/// </summary>
|
||||
public static string Value(AdvancedValue value, AdvancedUnit unit)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(value);
|
||||
if (value.Number is double number)
|
||||
{
|
||||
return Number(number, unit);
|
||||
}
|
||||
|
||||
if (value.Tokens is { } tokens)
|
||||
{
|
||||
return tokens.Count == 0 ? Strings.Common_NotAvailable : string.Join(", ", tokens.Select(Token));
|
||||
}
|
||||
|
||||
if (value.Rows is { } rows)
|
||||
{
|
||||
return rows.Count.ToString(CultureInfo.CurrentCulture);
|
||||
}
|
||||
|
||||
return string.IsNullOrEmpty(value.Text) ? Strings.Common_NotAvailable : value.Text;
|
||||
}
|
||||
|
||||
/// <summary>One row of a table-valued fact: its token in this language where it has one, else what was stored.</summary>
|
||||
public static string RowValue(AdvancedRow row)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(row);
|
||||
return row.Token is { Length: > 0 } token ? Token(token) : row.Value;
|
||||
}
|
||||
|
||||
private static string Rate(double bytesPerSecond, CultureInfo c) => Math.Abs(bytesPerSecond) switch
|
||||
{
|
||||
>= 1024 * 1024 => (bytesPerSecond / (1024 * 1024)).ToString("0.#", c) + " MiB/s",
|
||||
>= 1024 => (bytesPerSecond / 1024).ToString("0.#", c) + " KiB/s",
|
||||
_ => bytesPerSecond.ToString("0", c) + " B/s",
|
||||
};
|
||||
|
||||
private static string? Lookup(string key)
|
||||
{
|
||||
string? found = Strings.ResourceManager.GetString(key, Strings.Culture);
|
||||
return string.IsNullOrEmpty(found) ? null : found;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>One series as it reads now: its label, its last value in its unit, and when that value was read.</summary>
|
||||
/// <param name="Label">The catalog entry in this language, with the hardware's name for a member of a family.</param>
|
||||
/// <param name="Value">The last value read.</param>
|
||||
/// <param name="ReadAt">The time it was read at - a sensor read every fifth second is as old as this says.</param>
|
||||
public sealed record AdvancedLiveRow(string Label, string Value, string ReadAt)
|
||||
{
|
||||
/// <summary>What a screen reader says for the row: its label and its value.</summary>
|
||||
public override string ToString() => Label + ": " + Value;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>A catalog entry the chart can draw, in the selector: its id and its label in this language.</summary>
|
||||
public sealed record AdvancedMetricOption(string Id, string Label)
|
||||
{
|
||||
public override string ToString() => Label;
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Globalization;
|
||||
using FrameLedger.App.Charts;
|
||||
using FrameLedger.App.Services;
|
||||
using FrameLedger.Application.Advanced;
|
||||
using FrameLedger.Application.Recording;
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>
|
||||
/// Turns what the Agent read — or a session stored — into what the Advanced page shows (owner decision D101): facts
|
||||
/// under their groups, series under their labels, and every catalog entry with whether it is read or why not. Pure:
|
||||
/// no I/O, no state, so every rule here has a test.
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1863:Use 'CompositeFormat'", Justification = "the format strings are resources that follow the UI culture, which changes at runtime")]
|
||||
public static class AdvancedPresenter
|
||||
{
|
||||
/// <summary>Above this many members a family is drawn as its lowest, average and highest — more lines than that cannot be told apart.</summary>
|
||||
public const int MaxLines = 8;
|
||||
|
||||
private static readonly Dictionary<string, int> _order = AdvancedMetricCatalog.All
|
||||
.Select(static (m, i) => (m.Id, i))
|
||||
.ToDictionary(static p => p.Id, static p => p.i, StringComparer.Ordinal);
|
||||
|
||||
/// <summary>
|
||||
/// The facts under their groups, in the catalog's order. A fact whose id this build does not know — stored by a
|
||||
/// newer one — is shown under its own id, last, rather than dropped.
|
||||
/// </summary>
|
||||
public static IReadOnlyList<AdvancedFactGroup> Groups(IReadOnlyList<AdvancedFact> facts)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(facts);
|
||||
var groups = new SortedDictionary<int, (string Title, List<(int Order, string Instance, AdvancedFactRow Row)> Rows)>();
|
||||
foreach (AdvancedFact fact in facts)
|
||||
{
|
||||
AdvancedMetric? metric = AdvancedMetricCatalog.Find(fact.Id);
|
||||
int group = metric is null ? int.MaxValue : (int)metric.Group;
|
||||
if (!groups.TryGetValue(group, out (string Title, List<(int, string, AdvancedFactRow)> Rows) bucket))
|
||||
{
|
||||
bucket = (metric is null ? Strings.Common_NotAvailable : AdvancedLabels.Group(metric.Group), []);
|
||||
groups[group] = bucket;
|
||||
}
|
||||
|
||||
string label = AdvancedLabels.Member(metric is null ? fact.Id : AdvancedLabels.Of(metric), fact.Instance);
|
||||
AdvancedDetailRow[] details = [.. (fact.Value.Rows ?? []).Select(static r => new AdvancedDetailRow(r.Name, AdvancedLabels.RowValue(r)))];
|
||||
var row = new AdvancedFactRow(label, AdvancedLabels.Value(fact.Value, metric?.Unit ?? AdvancedUnit.None), details);
|
||||
bucket.Rows.Add((OrderOf(fact.Id), fact.Instance ?? string.Empty, row));
|
||||
}
|
||||
|
||||
return [.. groups.Values.Select(static g => new AdvancedFactGroup(
|
||||
g.Title,
|
||||
[.. g.Rows.OrderBy(static r => r.Order).ThenBy(static r => r.Instance, StringComparer.Ordinal).Select(static r => r.Row)]))];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The catalog entry a series belongs to and its label: the family's with the hardware's own name for a member, as
|
||||
/// the directory gives it; the entry's for a series that is one. A series nothing names keeps its own name.
|
||||
/// </summary>
|
||||
public static (AdvancedMetric? Metric, string Label) Resolve(string series, IReadOnlyList<AdvancedSeriesInfo> directory)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(series);
|
||||
ArgumentNullException.ThrowIfNull(directory);
|
||||
foreach (AdvancedSeriesInfo info in directory)
|
||||
{
|
||||
if (string.Equals(info.Series, series, StringComparison.Ordinal) && AdvancedMetricCatalog.Find(info.MetricId) is { } family)
|
||||
{
|
||||
return (family, AdvancedLabels.Member(AdvancedLabels.Of(family), info.Label));
|
||||
}
|
||||
}
|
||||
|
||||
if (!series.StartsWith(AdvancedMetric.SeriesPrefix, StringComparison.Ordinal))
|
||||
{
|
||||
return (null, series);
|
||||
}
|
||||
|
||||
string id = series[AdvancedMetric.SeriesPrefix.Length..];
|
||||
if (AdvancedMetricCatalog.Find(id) is { } exact)
|
||||
{
|
||||
return (exact, AdvancedLabels.Of(exact));
|
||||
}
|
||||
|
||||
// A member whose directory entry is gone: the family is the longest id the name starts with.
|
||||
AdvancedMetric? owner = null;
|
||||
foreach (AdvancedMetric metric in AdvancedMetricCatalog.All)
|
||||
{
|
||||
if (metric.IsFamily && id.StartsWith(metric.Id + ".", StringComparison.Ordinal) && (owner is null || metric.Id.Length > owner.Id.Length))
|
||||
{
|
||||
owner = metric;
|
||||
}
|
||||
}
|
||||
|
||||
return owner is null ? (null, series) : (owner, AdvancedLabels.Member(AdvancedLabels.Of(owner), id[(owner.Id.Length + 1)..]));
|
||||
}
|
||||
|
||||
/// <summary>Every series as it reads now, in the catalog's order: its value in its unit and the time it was read at.</summary>
|
||||
public static IReadOnlyList<AdvancedLiveRow> Live(AdvancedMachineView view)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(view);
|
||||
return [.. view.Values
|
||||
.Select(pair => (pair.Key, Resolved: Resolve(pair.Key, view.Series), Point: pair.Value))
|
||||
.OrderBy(static r => r.Resolved.Metric is null ? int.MaxValue : OrderOf(r.Resolved.Metric.Id))
|
||||
.ThenBy(static r => r.Resolved.Label, StringComparer.CurrentCulture)
|
||||
.Select(static r => new AdvancedLiveRow(
|
||||
r.Resolved.Label,
|
||||
AdvancedLabels.Number(r.Point.Value, r.Resolved.Metric?.Unit ?? AdvancedUnit.None),
|
||||
r.Point.At.ToLocalTime().ToString("T", CultureInfo.CurrentCulture)))];
|
||||
}
|
||||
|
||||
/// <summary>The catalog entries that have at least one of these series, in the catalog's order — what the chart's selector offers.</summary>
|
||||
public static IReadOnlyList<AdvancedMetricOption> Metrics(IEnumerable<string> series, IReadOnlyList<AdvancedSeriesInfo> directory)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(series);
|
||||
return [.. series
|
||||
.Select(s => Resolve(s, directory).Metric)
|
||||
.OfType<AdvancedMetric>()
|
||||
.DistinctBy(static m => m.Id, StringComparer.Ordinal)
|
||||
.OrderBy(static m => OrderOf(m.Id))
|
||||
.Select(static m => new AdvancedMetricOption(m.Id, AdvancedLabels.Of(m)))];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The lines of one catalog entry: one per series of it — or, above <see cref="MaxLines"/>, the lowest, the
|
||||
/// average and the highest across them at each moment, which is what can still be read off a chart.
|
||||
/// </summary>
|
||||
/// <returns>The lines, and whether they are that band.</returns>
|
||||
public static (IReadOnlyList<AdvancedChartLine> Lines, bool Band) Lines(string metricId, IEnumerable<SensorSeries> series, IReadOnlyList<AdvancedSeriesInfo> directory)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(metricId);
|
||||
ArgumentNullException.ThrowIfNull(series);
|
||||
var members = new List<AdvancedChartLine>();
|
||||
foreach (SensorSeries one in series)
|
||||
{
|
||||
(AdvancedMetric? metric, string label) = Resolve(one.Name, directory);
|
||||
if (metric is not null && string.Equals(metric.Id, metricId, StringComparison.Ordinal) && one.Values.Length > 0)
|
||||
{
|
||||
members.Add(new AdvancedChartLine(label, one.TimesS, one.Values));
|
||||
}
|
||||
}
|
||||
|
||||
members.Sort(static (a, b) => StringComparer.CurrentCulture.Compare(a.Label, b.Label));
|
||||
return members.Count <= MaxLines ? (members, false) : (Band(members), true);
|
||||
}
|
||||
|
||||
/// <summary>The statistics a session stored, one row a series, in the catalog's order.</summary>
|
||||
public static IReadOnlyList<AdvancedStatRow> Stats(IReadOnlyDictionary<string, SensorSeriesStats> stats, IReadOnlyList<AdvancedSeriesInfo> directory)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(stats);
|
||||
return [.. stats
|
||||
.Select(pair => (Resolved: Resolve(pair.Key, directory), pair.Value))
|
||||
.OrderBy(static r => r.Resolved.Metric is null ? int.MaxValue : OrderOf(r.Resolved.Metric.Id))
|
||||
.ThenBy(static r => r.Resolved.Label, StringComparer.CurrentCulture)
|
||||
.Select(static r =>
|
||||
{
|
||||
AdvancedUnit unit = r.Resolved.Metric?.Unit ?? AdvancedUnit.None;
|
||||
return new AdvancedStatRow(
|
||||
r.Resolved.Label,
|
||||
r.Value.N.ToString("N0", CultureInfo.CurrentCulture),
|
||||
NumberOrNone(r.Value.Min, unit),
|
||||
NumberOrNone(r.Value.Mean, unit),
|
||||
NumberOrNone(r.Value.Max, unit));
|
||||
})];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Every entry of the catalog with whether it is read, or why it is not. <paramref name="now"/> is the sources'
|
||||
/// state where it is known — the page is live — and null where it is not: then an entry the Agent reads says
|
||||
/// when it is read rather than claiming that it is being read.
|
||||
/// </summary>
|
||||
public static IReadOnlyList<AdvancedSourceRow> Sources(AdvancedSources? now) =>
|
||||
[.. AdvancedMetricCatalog.All.Select(m => new AdvancedSourceRow(
|
||||
AdvancedLabels.Of(m),
|
||||
AdvancedLabels.Scope(m.Scope),
|
||||
AdvancedLabels.Source(m.Source),
|
||||
StatusOf(m, now),
|
||||
m.IsRead))];
|
||||
|
||||
/// <summary>The three sources' states in one sentence.</summary>
|
||||
public static string SourcesLine(AdvancedSources sources)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(sources);
|
||||
return string.Format(
|
||||
CultureInfo.CurrentCulture,
|
||||
Strings.Advanced_SourcesLine,
|
||||
AdvancedLabels.Status(sources.Nvapi),
|
||||
AdvancedLabels.Status(sources.Sensors),
|
||||
AdvancedLabels.Status(sources.ElevatedSensors));
|
||||
}
|
||||
|
||||
private static string StatusOf(AdvancedMetric metric, AdvancedSources? now)
|
||||
{
|
||||
if (!metric.IsRead)
|
||||
{
|
||||
return AdvancedLabels.Reach(metric.Reach);
|
||||
}
|
||||
|
||||
AdvancedSourceStatus? state = now is null ? null : (metric.Source, metric.Reach) switch
|
||||
{
|
||||
(AdvancedSource.Nvapi, _) => now.Nvapi,
|
||||
(AdvancedSource.Lhm, AdvancedReach.AgentElevated) => now.ElevatedSensors,
|
||||
(AdvancedSource.Lhm, _) => now.Sensors,
|
||||
_ => null,
|
||||
};
|
||||
return state switch
|
||||
{
|
||||
AdvancedSourceStatus.Reading => Strings.Advanced_Status_Read,
|
||||
null or AdvancedSourceStatus.Unknown => Strings.Advanced_Status_Readable,
|
||||
_ => string.Format(CultureInfo.CurrentCulture, Strings.Advanced_Status_SourceSilent, AdvancedLabels.Status(state.Value)),
|
||||
};
|
||||
}
|
||||
|
||||
private static List<AdvancedChartLine> Band(List<AdvancedChartLine> members)
|
||||
{
|
||||
var at = new SortedDictionary<double, (double Min, double Max, double Sum, int N)>();
|
||||
foreach (AdvancedChartLine line in members)
|
||||
{
|
||||
for (int i = 0; i < line.Xs.Length && i < line.Ys.Length; i++)
|
||||
{
|
||||
double y = line.Ys[i];
|
||||
at[line.Xs[i]] = at.TryGetValue(line.Xs[i], out (double Min, double Max, double Sum, int N) seen)
|
||||
? (Math.Min(seen.Min, y), Math.Max(seen.Max, y), seen.Sum + y, seen.N + 1)
|
||||
: (y, y, y, 1);
|
||||
}
|
||||
}
|
||||
|
||||
double[] xs = [.. at.Keys];
|
||||
return
|
||||
[
|
||||
new AdvancedChartLine(Strings.Advanced_Min, xs, [.. at.Values.Select(static v => v.Min)]),
|
||||
new AdvancedChartLine(Strings.Advanced_Mean, xs, [.. at.Values.Select(static v => v.Sum / v.N)]),
|
||||
new AdvancedChartLine(Strings.Advanced_Max, xs, [.. at.Values.Select(static v => v.Max)]),
|
||||
];
|
||||
}
|
||||
|
||||
private static string NumberOrNone(double? value, AdvancedUnit unit) => value is double v ? AdvancedLabels.Number(v, unit) : Strings.Common_NotAvailable;
|
||||
|
||||
private static int OrderOf(string id) => _order.GetValueOrDefault(id, int.MaxValue);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>A session recorded with Advanced metrics on, in the selector: its id, and its game and start in words.</summary>
|
||||
public sealed record AdvancedSessionOption(long SessionId, string Text)
|
||||
{
|
||||
public override string ToString() => Text;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>One entry of the catalog on the Sources tab: what it is, what it belongs to, where it comes from, and whether it is read - or why not.</summary>
|
||||
/// <param name="Label">The entry in this language.</param>
|
||||
/// <param name="Scope">This PC, a session, or a session over time.</param>
|
||||
/// <param name="Source">The interface it comes from.</param>
|
||||
/// <param name="Status">Read, or the reason it is not - in words, never by colour alone.</param>
|
||||
/// <param name="IsRead">Whether the Agent reads it at all.</param>
|
||||
public sealed record AdvancedSourceRow(string Label, string Scope, string Source, string Status, bool IsRead)
|
||||
{
|
||||
/// <summary>What a screen reader says for the row: its label and whether it is read, or why not.</summary>
|
||||
public override string ToString() => Label + ": " + Status;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>One stored series of a session in numbers: how many readings, and their lowest, average and highest.</summary>
|
||||
public sealed record AdvancedStatRow(string Label, string Samples, string Min, string Mean, string Max)
|
||||
{
|
||||
/// <summary>What a screen reader says for the row: its label and its average.</summary>
|
||||
public override string ToString() => Label + ": " + Mean;
|
||||
}
|
||||
@@ -0,0 +1,419 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Globalization;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using FrameLedger.App.Charts;
|
||||
using FrameLedger.App.Services;
|
||||
using FrameLedger.Application.Advanced;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using FrameLedger.Application.Recording;
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
|
||||
/// <summary>
|
||||
/// The Advanced page (owner decision D101; <c>08_UI</c> §Advanced): what the vendor interfaces make available, each
|
||||
/// value under what it belongs to. <b>This PC</b> is what the Agent reads now — asked only while the page is on screen
|
||||
/// (D107), never stored; <b>Session</b> is what a session recorded with the option on stored; <b>Sources</b> is every
|
||||
/// entry of the catalog with whether it is read, or why it is not.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Nothing here reads hardware: the Agent does, and a session's numbers come from the ledger. In a viewer there is no
|
||||
/// Agent, so This PC says so and the page opens on Session.
|
||||
/// </remarks>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1863:Use 'CompositeFormat'", Justification = "the format strings are resources that follow the UI culture, which changes at runtime")]
|
||||
public sealed partial class AdvancedViewModel : ObservableObject
|
||||
{
|
||||
/// <summary>How many of the newest sessions recorded with the option on the selector offers.</summary>
|
||||
public const int SessionsOffered = 50;
|
||||
|
||||
private const int _sessionTab = 1;
|
||||
|
||||
private readonly AdvancedMachineFeed _feed;
|
||||
private readonly ISessionRepository _sessions;
|
||||
private readonly IGameRepository _games;
|
||||
private readonly SessionSeriesLoader _loader;
|
||||
private readonly AdvancedSelection _selection;
|
||||
private readonly UiMode _mode;
|
||||
private readonly UiThread _ui = new();
|
||||
|
||||
private IDisposable? _watch;
|
||||
private bool _attached;
|
||||
private IReadOnlyList<AdvancedFact>? _shownFacts;
|
||||
private AdvancedSources? _shownSources;
|
||||
private bool _sourcesShown;
|
||||
private bool _settingSession;
|
||||
private IReadOnlyList<SensorSeries> _sessionSeries = [];
|
||||
private IReadOnlyList<AdvancedSeriesInfo> _sessionDirectory = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private int _selectedTab;
|
||||
|
||||
[ObservableProperty]
|
||||
private string _machineStatus = string.Empty;
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<AdvancedFactGroup> _machineGroups = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<AdvancedLiveRow> _liveRows = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<AdvancedMetricOption> _liveMetrics = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private AdvancedMetricOption? _selectedLiveMetric;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _liveBand;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _liveChartEmpty = true;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _showElevationHint;
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<AdvancedSessionOption> _sessionOptions = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private AdvancedSessionOption? _selectedSession;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _noSessions;
|
||||
|
||||
[ObservableProperty]
|
||||
private string? _sessionSources;
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<AdvancedFactGroup> _sessionGroups = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<AdvancedStatRow> _sessionStats = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _sessionHasNoStats;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _sessionSeriesGone;
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<AdvancedMetricOption> _sessionMetrics = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private AdvancedMetricOption? _selectedSessionMetric;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _sessionBand;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _sessionChartEmpty = true;
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<AdvancedSourceRow> _sourceRows = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private string? _sourcesNow;
|
||||
|
||||
public AdvancedViewModel(AdvancedMachineFeed feed, ISessionRepository sessions, IGameRepository games, SessionSeriesLoader loader, AdvancedSelection selection, UiMode? mode = null)
|
||||
{
|
||||
_feed = feed ?? throw new ArgumentNullException(nameof(feed));
|
||||
_sessions = sessions ?? throw new ArgumentNullException(nameof(sessions));
|
||||
_games = games ?? throw new ArgumentNullException(nameof(games));
|
||||
_loader = loader ?? throw new ArgumentNullException(nameof(loader));
|
||||
_selection = selection ?? throw new ArgumentNullException(nameof(selection));
|
||||
_mode = mode ?? UiMode.Profile;
|
||||
if (_mode.IsViewer)
|
||||
{
|
||||
// A copy is opened to look at its sessions; there is no Agent to say anything about this PC.
|
||||
_selectedTab = _sessionTab;
|
||||
_machineStatus = Strings.Advanced_State_Viewer;
|
||||
}
|
||||
|
||||
ShowSources(sources: null);
|
||||
Pending = LoadSessionsAsync();
|
||||
}
|
||||
|
||||
public static string Header => Strings.Advanced_Header;
|
||||
|
||||
public static string TabMachine => Strings.Advanced_Tab_Machine;
|
||||
|
||||
public static string TabSession => Strings.Advanced_Tab_Session;
|
||||
|
||||
public static string TabSources => Strings.Advanced_Tab_Sources;
|
||||
|
||||
/// <summary>The load in flight — the sessions' list, or the selected session — for a test to await.</summary>
|
||||
public Task Pending { get; private set; }
|
||||
|
||||
/// <summary>The lines of the live chart, as last presented.</summary>
|
||||
public IReadOnlyList<AdvancedChartLine> LiveLines { get; private set; } = [];
|
||||
|
||||
/// <summary>The unit the live chart's values are in.</summary>
|
||||
public string LiveUnit { get; private set; } = string.Empty;
|
||||
|
||||
/// <summary>The lines of the session's chart, as last presented.</summary>
|
||||
public IReadOnlyList<AdvancedChartLine> SessionLines { get; private set; } = [];
|
||||
|
||||
/// <summary>The unit the session chart's values are in.</summary>
|
||||
public string SessionUnit { get; private set; } = string.Empty;
|
||||
|
||||
/// <summary>The live chart's lines changed: the page draws them.</summary>
|
||||
public event EventHandler? LivePresented;
|
||||
|
||||
/// <summary>The session chart's lines changed: the page draws them.</summary>
|
||||
public event EventHandler? SessionPresented;
|
||||
|
||||
/// <summary>The page is on screen: start asking the Agent (D107 — only while it is), and show what is known.</summary>
|
||||
public void Attach()
|
||||
{
|
||||
if (_attached)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_attached = true;
|
||||
_selection.Requested += OnSessionRequested;
|
||||
TakeRequestedSession();
|
||||
|
||||
if (_mode.IsViewer)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_feed.Changed += OnFeedChanged;
|
||||
_watch = _feed.Watch();
|
||||
ShowMachine(_feed.Current);
|
||||
}
|
||||
|
||||
/// <summary>The page left the screen: stop asking, so the Agent lets its reader go.</summary>
|
||||
public void Detach()
|
||||
{
|
||||
if (!_attached)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_attached = false;
|
||||
_selection.Requested -= OnSessionRequested;
|
||||
_feed.Changed -= OnFeedChanged;
|
||||
_watch?.Dispose();
|
||||
_watch = null;
|
||||
}
|
||||
|
||||
/// <summary>What the feed last learnt, shown. Public for a test, which has no feed loop to raise it.</summary>
|
||||
public void ShowMachine(AdvancedMachineView view)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(view);
|
||||
MachineStatus = view.State switch
|
||||
{
|
||||
AdvancedFeedState.Live when view.TakenAt is DateTimeOffset at =>
|
||||
string.Format(CultureInfo.CurrentCulture, Strings.Advanced_State_Live, at.ToLocalTime().ToString("T", CultureInfo.CurrentCulture)),
|
||||
AdvancedFeedState.Off => Strings.Advanced_State_Off,
|
||||
AdvancedFeedState.NoAgent => Strings.Advanced_State_NoAgent,
|
||||
AdvancedFeedState.OlderAgent => Strings.Advanced_State_OlderAgent,
|
||||
_ => Strings.Advanced_State_Waiting,
|
||||
};
|
||||
|
||||
if (!ReferenceEquals(view.Facts, _shownFacts))
|
||||
{
|
||||
_shownFacts = view.Facts;
|
||||
MachineGroups = AdvancedPresenter.Groups(view.Facts);
|
||||
}
|
||||
|
||||
LiveRows = AdvancedPresenter.Live(view);
|
||||
IReadOnlyList<AdvancedMetricOption> metrics = AdvancedPresenter.Metrics(view.Values.Keys, view.Series);
|
||||
if (!metrics.SequenceEqual(LiveMetrics))
|
||||
{
|
||||
string? keep = SelectedLiveMetric?.Id;
|
||||
LiveMetrics = metrics;
|
||||
SelectedLiveMetric = metrics.FirstOrDefault(m => string.Equals(m.Id, keep, StringComparison.Ordinal)) ?? (metrics.Count > 0 ? metrics[0] : null);
|
||||
}
|
||||
|
||||
ShowElevationHint = view.Sources.ElevatedSensors is AdvancedSourceStatus.NotElevated or AdvancedSourceStatus.PawnIoMissing;
|
||||
ShowSources(view.State == AdvancedFeedState.Live ? view.Sources : null);
|
||||
PresentLive(view);
|
||||
}
|
||||
|
||||
partial void OnSelectedLiveMetricChanged(AdvancedMetricOption? value) => PresentLive(_feed.Current);
|
||||
|
||||
partial void OnSelectedSessionChanged(AdvancedSessionOption? value)
|
||||
{
|
||||
if (!_settingSession)
|
||||
{
|
||||
Pending = LoadSessionAsync(value?.SessionId);
|
||||
}
|
||||
}
|
||||
|
||||
partial void OnSelectedSessionMetricChanged(AdvancedMetricOption? value) => PresentSession();
|
||||
|
||||
private void OnSessionRequested(object? sender, EventArgs e) => _ui.Post(TakeRequestedSession);
|
||||
|
||||
/// <summary>A session's summary asked for it: the list is read again - it may be a session finished since - and that one shown.</summary>
|
||||
private void TakeRequestedSession()
|
||||
{
|
||||
if (_attached && _selection.Take() is long asked)
|
||||
{
|
||||
Pending = LoadSessionsAsync(asked);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnFeedChanged(object? sender, EventArgs e) => _ui.Post(() =>
|
||||
{
|
||||
if (_attached)
|
||||
{
|
||||
ShowMachine(_feed.Current);
|
||||
}
|
||||
});
|
||||
|
||||
private void ShowSources(AdvancedSources? sources)
|
||||
{
|
||||
if (_sourcesShown && Equals(sources, _shownSources))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_sourcesShown = true;
|
||||
_shownSources = sources;
|
||||
SourceRows = AdvancedPresenter.Sources(sources);
|
||||
SourcesNow = sources is null ? null : AdvancedPresenter.SourcesLine(sources);
|
||||
}
|
||||
|
||||
private void PresentLive(AdvancedMachineView view)
|
||||
{
|
||||
IReadOnlyList<AdvancedChartLine> lines = [];
|
||||
bool band = false;
|
||||
string unit = string.Empty;
|
||||
if (SelectedLiveMetric is { } metric)
|
||||
{
|
||||
unit = AdvancedLabels.Unit(AdvancedMetricCatalog.Find(metric.Id)?.Unit ?? AdvancedUnit.None);
|
||||
var series = new List<SensorSeries>();
|
||||
foreach (string name in view.Values.Keys)
|
||||
{
|
||||
if (string.Equals(AdvancedPresenter.Resolve(name, view.Series).Metric?.Id, metric.Id, StringComparison.Ordinal))
|
||||
{
|
||||
IReadOnlyList<AdvancedLivePoint> points = _feed.HistoryOf(name);
|
||||
series.Add(new SensorSeries(name, [.. points.Select(static p => p.At.LocalDateTime.ToOADate())], [.. points.Select(static p => p.Value)]));
|
||||
}
|
||||
}
|
||||
|
||||
(lines, band) = AdvancedPresenter.Lines(metric.Id, series, view.Series);
|
||||
}
|
||||
|
||||
LiveLines = lines;
|
||||
LiveUnit = unit;
|
||||
LiveBand = band;
|
||||
LiveChartEmpty = lines.Count == 0;
|
||||
LivePresented?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
private void PresentSession()
|
||||
{
|
||||
IReadOnlyList<AdvancedChartLine> lines = [];
|
||||
bool band = false;
|
||||
string unit = string.Empty;
|
||||
if (SelectedSessionMetric is { } metric)
|
||||
{
|
||||
unit = AdvancedLabels.Unit(AdvancedMetricCatalog.Find(metric.Id)?.Unit ?? AdvancedUnit.None);
|
||||
(lines, band) = AdvancedPresenter.Lines(metric.Id, _sessionSeries, _sessionDirectory);
|
||||
}
|
||||
|
||||
SessionLines = lines;
|
||||
SessionUnit = unit;
|
||||
SessionBand = band;
|
||||
SessionChartEmpty = lines.Count == 0;
|
||||
SessionPresented?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
private async Task LoadSessionsAsync(long? asked = null)
|
||||
{
|
||||
IReadOnlyList<SessionRow> rows = await _sessions.ListAdvancedAsync(SessionsOffered).ConfigureAwait(true);
|
||||
var options = new List<AdvancedSessionOption>(rows.Count + 1);
|
||||
var names = new Dictionary<long, string>();
|
||||
foreach (SessionRow row in rows)
|
||||
{
|
||||
options.Add(await OptionOfAsync(row, names).ConfigureAwait(true));
|
||||
}
|
||||
|
||||
if (asked is long id && !options.Exists(o => o.SessionId == id)
|
||||
&& await _sessions.FindAdvancedAsync(id).ConfigureAwait(true) is not null
|
||||
&& await _sessions.FindByIdAsync(id).ConfigureAwait(true) is { } older)
|
||||
{
|
||||
// Asked for from its summary, and older than the newest fifty: it is offered all the same.
|
||||
options.Add(await OptionOfAsync(older, names).ConfigureAwait(true));
|
||||
}
|
||||
|
||||
long? keep = asked ?? SelectedSession?.SessionId;
|
||||
SessionOptions = options;
|
||||
NoSessions = options.Count == 0;
|
||||
AdvancedSessionOption? next = options.Find(o => o.SessionId == keep) ?? (options.Count > 0 ? options[0] : null);
|
||||
if (asked is not null && next?.SessionId == asked)
|
||||
{
|
||||
SelectedTab = _sessionTab;
|
||||
}
|
||||
|
||||
// The selection is set without its own load, and the load is awaited here: one read of the session, in this task.
|
||||
_settingSession = true;
|
||||
SelectedSession = next;
|
||||
_settingSession = false;
|
||||
await LoadSessionAsync(next?.SessionId).ConfigureAwait(true);
|
||||
}
|
||||
|
||||
private async Task<AdvancedSessionOption> OptionOfAsync(SessionRow row, Dictionary<long, string> names)
|
||||
{
|
||||
if (!names.TryGetValue(row.GameId, out string? name))
|
||||
{
|
||||
name = (await _games.FindByIdAsync(row.GameId).ConfigureAwait(true))?.Name ?? Strings.Common_NotAvailable;
|
||||
names[row.GameId] = name;
|
||||
}
|
||||
|
||||
return new AdvancedSessionOption(row.Id, name + " — " + Formats.Date(row.StartedAt));
|
||||
}
|
||||
|
||||
private async Task LoadSessionAsync(long? sessionId)
|
||||
{
|
||||
AdvancedSessionRow? row = sessionId is long id ? await _sessions.FindAdvancedAsync(id).ConfigureAwait(true) : null;
|
||||
IReadOnlyList<SensorSeries> series = sessionId is long loaded && row is not null ? await _loader.LoadAdvancedAsync(loaded).ConfigureAwait(true) : [];
|
||||
if (SelectedSession?.SessionId != sessionId)
|
||||
{
|
||||
return; // another session was chosen while this one was read
|
||||
}
|
||||
|
||||
if (row is null)
|
||||
{
|
||||
_sessionSeries = [];
|
||||
_sessionDirectory = [];
|
||||
SessionSources = null;
|
||||
SessionGroups = [];
|
||||
SessionStats = [];
|
||||
SessionHasNoStats = false;
|
||||
SessionSeriesGone = false;
|
||||
SessionMetrics = [];
|
||||
SelectedSessionMetric = null;
|
||||
PresentSession();
|
||||
return;
|
||||
}
|
||||
|
||||
(IReadOnlyList<AdvancedFact> sessionFacts, AdvancedSources sources) = AdvancedJson.ParseSession(row.FactsJson);
|
||||
(IReadOnlyList<AdvancedSeriesInfo> directory, _) = AdvancedJson.ParseSeries(row.SeriesJson);
|
||||
IReadOnlyDictionary<string, SensorSeriesStats> stats = AdvancedJson.ParseStats(row.StatsJson);
|
||||
_sessionSeries = series;
|
||||
_sessionDirectory = directory;
|
||||
SessionSources = AdvancedPresenter.SourcesLine(sources);
|
||||
SessionGroups = AdvancedPresenter.Groups([.. AdvancedJson.ParseFacts(row.MachineFactsJson), .. sessionFacts]);
|
||||
SessionStats = AdvancedPresenter.Stats(stats, directory);
|
||||
SessionHasNoStats = stats.Count == 0;
|
||||
SessionSeriesGone = stats.Count > 0 && !series.Any(static s => s.Values.Length > 0);
|
||||
string? keep = SelectedSessionMetric?.Id;
|
||||
IReadOnlyList<AdvancedMetricOption> metrics = AdvancedPresenter.Metrics(series.Where(static s => s.Values.Length > 0).Select(static s => s.Name), directory);
|
||||
SessionMetrics = metrics;
|
||||
AdvancedMetricOption? next = metrics.FirstOrDefault(m => string.Equals(m.Id, keep, StringComparison.Ordinal)) ?? (metrics.Count > 0 ? metrics[0] : null);
|
||||
if (Equals(next, SelectedSessionMetric))
|
||||
{
|
||||
PresentSession();
|
||||
}
|
||||
else
|
||||
{
|
||||
SelectedSessionMetric = next;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,10 @@ namespace FrameLedger.App.ViewModels;
|
||||
[SuppressMessage("Performance", "CA1863:Use 'CompositeFormat'", Justification = "the format strings are resources that follow the UI culture, which changes at runtime")]
|
||||
public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
{
|
||||
/// <summary>Whether this session stored advanced metrics — it was recorded with the option on (owner decision D101).</summary>
|
||||
[ObservableProperty]
|
||||
private bool _hasAdvanced;
|
||||
|
||||
private readonly ISessionRepository _sessions;
|
||||
private readonly IGameRepository _games;
|
||||
private readonly ISessionAnnotationRepository _annotations;
|
||||
@@ -248,6 +252,14 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
|
||||
public static string ExportPngText => Strings.Summary_Export_Png;
|
||||
|
||||
public static string AdvancedText => Strings.Summary_Advanced_Button;
|
||||
|
||||
/// <summary>
|
||||
/// Opens this session on the Advanced page (owner decision D101); set by whoever opened the window. Null — a test, a
|
||||
/// host with no shell — and the button does nothing.
|
||||
/// </summary>
|
||||
public Action<long>? ShowAdvanced { get; set; }
|
||||
|
||||
public SessionRow? Row { get; private set; }
|
||||
|
||||
public GameRow? Game { get; private set; }
|
||||
@@ -284,6 +296,8 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
}
|
||||
|
||||
NotFound = false;
|
||||
// Recorded with Advanced metrics on: the row is there, and the button that leads to it is shown (D101).
|
||||
HasAdvanced = await _sessions.FindAdvancedAsync(sessionId, ct).ConfigureAwait(true) is not null;
|
||||
_annotation = await _annotations.FindAsync(sessionId, ct).ConfigureAwait(true);
|
||||
_segments = await _sessions.FindSegmentsAsync(sessionId, ct).ConfigureAwait(true);
|
||||
_snapshot = await _hardware.FindAsync(Row.SnapshotId, ct).ConfigureAwait(true);
|
||||
@@ -298,6 +312,15 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
[RelayCommand]
|
||||
private Task SaveAnnotationAsync() => Run(SaveAnnotationCoreAsync);
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenAdvanced()
|
||||
{
|
||||
if (Row is { } row)
|
||||
{
|
||||
ShowAdvanced?.Invoke(row.Id);
|
||||
}
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private Task ExportCsvAsync() => Run(() => ExportAsync("csv", "CSV|*.csv", WriteCsv));
|
||||
|
||||
|
||||
@@ -432,7 +432,16 @@ public sealed partial class SettingsViewModel : ObservableObject
|
||||
|
||||
partial void OnRemoveUninstalledGamesChanged(bool value) => Persist(SettingsRegistry.RetentionRemoveUninstalledGames, value);
|
||||
|
||||
partial void OnAdvancedMetricsChanged(bool value) => Persist(SettingsRegistry.TelemetryAdvanced, value);
|
||||
partial void OnAdvancedMetricsChanged(bool value)
|
||||
{
|
||||
if (!_loading)
|
||||
{
|
||||
// The page's navigation item and Ctrl+6 follow the switch at once (D105); what is read follows at the next session.
|
||||
AdvancedOption.IsOn = value;
|
||||
}
|
||||
|
||||
Persist(SettingsRegistry.TelemetryAdvanced, value);
|
||||
}
|
||||
|
||||
partial void OnHideAntiCheatHookingChanged(bool value) => Persist(SettingsRegistry.UiHideAntiCheatHooking, value);
|
||||
|
||||
|
||||
@@ -242,6 +242,9 @@
|
||||
<ui:Button Margin="8,0,0,0" Command="{Binding ViewModel.ExportJsonCommand}" Content="{x:Static vm:SessionSummaryViewModel.ExportJsonText}" />
|
||||
<ui:Button Margin="8,0,0,0" Click="OnExportPng" Content="{x:Static vm:SessionSummaryViewModel.ExportPngText}"
|
||||
IsEnabled="{Binding ViewModel.IsHooked}" />
|
||||
<!-- Advanced metrics (D101): only for a session recorded with the option on; it opens that session on the page. -->
|
||||
<ui:Button Margin="8,0,0,0" Command="{Binding ViewModel.OpenAdvancedCommand}" Content="{x:Static vm:SessionSummaryViewModel.AdvancedText}"
|
||||
Visibility="{Binding ViewModel.HasAdvanced, Converter={StaticResource BoolToVis}}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
@@ -93,4 +93,10 @@ public interface ISessionRepository
|
||||
/// with Advanced metrics off (or before they existed).
|
||||
/// </summary>
|
||||
ValueTask<AdvancedSessionRow?> FindAdvancedAsync(long sessionId, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// The newest sessions that have a row of <c>session_advanced</c> — recorded with Advanced metrics on — newest
|
||||
/// first, at most <paramref name="count"/>: what the Advanced page offers to look at (owner decision D101).
|
||||
/// </summary>
|
||||
ValueTask<IReadOnlyList<SessionRow>> ListAdvancedAsync(int count, CancellationToken ct = default);
|
||||
}
|
||||
@@ -229,6 +229,18 @@ public sealed class SqliteSessionRepository : ISessionRepository
|
||||
MachineFactsJson = r.IsDBNull(4) ? null : r.GetString(4),
|
||||
}), ct);
|
||||
|
||||
public ValueTask<IReadOnlyList<SessionRow>> ListAdvancedAsync(int count, CancellationToken ct = default)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count);
|
||||
return _db.ReadAsync((c, token) => SqliteReaders.ReadAllAsync(
|
||||
c,
|
||||
new CommandDefinition(
|
||||
SessionRowColumns.Select + " WHERE id IN (SELECT session_id FROM session_advanced) ORDER BY started_at DESC, id DESC LIMIT @count",
|
||||
new { count },
|
||||
cancellationToken: token),
|
||||
SessionRowColumns.Read), ct);
|
||||
}
|
||||
|
||||
public ValueTask<IReadOnlyList<SessionRow>> ListRecentAsync(int count, CancellationToken ct = default)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count);
|
||||
|
||||
@@ -320,9 +320,27 @@ public sealed class AccessibilityTests
|
||||
ShellShortcuts.Navigate(navigator, parameter).Should().BeTrue();
|
||||
}
|
||||
|
||||
navigator.Pages.Should().Equal(navigationOrder);
|
||||
navigationOrder.Should().Equal(nameof(DashboardPage), nameof(GamesPage), nameof(ComparePage), nameof(LogsPage), nameof(SettingsPage));
|
||||
ShellShortcuts.Navigate(navigator, "6").Should().BeFalse();
|
||||
// Owner decision D105 (2026-11-11): the Advanced page is the menu's last item and takes Ctrl+6 - Ctrl+1 … 5 keep the
|
||||
// pages they had, Settings in the footer included - and only while its option is on.
|
||||
navigationOrder.Should().Equal(nameof(DashboardPage), nameof(GamesPage), nameof(ComparePage), nameof(LogsPage), nameof(AdvancedPage), nameof(SettingsPage));
|
||||
navigator.Pages.Should().Equal(navigationOrder.Where(static p => !string.Equals(p, nameof(AdvancedPage), StringComparison.Ordinal)));
|
||||
bindings.Should().Contain((Key: "D6", Modifiers: "Control", Parameter: "6", Command: "{Binding ViewModel.NavigateToCommand}"));
|
||||
bindings.Should().Contain((Key: "NumPad6", Modifiers: "Control", Parameter: "6", Command: "{Binding ViewModel.NavigateToCommand}"));
|
||||
bool was = AdvancedOption.IsOn;
|
||||
try
|
||||
{
|
||||
AdvancedOption.IsOn = false;
|
||||
ShellShortcuts.Navigate(navigator, "6").Should().BeFalse("the number stays free while the option is off");
|
||||
AdvancedOption.IsOn = true;
|
||||
ShellShortcuts.Navigate(navigator, "6").Should().BeTrue();
|
||||
navigator.Pages[^1].Should().Be(nameof(AdvancedPage));
|
||||
}
|
||||
finally
|
||||
{
|
||||
AdvancedOption.IsOn = was;
|
||||
}
|
||||
|
||||
ShellShortcuts.Navigate(navigator, "7").Should().BeFalse();
|
||||
ShellShortcuts.Navigate(navigator, null).Should().BeFalse();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using FrameLedger.App.Services;
|
||||
using FrameLedger.Application.Advanced;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using FrameLedger.Application.Recording;
|
||||
using FrameLedger.Infrastructure.Blobs;
|
||||
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// One PC and one session as Advanced metrics see them, for the page's tests: a card with two fans read every fifth
|
||||
/// tick, a negative rail, a table-valued fact, a fact about one display, a token — every shape the page has to show.
|
||||
/// </summary>
|
||||
internal static class AdvancedFixtures
|
||||
{
|
||||
public const string Vram = "adv.nvapi.vram.in_use";
|
||||
public const string Fan1 = "adv.lhm.gpu.fan.gpu_nvidia_0_1";
|
||||
public const string Fan2 = "adv.lhm.gpu.fan.gpu_nvidia_0_2";
|
||||
public const string Rail = "adv.lhm.board.voltage.lpc_nct6798d_0_7";
|
||||
|
||||
public static readonly DateTimeOffset T0 = new(2026, 11, 11, 12, 0, 0, TimeSpan.Zero);
|
||||
|
||||
public static IReadOnlyList<AdvancedSeriesInfo> Directory { get; } =
|
||||
[
|
||||
new(Fan1, "lhm.gpu.fan", "GPU Fan 1"),
|
||||
new(Fan2, "lhm.gpu.fan", "GPU Fan 2"),
|
||||
new(Rail, "lhm.board.voltage", "-12V"),
|
||||
];
|
||||
|
||||
public static AdvancedSources Sources { get; } = new(AdvancedSourceStatus.Reading, NvapiCode: null, AdvancedSourceStatus.Reading, AdvancedSourceStatus.NotElevated);
|
||||
|
||||
public static IReadOnlyList<AdvancedFact> MachineFacts { get; } =
|
||||
[
|
||||
new("nvapi.driver.global_profile", Instance: null, AdvancedValue.OfRows([new AdvancedRow("Vertical sync", "0x60925292", "driver_default"), new AdvancedRow("Power management mode", "1")])),
|
||||
new("nvapi.gpu.rt_cores", Instance: null, AdvancedValue.Of(84)),
|
||||
new("nvapi.gpu.type", Instance: null, AdvancedValue.OfTokens("discrete")),
|
||||
new("nvapi.display.luminance_max", "DISPLAY1", AdvancedValue.Of(417)),
|
||||
new("nvapi.gpu.vbios_version", Instance: null, AdvancedValue.OfText("98.01.2F.00.6B")),
|
||||
];
|
||||
|
||||
public static IReadOnlyList<AdvancedFact> SessionFacts { get; } =
|
||||
[
|
||||
new("nvapi.session.vrr_enabled", Instance: null, AdvancedValue.Of(true)),
|
||||
];
|
||||
|
||||
/// <summary>What the feed shows after two ticks: memory read on both, the fans on the first only.</summary>
|
||||
public static AdvancedMachineView View(AdvancedFeedState state = AdvancedFeedState.Live) => new(
|
||||
state,
|
||||
T0.AddSeconds(1),
|
||||
MachineFacts,
|
||||
new Dictionary<string, AdvancedLivePoint>(StringComparer.Ordinal)
|
||||
{
|
||||
[Vram] = new(T0.AddSeconds(1), 5200),
|
||||
[Fan1] = new(T0, 1400),
|
||||
[Fan2] = new(T0, 1380),
|
||||
},
|
||||
Directory,
|
||||
Sources);
|
||||
|
||||
/// <summary>Six seconds of a session: memory every tick, the fans and the rail on the first and the last.</summary>
|
||||
public static SensorBlob[] Blobs() =>
|
||||
[
|
||||
Blob("t_ms", SeriesCodec.EncodeFloat32([0f, 1000f, 2000f, 3000f, 4000f, 5000f])),
|
||||
Blob(Vram, SeriesCodec.EncodeSparseFloat32([5000f, 5100f, 5200f, 5300f, 5400f, 5500f])),
|
||||
Blob(Fan1, SeriesCodec.EncodeSparseFloat32([1400f, float.NaN, float.NaN, float.NaN, float.NaN, 1500f])),
|
||||
Blob(Fan2, SeriesCodec.EncodeSparseFloat32([1380f, float.NaN, float.NaN, float.NaN, float.NaN, 1480f])),
|
||||
Blob(Rail, SeriesCodec.EncodeSparseFloat32([-11.97f, float.NaN, float.NaN, float.NaN, float.NaN, -12.03f])),
|
||||
];
|
||||
|
||||
/// <summary>The session's row, written as the recorder writes it.</summary>
|
||||
public static AdvancedSessionRow Row()
|
||||
{
|
||||
string machine = AdvancedJson.OfFacts(MachineFacts);
|
||||
return new AdvancedSessionRow
|
||||
{
|
||||
MachineFactsJson = machine,
|
||||
MachineHash = Convert.ToHexStringLower(SHA256.HashData(Encoding.UTF8.GetBytes(machine))),
|
||||
FactsJson = AdvancedJson.OfSession(SessionFacts, Sources),
|
||||
StatsJson = AdvancedJson.OfStats(new Dictionary<string, SensorSeriesStats>(StringComparer.Ordinal)
|
||||
{
|
||||
[Vram] = new(6, 5250, 5250, 5000, 5500),
|
||||
[Fan1] = new(2, 1450, 1450, 1400, 1500),
|
||||
[Rail] = new(2, -12, -12, -12.03, -11.97),
|
||||
}),
|
||||
SeriesJson = AdvancedJson.OfSeries(Directory, 0),
|
||||
};
|
||||
}
|
||||
|
||||
private static SensorBlob Blob(string series, byte[] data) => new() { Series = series, Hz = 1, Codec = SeriesCodec.Tag, Data = data };
|
||||
}
|
||||
@@ -0,0 +1,236 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Globalization;
|
||||
using FluentAssertions;
|
||||
using FrameLedger.App.Charts;
|
||||
using FrameLedger.App.ViewModels;
|
||||
using FrameLedger.Application.Advanced;
|
||||
using FrameLedger.Application.Recording;
|
||||
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// What the Advanced page shows, from what was read or stored (owner decision D101): every catalog entry has its
|
||||
/// words in every language, a value keeps its unit and its age, and an entry that is not read says why.
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1863:Use 'CompositeFormat'", Justification = "the format strings are resources that follow the UI culture")]
|
||||
public sealed class AdvancedPresenterTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("en")]
|
||||
[InlineData("vi")]
|
||||
[InlineData("ja")]
|
||||
public void EveryCatalogEntryGroupReasonStateAndTokenHasItsWordsInEveryLanguage(string culture)
|
||||
{
|
||||
CultureInfo c = CultureInfo.GetCultureInfo(culture);
|
||||
var missing = new List<string>();
|
||||
void Need(string key)
|
||||
{
|
||||
if (string.IsNullOrEmpty(Strings.ResourceManager.GetString(key, c)))
|
||||
{
|
||||
missing.Add(key);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (AdvancedMetric metric in AdvancedMetricCatalog.All)
|
||||
{
|
||||
Need(metric.LabelKey);
|
||||
Need("AdvGroup_" + metric.Group);
|
||||
Need("AdvScope_" + metric.Scope);
|
||||
if (!metric.IsRead)
|
||||
{
|
||||
Need("AdvReach_" + metric.Reach);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (AdvancedSourceStatus status in Enum.GetValues<AdvancedSourceStatus>())
|
||||
{
|
||||
Need("AdvSource_" + status);
|
||||
}
|
||||
|
||||
foreach (string token in Infrastructure.Telemetry.NvapiAdvancedTokens.All)
|
||||
{
|
||||
Need("AdvToken_" + token);
|
||||
}
|
||||
|
||||
missing.Should().BeEmpty("the page shows a label, never a key - and a token the driver's answer maps to has a word in " + culture);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheEnglishLabelOfAnEntryIsItsSummaryInTheCatalog()
|
||||
{
|
||||
// One text, in one place: the catalog's summary is what docs/18's table prints and what the page shows in English.
|
||||
CultureInfo en = CultureInfo.GetCultureInfo("en");
|
||||
foreach (AdvancedMetric metric in AdvancedMetricCatalog.All)
|
||||
{
|
||||
Strings.ResourceManager.GetString(metric.LabelKey, en).Should().Be(metric.Summary, metric.Id);
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FactsStandUnderTheirGroupsInTheCatalogsOrderWithTheirDisplayAndTheirRows()
|
||||
{
|
||||
IReadOnlyList<AdvancedFactGroup> groups = AdvancedPresenter.Groups(AdvancedFixtures.MachineFacts);
|
||||
|
||||
groups.Select(static g => g.Title).Should().Equal(AdvancedLabels.Group(AdvancedGroup.Gpu), AdvancedLabels.Group(AdvancedGroup.Driver), AdvancedLabels.Group(AdvancedGroup.Display));
|
||||
AdvancedFactGroup card = groups[0];
|
||||
card.Rows.Select(static r => r.Label).Should().Equal(
|
||||
Label("nvapi.gpu.type"), Label("nvapi.gpu.vbios_version"), Label("nvapi.gpu.rt_cores"));
|
||||
card.Rows[0].Value.Should().Be(AdvancedLabels.Token("discrete"), "a token is shown in this language");
|
||||
card.Rows[1].Value.Should().Be("98.01.2F.00.6B");
|
||||
card.Rows[2].Value.Should().Be(84.ToString("0.###", CultureInfo.CurrentCulture));
|
||||
|
||||
AdvancedFactRow profile = groups[1].Rows.Should().ContainSingle().Subject;
|
||||
profile.HasDetails.Should().BeTrue();
|
||||
profile.Value.Should().Be("2", "a table reads as how many rows it has, and unfolds");
|
||||
profile.Details.Should().Equal(
|
||||
new AdvancedDetailRow("Vertical sync", AdvancedLabels.Token("driver_default")),
|
||||
new AdvancedDetailRow("Power management mode", "1"));
|
||||
|
||||
AdvancedFactRow luminance = groups[2].Rows.Should().ContainSingle().Subject;
|
||||
luminance.Label.Should().Be(Label("nvapi.display.luminance_max") + " — DISPLAY1", "a fact about one display says which");
|
||||
luminance.Value.Should().Be(AdvancedLabels.Number(417, AdvancedUnit.Nits));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AFactThisBuildDoesNotKnowIsShownUnderItsOwnIdNotDropped()
|
||||
{
|
||||
IReadOnlyList<AdvancedFactGroup> groups = AdvancedPresenter.Groups([new AdvancedFact("nvapi.from.a.newer.build", Instance: null, AdvancedValue.OfText("x"))]);
|
||||
|
||||
groups.Should().ContainSingle().Which.Rows.Should().ContainSingle().Which.Label.Should().Be("nvapi.from.a.newer.build");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ASeriesIsNamedByTheDirectoryThenByTheCatalogThenByItsFamilyAndElseKeepsItsName()
|
||||
{
|
||||
AdvancedPresenter.Resolve(AdvancedFixtures.Fan1, AdvancedFixtures.Directory).Should().Be(
|
||||
(AdvancedMetricCatalog.Find("lhm.gpu.fan"), Label("lhm.gpu.fan") + " — GPU Fan 1"));
|
||||
AdvancedPresenter.Resolve(AdvancedFixtures.Vram, []).Should().Be((AdvancedMetricCatalog.Find("nvapi.vram.in_use"), Label("nvapi.vram.in_use")));
|
||||
AdvancedPresenter.Resolve(AdvancedFixtures.Fan2, []).Should().Be(
|
||||
(AdvancedMetricCatalog.Find("lhm.gpu.fan"), Label("lhm.gpu.fan") + " — gpu_nvidia_0_2"), "a member whose directory entry is gone still belongs to its family");
|
||||
AdvancedPresenter.Resolve("adv.nobody.knows", []).Should().Be((null, "adv.nobody.knows"));
|
||||
AdvancedPresenter.Resolve("gpu_temp", []).Should().Be((null, "gpu_temp"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ALiveRowCarriesItsUnitAndTheTimeItWasReadAt()
|
||||
{
|
||||
IReadOnlyList<AdvancedLiveRow> rows = AdvancedPresenter.Live(AdvancedFixtures.View());
|
||||
|
||||
rows.Select(static r => r.Label).Should().Equal(
|
||||
Label("nvapi.vram.in_use"), Label("lhm.gpu.fan") + " — GPU Fan 1", Label("lhm.gpu.fan") + " — GPU Fan 2");
|
||||
rows[0].Value.Should().Be(AdvancedLabels.Number(5200, AdvancedUnit.Mebibytes));
|
||||
rows[1].Value.Should().Be(AdvancedLabels.Number(1400, AdvancedUnit.Rpm));
|
||||
rows[0].ReadAt.Should().Be(AdvancedFixtures.T0.AddSeconds(1).ToLocalTime().ToString("T", CultureInfo.CurrentCulture));
|
||||
rows[1].ReadAt.Should().Be(AdvancedFixtures.T0.ToLocalTime().ToString("T", CultureInfo.CurrentCulture),
|
||||
"a fan read every fifth second is as old as its time says, and the row says it");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheSelectorOffersTheEntriesThatHaveASeriesOnceEachInTheCatalogsOrder()
|
||||
{
|
||||
IReadOnlyList<AdvancedMetricOption> metrics = AdvancedPresenter.Metrics(
|
||||
[AdvancedFixtures.Fan2, AdvancedFixtures.Rail, AdvancedFixtures.Vram, AdvancedFixtures.Fan1, "adv.nobody.knows"], AdvancedFixtures.Directory);
|
||||
|
||||
metrics.Select(static m => m.Id).Should().Equal("nvapi.vram.in_use", "lhm.gpu.fan", "lhm.board.voltage");
|
||||
metrics[1].Label.Should().Be(Label("lhm.gpu.fan"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AnEntrysLinesAreItsSeriesAndAboveEightTheirLowestAverageAndHighest()
|
||||
{
|
||||
IReadOnlyList<SensorSeries> series = SessionSeriesLoader.DecodeAdvanced(AdvancedFixtures.Blobs());
|
||||
|
||||
(IReadOnlyList<AdvancedChartLine> fans, bool band) = AdvancedPresenter.Lines("lhm.gpu.fan", series, AdvancedFixtures.Directory);
|
||||
|
||||
band.Should().BeFalse();
|
||||
fans.Select(static l => l.Label).Should().Equal(Label("lhm.gpu.fan") + " — GPU Fan 1", Label("lhm.gpu.fan") + " — GPU Fan 2");
|
||||
fans[0].Xs.Should().Equal(0, 5);
|
||||
fans[0].Ys.Should().Equal(1400, 1500);
|
||||
|
||||
// Twelve cores: twelve lines cannot be told apart, so the chart draws what can be read off it.
|
||||
var cores = new List<SensorSeries>();
|
||||
var directory = new List<AdvancedSeriesInfo>();
|
||||
for (int i = 0; i < 12; i++)
|
||||
{
|
||||
string name = "adv.lhm.cpu.load.cpu_0_" + i.ToString(CultureInfo.InvariantCulture);
|
||||
cores.Add(new SensorSeries(name, [0, 5], [i, i * 2]));
|
||||
directory.Add(new AdvancedSeriesInfo(name, "lhm.cpu.load", "Core " + i.ToString(CultureInfo.InvariantCulture)));
|
||||
}
|
||||
|
||||
(IReadOnlyList<AdvancedChartLine> lines, bool isBand) = AdvancedPresenter.Lines("lhm.cpu.load", cores, directory);
|
||||
|
||||
isBand.Should().BeTrue();
|
||||
lines.Select(static l => l.Label).Should().Equal(Strings.Advanced_Min, Strings.Advanced_Mean, Strings.Advanced_Max);
|
||||
lines[0].Ys.Should().Equal(0, 0);
|
||||
lines[1].Ys.Should().Equal(5.5, 11);
|
||||
lines[2].Ys.Should().Equal(11, 22);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AnAdvancedSeriesKeepsItsNegativeReadingsAndLeavesOutTheTicksWithNone()
|
||||
{
|
||||
IReadOnlyList<SensorSeries> series = SessionSeriesLoader.DecodeAdvanced(AdvancedFixtures.Blobs());
|
||||
|
||||
series.Select(static s => s.Name).Should().Equal(AdvancedFixtures.Vram, AdvancedFixtures.Fan1, AdvancedFixtures.Fan2, AdvancedFixtures.Rail);
|
||||
SensorSeries rail = series[3];
|
||||
rail.TimesS.Should().Equal(0, 5);
|
||||
rail.Values[0].Should().BeApproximately(-11.97, 1e-4, "a -12 V rail is a reading; the fixed sensors' rule would have dropped it");
|
||||
series[0].TimesS.Should().Equal(0, 1, 2, 3, 4, 5);
|
||||
SessionSeriesLoader.DecodeAdvanced([]).Should().BeEmpty();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AStoredSeriesStatisticsKeepTheirUnit()
|
||||
{
|
||||
var stats = new Dictionary<string, SensorSeriesStats>(StringComparer.Ordinal)
|
||||
{
|
||||
[AdvancedFixtures.Rail] = new(2, -12, -12, -12.03, -11.97),
|
||||
[AdvancedFixtures.Vram] = new(6, 5250, 5250, 5000, 5500),
|
||||
};
|
||||
|
||||
IReadOnlyList<AdvancedStatRow> rows = AdvancedPresenter.Stats(stats, AdvancedFixtures.Directory);
|
||||
|
||||
rows.Select(static r => r.Label).Should().Equal(Label("nvapi.vram.in_use"), Label("lhm.board.voltage") + " — -12V");
|
||||
rows[0].Should().Be(new AdvancedStatRow(rows[0].Label, 6.ToString("N0", CultureInfo.CurrentCulture),
|
||||
AdvancedLabels.Number(5000, AdvancedUnit.Mebibytes), AdvancedLabels.Number(5250, AdvancedUnit.Mebibytes), AdvancedLabels.Number(5500, AdvancedUnit.Mebibytes)));
|
||||
rows[1].Min.Should().Be(AdvancedLabels.Number(-12.03, AdvancedUnit.Volts));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void EveryCatalogEntryIsOnTheSourcesListReadOrWithItsReason()
|
||||
{
|
||||
IReadOnlyList<AdvancedSourceRow> unknown = AdvancedPresenter.Sources(now: null);
|
||||
IReadOnlyList<AdvancedSourceRow> live = AdvancedPresenter.Sources(AdvancedFixtures.Sources);
|
||||
|
||||
unknown.Should().HaveCount(AdvancedMetricCatalog.All.Count);
|
||||
AdvancedSourceRow At(IReadOnlyList<AdvancedSourceRow> rows, string id) => rows[AdvancedMetricCatalog.All.ToList().FindIndex(m => string.Equals(m.Id, id, StringComparison.Ordinal))];
|
||||
|
||||
At(unknown, "nvapi.gpu.rt_cores").Status.Should().Be(Strings.Advanced_Status_Readable, "with nobody asking, the page does not claim that it is being read");
|
||||
At(live, "nvapi.gpu.rt_cores").Status.Should().Be(Strings.Advanced_Status_Read);
|
||||
At(live, "lhm.gpu.fan").Status.Should().Be(Strings.Advanced_Status_Read);
|
||||
At(live, "lhm.cpu.temperature").Status.Should().Be(
|
||||
string.Format(CultureInfo.CurrentCulture, Strings.Advanced_Status_SourceSilent, AdvancedLabels.Status(AdvancedSourceStatus.NotElevated)),
|
||||
"the processor's sensors need the agent as administrator, and the row says so in words");
|
||||
At(live, "nvapi.gpu.board_serial").Should().Be(new AdvancedSourceRow(
|
||||
Label("nvapi.gpu.board_serial"), AdvancedLabels.Scope(AdvancedScope.MachineFact), "NVAPI", AdvancedLabels.Reach(AdvancedReach.Identifier), IsRead: false));
|
||||
At(live, "sl.constants.camera").Status.Should().Be(AdvancedLabels.Reach(AdvancedReach.PlayerState));
|
||||
live.Where(static r => r.IsRead).Should().HaveCount(AdvancedMetricCatalog.All.Count(static m => m.IsRead));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AValueIsShownInItsUnitAndAFlagAsYesOrNo()
|
||||
{
|
||||
AdvancedLabels.Number(1, AdvancedUnit.Flag).Should().Be(Strings.Common_Yes);
|
||||
AdvancedLabels.Number(0, AdvancedUnit.Flag).Should().Be(Strings.Common_No);
|
||||
AdvancedLabels.Number(-11.97, AdvancedUnit.Volts).Should().Be((-11.97).ToString("0.###", CultureInfo.CurrentCulture) + " V");
|
||||
AdvancedLabels.Number(3 * 1024 * 1024, AdvancedUnit.BytesPerSecond).Should().Be(3.ToString("0.#", CultureInfo.CurrentCulture) + " MiB/s");
|
||||
AdvancedLabels.Number(512, AdvancedUnit.BytesPerSecond).Should().Be("512 B/s");
|
||||
AdvancedLabels.Token("a_token_from_a_newer_build").Should().Be("a_token_from_a_newer_build", "what was stored is shown, not nothing");
|
||||
AdvancedLabels.Value(AdvancedValue.OfTokens("hdr10", "dolby_vision"), AdvancedUnit.Text).Should().Be(AdvancedLabels.Token("hdr10") + ", " + AdvancedLabels.Token("dolby_vision"));
|
||||
AdvancedPresenter.SourcesLine(AdvancedFixtures.Sources).Should().Contain(AdvancedLabels.Status(AdvancedSourceStatus.NotElevated));
|
||||
}
|
||||
|
||||
private static string Label(string id) => AdvancedLabels.Of(AdvancedMetricCatalog.Find(id)!);
|
||||
}
|
||||
@@ -0,0 +1,320 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
||||
|
||||
using System.Globalization;
|
||||
using FluentAssertions;
|
||||
using FrameLedger.App.Charts;
|
||||
using FrameLedger.App.Services;
|
||||
using FrameLedger.App.ViewModels;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using FrameLedger.Shared.Ipc;
|
||||
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// The Advanced page's view model (owner decisions D101, D105, D107): the Agent is asked only while the page is on
|
||||
/// screen, a session recorded with the option on is read from the ledger, and a viewer has sessions and no PC.
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1863:Use 'CompositeFormat'", Justification = "the format strings are resources that follow the UI culture")]
|
||||
public sealed class AdvancedViewModelTests
|
||||
{
|
||||
private static CancellationToken Ct => TestContext.Current.CancellationToken;
|
||||
|
||||
[Fact]
|
||||
public async Task TheAgentIsAskedOnlyBetweenAttachAndDetach()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
int asked = 0;
|
||||
var agent = new FakeAgentLink
|
||||
{
|
||||
Answer = (_, _) =>
|
||||
{
|
||||
Interlocked.Increment(ref asked);
|
||||
return FakeAgentLink.Envelope(IpcMessageType.AdvancedMachineAck, new AdvancedMachineAck(Ready: false, 0, null, null, [], [], "Unknown", null, "Unknown", "Unknown"));
|
||||
},
|
||||
};
|
||||
using var feed = new AdvancedMachineFeed(agent, TimeProvider.System, TimeSpan.FromMilliseconds(20));
|
||||
AdvancedViewModel vm = Make(s, feed);
|
||||
await vm.Pending;
|
||||
|
||||
await Task.Delay(80, Ct);
|
||||
Volatile.Read(ref asked).Should().Be(0, "D107: a page that is not on screen asks nothing, so the Agent reads no sensor for it");
|
||||
|
||||
vm.Attach();
|
||||
vm.Attach();
|
||||
await UntilAsync(() => Volatile.Read(ref asked) >= 2);
|
||||
vm.Detach();
|
||||
await Task.Delay(100, Ct);
|
||||
int after = Volatile.Read(ref asked);
|
||||
await Task.Delay(150, Ct);
|
||||
|
||||
Volatile.Read(ref asked).Should().Be(after, "the page left the screen: the asking stops, and the Agent's lease runs out");
|
||||
feed.Current.State.Should().Be(AdvancedFeedState.Stopped);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task WhatTheAgentReadIsShownWithItsStateItsFactsItsRowsAndAChartOfTheFirstEntry()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
using var feed = new AdvancedMachineFeed(new FakeAgentLink(), TimeProvider.System);
|
||||
AdvancedViewModel vm = Make(s, feed);
|
||||
await vm.Pending;
|
||||
int presented = 0;
|
||||
vm.LivePresented += (_, _) => presented++;
|
||||
|
||||
vm.ShowMachine(AdvancedFixtures.View());
|
||||
|
||||
vm.MachineStatus.Should().Be(string.Format(CultureInfo.CurrentCulture, Strings.Advanced_State_Live,
|
||||
AdvancedFixtures.T0.AddSeconds(1).ToLocalTime().ToString("T", CultureInfo.CurrentCulture)));
|
||||
vm.MachineGroups.Should().HaveCount(3);
|
||||
vm.LiveRows.Should().HaveCount(3);
|
||||
vm.LiveMetrics.Select(static m => m.Id).Should().Equal("nvapi.vram.in_use", "lhm.gpu.fan");
|
||||
vm.SelectedLiveMetric!.Id.Should().Be("nvapi.vram.in_use", "the chart draws something without being asked");
|
||||
vm.ShowElevationHint.Should().BeTrue("the agent is not an administrator's: the page says what that leaves unread and where to change it");
|
||||
vm.SourcesNow.Should().Be(AdvancedPresenter.SourcesLine(AdvancedFixtures.Sources));
|
||||
presented.Should().BeGreaterThan(0);
|
||||
|
||||
// Another state keeps what was shown and says why it is not new.
|
||||
vm.ShowMachine(AdvancedFixtures.View(AdvancedFeedState.NoAgent));
|
||||
vm.MachineStatus.Should().Be(Strings.Advanced_State_NoAgent);
|
||||
vm.LiveRows.Should().HaveCount(3);
|
||||
vm.SourcesNow.Should().BeNull("with no answer the sources' state is not known, and is not claimed");
|
||||
|
||||
vm.ShowMachine(AdvancedMachineView.Stopped with { State = AdvancedFeedState.Off });
|
||||
vm.MachineStatus.Should().Be(Strings.Advanced_State_Off);
|
||||
vm.LiveRows.Should().BeEmpty();
|
||||
vm.SelectedLiveMetric.Should().BeNull();
|
||||
vm.LiveChartEmpty.Should().BeTrue();
|
||||
|
||||
vm.ShowMachine(AdvancedMachineView.Stopped with { State = AdvancedFeedState.OlderAgent });
|
||||
vm.MachineStatus.Should().Be(Strings.Advanced_State_OlderAgent);
|
||||
vm.ShowMachine(AdvancedMachineView.Stopped with { State = AdvancedFeedState.Waiting });
|
||||
vm.MachineStatus.Should().Be(Strings.Advanced_State_Waiting);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task WithNoSessionRecordedWithTheOptionOnTheSessionTabSaysSo()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Alpha");
|
||||
await s.SessionAsync(game.Id, AdvancedFixtures.T0);
|
||||
using var feed = new AdvancedMachineFeed(new FakeAgentLink(), TimeProvider.System);
|
||||
|
||||
AdvancedViewModel vm = Make(s, feed);
|
||||
await vm.Pending;
|
||||
|
||||
vm.NoSessions.Should().BeTrue("a session recorded while the option was off has no row, and is not offered");
|
||||
vm.SessionOptions.Should().BeEmpty();
|
||||
vm.SelectedSession.Should().BeNull();
|
||||
vm.SessionChartEmpty.Should().BeTrue();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task TheNewestAdvancedSessionIsShownWithItsFactsItsStatisticsAndItsChart()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Alpha");
|
||||
long older = await s.SessionAsync(game.Id, AdvancedFixtures.T0.AddHours(-2), sensors: AdvancedFixtures.Blobs(), advanced: AdvancedFixtures.Row());
|
||||
long newer = await s.SessionAsync(game.Id, AdvancedFixtures.T0, sensors: AdvancedFixtures.Blobs(), advanced: AdvancedFixtures.Row());
|
||||
await s.SessionAsync(game.Id, AdvancedFixtures.T0.AddHours(1));
|
||||
using var feed = new AdvancedMachineFeed(new FakeAgentLink(), TimeProvider.System);
|
||||
|
||||
AdvancedViewModel vm = Make(s, feed);
|
||||
await vm.Pending;
|
||||
|
||||
vm.NoSessions.Should().BeFalse();
|
||||
vm.SessionOptions.Select(static o => o.SessionId).Should().Equal(newer, older);
|
||||
vm.SessionOptions[0].Text.Should().Be("Alpha — " + Formats.Date(AdvancedFixtures.T0));
|
||||
vm.SelectedSession!.SessionId.Should().Be(newer);
|
||||
vm.SessionSources.Should().Be(AdvancedPresenter.SourcesLine(AdvancedFixtures.Sources));
|
||||
vm.SessionGroups.SelectMany(static g => g.Rows).Should().HaveCount(AdvancedFixtures.MachineFacts.Count + AdvancedFixtures.SessionFacts.Count,
|
||||
"the PC's facts as they were then, and the session's own");
|
||||
vm.SessionStats.Should().HaveCount(3);
|
||||
vm.SessionHasNoStats.Should().BeFalse();
|
||||
vm.SessionSeriesGone.Should().BeFalse();
|
||||
vm.SessionMetrics.Select(static m => m.Id).Should().Equal("nvapi.vram.in_use", "lhm.gpu.fan", "lhm.board.voltage");
|
||||
vm.SessionLines.Should().ContainSingle().Which.Ys.Should().Equal(5000, 5100, 5200, 5300, 5400, 5500);
|
||||
vm.SessionUnit.Should().Be("MiB");
|
||||
|
||||
int presented = 0;
|
||||
vm.SessionPresented += (_, _) => presented++;
|
||||
vm.SelectedSessionMetric = vm.SessionMetrics[1];
|
||||
|
||||
presented.Should().Be(1);
|
||||
vm.SessionLines.Should().HaveCount(2, "the two fans");
|
||||
vm.SessionUnit.Should().Be("RPM");
|
||||
|
||||
vm.SelectedSession = vm.SessionOptions[1];
|
||||
await vm.Pending;
|
||||
vm.SelectedSessionMetric!.Id.Should().Be("lhm.gpu.fan", "another session keeps the entry the chart was showing where it has it");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ASessionWhoseRawSeriesWereSweptKeepsItsStatisticsAndSaysTheSeriesAreGone()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Alpha");
|
||||
await s.SessionAsync(game.Id, AdvancedFixtures.T0, advanced: AdvancedFixtures.Row());
|
||||
using var feed = new AdvancedMachineFeed(new FakeAgentLink(), TimeProvider.System);
|
||||
|
||||
AdvancedViewModel vm = Make(s, feed);
|
||||
await vm.Pending;
|
||||
|
||||
vm.SessionStats.Should().HaveCount(3);
|
||||
vm.SessionSeriesGone.Should().BeTrue("retention removes the per-second series and keeps the statistics");
|
||||
vm.SessionMetrics.Should().BeEmpty();
|
||||
vm.SessionChartEmpty.Should().BeTrue();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ASessionAskedForFromItsSummaryIsTheOneShownOnTheSessionTab()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Alpha");
|
||||
long older = await s.SessionAsync(game.Id, AdvancedFixtures.T0.AddHours(-2), sensors: AdvancedFixtures.Blobs(), advanced: AdvancedFixtures.Row());
|
||||
await s.SessionAsync(game.Id, AdvancedFixtures.T0, sensors: AdvancedFixtures.Blobs(), advanced: AdvancedFixtures.Row());
|
||||
using var feed = new AdvancedMachineFeed(new FakeAgentLink { IsConnected = false }, TimeProvider.System);
|
||||
var selection = new AdvancedSelection();
|
||||
AdvancedViewModel vm = Make(s, feed, selection);
|
||||
await vm.Pending;
|
||||
vm.SelectedTab.Should().Be(0);
|
||||
|
||||
selection.Request(older);
|
||||
vm.Attach();
|
||||
await vm.Pending;
|
||||
|
||||
vm.SelectedSession!.SessionId.Should().Be(older);
|
||||
vm.SelectedTab.Should().Be(1, "the summary's button leads to that session, not to this PC");
|
||||
selection.Take().Should().BeNull("asked for once: opened from the navigation pane afterwards, the page shows its newest session");
|
||||
|
||||
// And while the page is already on screen, a second summary's request is taken at once.
|
||||
long newest = vm.SessionOptions[0].SessionId;
|
||||
selection.Request(newest);
|
||||
await vm.Pending;
|
||||
vm.SelectedSession!.SessionId.Should().Be(newest);
|
||||
vm.Detach();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AViewerOpensOnItsSessionsAndAsksNoAgent()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Alpha");
|
||||
await s.SessionAsync(game.Id, AdvancedFixtures.T0, sensors: AdvancedFixtures.Blobs(), advanced: AdvancedFixtures.Row());
|
||||
var agent = new FakeAgentLink { IsConnected = false };
|
||||
using var feed = new AdvancedMachineFeed(agent, TimeProvider.System, TimeSpan.FromMilliseconds(20));
|
||||
|
||||
AdvancedViewModel vm = Make(s, feed, mode: new UiMode(true, System.IO.Path.GetTempPath()));
|
||||
await vm.Pending;
|
||||
vm.Attach();
|
||||
await Task.Delay(100, Ct);
|
||||
|
||||
vm.SelectedTab.Should().Be(1, "a copy is opened to look at its sessions");
|
||||
vm.MachineStatus.Should().Be(Strings.Advanced_State_Viewer);
|
||||
agent.Sent.Should().BeEmpty("a viewer has no Agent, and does not look for one every second");
|
||||
vm.SelectedSession.Should().NotBeNull();
|
||||
vm.Detach();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task TheSummaryOffersAdvancedMetricsOnlyForASessionThatStoredThem()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Alpha");
|
||||
long with = await s.SessionAsync(game.Id, AdvancedFixtures.T0, sensors: AdvancedFixtures.Blobs(), advanced: AdvancedFixtures.Row());
|
||||
long without = await s.SessionAsync(game.Id, AdvancedFixtures.T0.AddHours(1));
|
||||
long? opened = null;
|
||||
|
||||
SessionSummaryViewModel on = Summary(s);
|
||||
on.ShowAdvanced = id => opened = id;
|
||||
await on.LoadAsync(with, Ct);
|
||||
on.HasAdvanced.Should().BeTrue();
|
||||
on.OpenAdvancedCommand.Execute(null);
|
||||
opened.Should().Be(with);
|
||||
|
||||
SessionSummaryViewModel off = Summary(s);
|
||||
await off.LoadAsync(without, Ct);
|
||||
off.HasAdvanced.Should().BeFalse("recorded with the option off: there is nothing to lead to");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CtrlSixOpensThePageOnlyWhileTheOptionIsOn()
|
||||
{
|
||||
var navigator = new RecordingNavigator();
|
||||
bool was = AdvancedOption.IsOn;
|
||||
try
|
||||
{
|
||||
AdvancedOption.IsOn = false;
|
||||
ShellShortcuts.Navigate(navigator, "6").Should().BeFalse("D105: the number stays free while the option is off");
|
||||
navigator.Pages.Should().BeEmpty();
|
||||
|
||||
int notices = 0;
|
||||
void Count(object? sender, System.ComponentModel.PropertyChangedEventArgs e) => notices++;
|
||||
AdvancedOption.StaticPropertyChanged += Count;
|
||||
AdvancedOption.IsOn = true;
|
||||
AdvancedOption.IsOn = true;
|
||||
AdvancedOption.StaticPropertyChanged -= Count;
|
||||
|
||||
notices.Should().Be(1, "the navigation item is bound to it, and is told once per change");
|
||||
ShellShortcuts.Navigate(navigator, "6").Should().BeTrue();
|
||||
navigator.Pages.Should().Equal(nameof(Pages.AdvancedPage));
|
||||
}
|
||||
finally
|
||||
{
|
||||
AdvancedOption.IsOn = was;
|
||||
}
|
||||
}
|
||||
|
||||
private static AdvancedViewModel Make(ScratchLedger s, AdvancedMachineFeed feed, AdvancedSelection? selection = null, UiMode? mode = null) =>
|
||||
new(feed, s.Sessions, s.Games, new SessionSeriesLoader(s.Sessions), selection ?? new AdvancedSelection(), mode);
|
||||
|
||||
private static SessionSummaryViewModel Summary(ScratchLedger s) => new(s.Sessions, s.Games, s.Annotations,
|
||||
new Infrastructure.Persistence.SqliteHardwareSnapshotRepository(s.Db), new SessionSeriesLoader(s.Sessions), new NoOverride(), new NoSaver(), new NoStrip());
|
||||
|
||||
private static async Task UntilAsync(Func<bool> met)
|
||||
{
|
||||
DateTime deadline = DateTime.UtcNow.AddSeconds(30);
|
||||
while (!met())
|
||||
{
|
||||
DateTime.UtcNow.Should().BeBefore(deadline);
|
||||
await Task.Delay(10, Ct).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
private sealed class RecordingNavigator : IPageNavigator
|
||||
{
|
||||
public List<string> Pages { get; } = [];
|
||||
|
||||
public void Navigate<TPage>()
|
||||
where TPage : class => Pages.Add(typeof(TPage).Name);
|
||||
|
||||
public void GoBack()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
private sealed class NoOverride : ITriStateOverridePrompt
|
||||
{
|
||||
public Task<TriStateOverrideChoice?> AskAsync(TriStateChipModel chip, CancellationToken ct = default) => Task.FromResult<TriStateOverrideChoice?>(null);
|
||||
}
|
||||
|
||||
private sealed class NoSaver : IFileSaver
|
||||
{
|
||||
public string? PickSavePath(string filter, string suggestedName) => null;
|
||||
}
|
||||
|
||||
private sealed class NoStrip : IMessageStrip
|
||||
{
|
||||
public void Info(string title, string body)
|
||||
{
|
||||
}
|
||||
|
||||
public void Success(string title, string body)
|
||||
{
|
||||
}
|
||||
|
||||
public void Warn(string title, string body)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -156,7 +156,7 @@ public sealed partial class MarkdownRendererTests
|
||||
return problems;
|
||||
});
|
||||
|
||||
documents.Should().HaveCount(24, "eleven documents and the guide's thirteen pages");
|
||||
documents.Should().HaveCount(25, "eleven documents and the guide's fourteen pages");
|
||||
missing.Should().BeEmpty("the renderer must never shorten a document a user reads or accepts");
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
// 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 System.Windows.Data;
|
||||
using System.Xml.Linq;
|
||||
using FluentAssertions;
|
||||
using FrameLedger.App.Charts;
|
||||
using FrameLedger.App.Pages;
|
||||
using FrameLedger.App.Services;
|
||||
using Wpf.Ui.Controls;
|
||||
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>The Advanced page in a real window (owner decisions D101 and D105): its navigation item, its tables, its charts.</summary>
|
||||
public sealed partial class PagesLoadTests
|
||||
{
|
||||
/// <summary>
|
||||
/// D105: the item is in the pane only while the option is on. The shell's XAML binds its <c>Visibility</c> to
|
||||
/// <see cref="AdvancedOption.IsOn"/>; this holds that binding in place and proves the control honours it — a
|
||||
/// <c>NavigationViewItem</c> that ignored <c>Visibility</c> would leave a dead item in the pane with the option off.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task TheAdvancedNavigationItemTakesNoPlaceWhileTheOptionIsOff()
|
||||
{
|
||||
XDocument shell = XDocument.Load(System.IO.Path.Combine(AccessibilityTests.RepoRoot(), "src", "FrameLedger.App", "MainWindow.xaml"));
|
||||
XElement declared = shell.Descendants().Single(static e => string.Equals(e.Name.LocalName, "NavigationViewItem", StringComparison.Ordinal)
|
||||
&& (e.Attribute("TargetPageType")?.Value.Contains("AdvancedPage", StringComparison.Ordinal) ?? false));
|
||||
declared.Attribute("Visibility")?.Value.Should().Be("{Binding Path=(services:AdvancedOption.IsOn), Converter={StaticResource BoolToVis}}");
|
||||
declared.Parent!.Name.LocalName.Should().Be("NavigationView.MenuItems", "the last of the menu's items, above the footer's Settings");
|
||||
declared.ElementsAfterSelf().Should().BeEmpty();
|
||||
|
||||
(double Off, double On, double Neighbour) heights = await OnStaAsync(() =>
|
||||
{
|
||||
bool was = AdvancedOption.IsOn;
|
||||
var logs = new NavigationViewItem { Content = "Logs", TargetPageType = typeof(LogsPage) };
|
||||
var advanced = new NavigationViewItem { Content = "Advanced", TargetPageType = typeof(AdvancedPage) };
|
||||
_ = advanced.SetBinding(UIElement.VisibilityProperty, new Binding
|
||||
{
|
||||
Path = new PropertyPath("(0)", typeof(AdvancedOption).GetProperty(nameof(AdvancedOption.IsOn))!),
|
||||
Converter = new BooleanToVisibilityConverter(),
|
||||
});
|
||||
var navigation = new NavigationView { PaneDisplayMode = NavigationViewPaneDisplayMode.LeftFluent, IsBackButtonVisible = NavigationViewBackButtonVisible.Collapsed };
|
||||
_ = navigation.MenuItems.Add(logs);
|
||||
_ = navigation.MenuItems.Add(advanced);
|
||||
var host = new FluentWindow { Content = navigation };
|
||||
try
|
||||
{
|
||||
AdvancedOption.IsOn = false;
|
||||
Lay(navigation);
|
||||
Visuals.Pump();
|
||||
double off = advanced.IsVisible ? advanced.ActualHeight : 0;
|
||||
AdvancedOption.IsOn = true;
|
||||
Lay(navigation);
|
||||
Visuals.Pump();
|
||||
return (off, advanced.ActualHeight, logs.ActualHeight);
|
||||
}
|
||||
finally
|
||||
{
|
||||
AdvancedOption.IsOn = was;
|
||||
host.Close();
|
||||
}
|
||||
});
|
||||
|
||||
heights.Neighbour.Should().BeGreaterThan(0, "the pane lays its items out in this window");
|
||||
heights.Off.Should().Be(0, "off, the item takes no place in the pane");
|
||||
heights.On.Should().Be(heights.Neighbour, "on, it is an item like the others - without a restart");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task TheAdvancedPageDrawsItsFactsItsRowsAndBothCharts()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
using Surfaces surfaces = await Surfaces.LoadAsync(s);
|
||||
|
||||
(int Grids, int Rows, int LiveLines, int SessionLines, int Expanders) drawn = await OnStaAsync(() =>
|
||||
{
|
||||
(Window host, FrameworkElement root) = Hosted(() => new AdvancedPage(surfaces.Advanced));
|
||||
try
|
||||
{
|
||||
Lay(root);
|
||||
Visuals.Pump();
|
||||
var charts = Visuals.FindAll<AdvancedSeriesChart>(root).ToList();
|
||||
AdvancedPage page = Visuals.Find<AdvancedPage>(root) ?? throw new InvalidOperationException("the page is not in the frame");
|
||||
int rows = Visuals.FindAll<DataGridRow>(root).Count();
|
||||
int expanders = Visuals.FindAll<Expander>(root).Count(static e => e.Visibility == Visibility.Visible);
|
||||
|
||||
// The second tab's content exists once it is selected: the session's chart is drawn from the stored series.
|
||||
page.ViewModel.SelectedTab = 1;
|
||||
Lay(root);
|
||||
Visuals.Pump();
|
||||
var session = Visuals.FindAll<AdvancedSeriesChart>(root).ToList();
|
||||
return (Visuals.FindAll<System.Windows.Controls.DataGrid>(root).Count(), rows, charts.Sum(static c => c.DrawnLines), session.Sum(static c => c.DrawnLines), expanders);
|
||||
}
|
||||
finally
|
||||
{
|
||||
host.Close();
|
||||
}
|
||||
});
|
||||
|
||||
drawn.Rows.Should().Be(3, "This PC lists the three series the fixture's view holds");
|
||||
drawn.Expanders.Should().Be(1, "the driver's global profile is a table, and unfolds");
|
||||
drawn.LiveLines.Should().Be(0, "the fixture's feed has no history: nothing was asked, so the live chart is empty and says so");
|
||||
drawn.SessionLines.Should().Be(1, "the session's first entry - the card's memory in use - is one line");
|
||||
drawn.Grids.Should().BeGreaterThan(0);
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,8 @@ public sealed partial class PagesLoadTests
|
||||
|
||||
public LogsViewModel Logs { get; private set; } = null!;
|
||||
|
||||
public AdvancedViewModel Advanced { get; private set; } = null!;
|
||||
|
||||
public SessionSummaryViewModel Summary { get; private set; } = null!;
|
||||
|
||||
public FirstRunViewModel FirstRun { get; private set; } = null!;
|
||||
@@ -74,6 +76,8 @@ public sealed partial class PagesLoadTests
|
||||
new FgMixRow(FgMixKind.None, null, 118, 118, 2, 0.2, 1),
|
||||
new FgMixRow(FgMixKind.Unclassified, null, null, null, 1, 0.1, 1),
|
||||
]))!;
|
||||
// Advanced metrics (D101): a session recorded with the option on, so the page's Session tab has facts, statistics and a chart.
|
||||
await s.SessionAsync(game.Id, DateTimeOffset.UtcNow.AddHours(-2), sensors: AdvancedFixtures.Blobs(), advanced: AdvancedFixtures.Row()).ConfigureAwait(false);
|
||||
long withFrames = await s.SessionWithFramesAsync(game.Id, DateTimeOffset.UtcNow.AddHours(-5), frames: 600, spikeEvery: 200, shape: r => r with { FgMixJson = mix }).ConfigureAwait(false);
|
||||
var surfaces = new Surfaces(s);
|
||||
await surfaces.LoadPagesAsync(game.Id).ConfigureAwait(false);
|
||||
@@ -128,6 +132,12 @@ public sealed partial class PagesLoadTests
|
||||
(SettingsViewModel settings, LogsViewModel logs) = await SettingsAndLogsAsync(s, consent, strip).ConfigureAwait(false);
|
||||
Settings = settings;
|
||||
Logs = logs;
|
||||
// The Advanced page with this PC as the Agent last read it - facts, a table that unfolds, live rows, a chart - and
|
||||
// the session above; no feed loop runs, so nothing here waits on a clock.
|
||||
Advanced = new AdvancedViewModel(Own(new AdvancedMachineFeed(new NoAgent(), TimeProvider.System)), s.Sessions, s.Games, new SessionSeriesLoader(s.Sessions), new AdvancedSelection());
|
||||
Task pending5 = Advanced.Pending;
|
||||
await pending5.ConfigureAwait(false);
|
||||
Advanced.ShowMachine(AdvancedFixtures.View());
|
||||
}
|
||||
|
||||
/// <summary>Every surface by name, each with a builder to call on the STA thread.</summary>
|
||||
@@ -142,6 +152,7 @@ public sealed partial class PagesLoadTests
|
||||
("Compare", () => new ComparePage(Compare)),
|
||||
("Settings", () => new SettingsPage(Settings, new SystemInfoViewModel(new FixedHardware(), new NoClipboard(), new NoStrip()))),
|
||||
("Logs", () => new LogsPage(Logs)),
|
||||
("Advanced", () => new AdvancedPage(Advanced)),
|
||||
];
|
||||
|
||||
/// <summary>The first run's gate and the secondary windows: About, the user guide, a session's summary.</summary>
|
||||
|
||||
@@ -44,7 +44,7 @@ internal sealed class ScratchLedger : IAsyncDisposable
|
||||
|
||||
public async Task<long> SessionAsync(long gameId, DateTimeOffset startedAt, int seconds = 600, bool hooked = true, string fgMode = "none", double? native = 60, double? displayed = null, double? factor = null, ExitStatus exit = ExitStatus.Normal, string? fgRefusal = null, double? presented = null, string? qualifier = null,
|
||||
IReadOnlyList<SensorBlob>? sensors = null, Domain.Display.DisplaySummary? display = null, bool settingsChanged = false,
|
||||
Func<SessionRow, SessionRow>? shape = null)
|
||||
Func<SessionRow, SessionRow>? shape = null, AdvancedSessionRow? advanced = null)
|
||||
{
|
||||
long snapshotId = await new SqliteHardwareSnapshotRepository(Db).EnsureAsync(new HardwareSnapshot { GpuName = "G" }, startedAt, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
var row = new SessionRow
|
||||
@@ -81,7 +81,7 @@ internal sealed class ScratchLedger : IAsyncDisposable
|
||||
};
|
||||
row = Application.Recording.SessionDisplayColumns.WithDisplay(row, display);
|
||||
row = shape?.Invoke(row) ?? row;
|
||||
return await Sessions.InsertFinalizedAsync(new FinalizedSession { Row = row, Sensors = sensors ?? [] }, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
return await Sessions.InsertFinalizedAsync(new FinalizedSession { Row = row, Sensors = sensors ?? [], Advanced = advanced }, TestContext.Current.CancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>A session that was not hooked, with the sensors a Tier-2 row keeps (since 2026-09-22): three ticks of GPU temperature and power.</summary>
|
||||
|
||||
@@ -157,6 +157,8 @@ public sealed class SeriesDigestTests
|
||||
|
||||
public ValueTask<IReadOnlyList<SessionRow>> ListRecentAsync(int count, CancellationToken ct = default) => inner.ListRecentAsync(count, ct);
|
||||
|
||||
public ValueTask<IReadOnlyList<SessionRow>> ListAdvancedAsync(int count, CancellationToken ct = default) => inner.ListAdvancedAsync(count, ct);
|
||||
|
||||
public ValueTask<IReadOnlyList<SessionRow>> ListByGameAsync(long gameId, int limit, CancellationToken ct = default) => inner.ListByGameAsync(gameId, limit, ct);
|
||||
|
||||
public ValueTask<IReadOnlyList<GameSessionSummary>> SummariseByGameAsync(CancellationToken ct = default) => inner.SummariseByGameAsync(ct);
|
||||
|
||||
@@ -52,6 +52,9 @@ internal sealed class FakeSessionRepository : ISessionRepository
|
||||
public ValueTask<SessionRow?> FindAsync(Guid sessionGuid, CancellationToken ct = default) =>
|
||||
ValueTask.FromResult(Stored.Select(s => s.Row).FirstOrDefault(r => r.SessionGuid == sessionGuid));
|
||||
|
||||
public ValueTask<IReadOnlyList<SessionRow>> ListAdvancedAsync(int count, CancellationToken ct = default) =>
|
||||
ValueTask.FromResult<IReadOnlyList<SessionRow>>([.. Stored.Where(static s => s.Advanced is not null).Select(static s => s.Row).TakeLast(count).Reverse()]);
|
||||
|
||||
public ValueTask<IReadOnlyList<SessionRow>> ListRecentAsync(int count, CancellationToken ct = default) =>
|
||||
ValueTask.FromResult<IReadOnlyList<SessionRow>>([.. Stored.Select(s => s.Row).TakeLast(count).Reverse()]);
|
||||
|
||||
|
||||
@@ -547,6 +547,23 @@ public sealed class SqliteSessionRepositoryTests
|
||||
float.IsNaN(rail[1]).Should().BeTrue("a tick with no reading is NaN");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task TheAdvancedListNamesOnlySessionsRecordedWithTheOptionOnNewestFirst()
|
||||
{
|
||||
// What the Advanced page offers to look at (owner decision D101): a session with no row was recorded with the
|
||||
// option off, and is not on the list.
|
||||
await using LedgerFixture f = await LedgerFixture.OpenAsync();
|
||||
(long gameId, long snapshotId) = await SeedAsync(f);
|
||||
var repo = new SqliteSessionRepository(f.Db);
|
||||
DateTimeOffset t0 = DateTimeOffset.FromUnixTimeMilliseconds(1_700_000_000_000);
|
||||
long older = await repo.InsertFinalizedAsync(new FinalizedSession { Row = Row(gameId, snapshotId, started: t0), Sensors = SensorsWithAdvanced(), Advanced = Advanced() }, Ct);
|
||||
await repo.InsertFinalizedAsync(new FinalizedSession { Row = Row(gameId, snapshotId, started: t0.AddHours(1)), Sensors = [.. SensorsWithAdvanced().Take(2)] }, Ct);
|
||||
long newer = await repo.InsertFinalizedAsync(new FinalizedSession { Row = Row(gameId, snapshotId, started: t0.AddHours(2)), Sensors = SensorsWithAdvanced(), Advanced = Advanced() }, Ct);
|
||||
|
||||
(await repo.ListAdvancedAsync(10, Ct)).Select(static s => s.Id).Should().Equal(newer, older);
|
||||
(await repo.ListAdvancedAsync(1, Ct)).Select(static s => s.Id).Should().Equal(newer);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ASessionRecordedWithTheOptionOffHasNoAdvancedRow()
|
||||
{
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
- [When something goes wrong](../guide/09-troubleshooting.md)
|
||||
- [Words FrameLedger uses](../guide/10-glossary.md)
|
||||
- [Alpha builds](../guide/11-alpha-builds.md)
|
||||
- [Advanced metrics](../guide/12-advanced-metrics.md)
|
||||
- [The terms, in plain words](../guide/terms-in-plain-words.md)
|
||||
- [Limitations](../LIMITATIONS.md)
|
||||
- [Accessibility](../ACCESSIBILITY.md)
|
||||
|
||||
Reference in new issue
Block a user