Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0a53da534 |
No files matched your search
@@ -29,6 +29,18 @@ under a `## [x.y.z] - date` heading in the same commit that bumps `VERSION`, the
|
||||
|
||||
### Fixed
|
||||
|
||||
- **DLSS read "Unknown upscaler" on most titles while FSR was named.** Most DLSS titles call NGX directly, and no NGX
|
||||
hook may exist (the SDK's licence; `20_OPEN_QUESTIONS`), so the hook runs and sees nothing. The NVIDIA driver does
|
||||
report the feature per process, the Agent has stored that on every session since P2
|
||||
(`sessions.upscaler_driver_reported`) and the capture host has printed it since 2026-09-06 — **the App never read
|
||||
it.** It does now: where no hook named an upscaler and the driver reports NGX super resolution created and
|
||||
evaluated, the library, the session summary, the game page and the live card say **DLSS (driver-reported)** —
|
||||
attributed, identity only, never a quality. A hook's name still outranks it. Sessions already recorded show it too,
|
||||
because the column was always written. `unknown` itself now reads "Upscaler not identified". Nothing native changed.
|
||||
- **A measured DLSS preset is its name, not its number**: `DLSS Balanced`, not `DLSS 2` (`Domain.Metrics.UpscalerNames`,
|
||||
which `03_METRICS` had promised from the start). Only the Streamline route produces the byte; a value with no name
|
||||
is shown as stored. A preset derived from the render scale is still not shown — that is an open owner decision.
|
||||
|
||||
- **The Games card's platform and engine tags were empty white boxes in the light theme.** They were
|
||||
`ui:Badge Appearance="Secondary"`, whose WPF UI 4.3.0 trigger repaints the background only and keeps the default
|
||||
badge's on-accent foreground: near-white text on a near-white fill. They, and the edit dialog's "Detected" marker,
|
||||
|
||||
@@ -490,6 +490,12 @@ From the upscaler hooks we get, per frame:
|
||||
> the conflation the record had already removed.
|
||||
- `renderW × renderH` vs `outputW × outputH` → **exact upscale ratio**: `sqrt((outW×outH)/(renW×renH))`, reported both as a ratio (`1.50×`) and a percentage (`67% render scale`).
|
||||
- `upscalerQuality`: the vendor's own quality enum (DLSS Performance/Balanced/Quality/DLAA, XeSS quality setting, FSR preset), mapped to a display name per vendor in `Domain.UpscalerNames`.
|
||||
> **`Domain.Metrics.UpscalerNames` exists since 2026-09-21; this line promised it from the start and the UI printed the
|
||||
> raw integer until then.** It holds ONE table because one producer exists: `sl::DLSSMode` as the title chained it
|
||||
> into `slEvaluateFeature` (1 Performance · 2 Balanced · 3 Quality · 4 Ultra Performance · 5 Ultra Quality · 6 DLAA;
|
||||
> `eOff` and anything past `eCount` never reach a row). The ffx-api dispatch carries no quality and XeSS has no hook,
|
||||
> so there is nothing of theirs to name. A value the table does not know is shown as stored. It names the MEASURED
|
||||
> byte only — a label derived from the render/output ratio is `HANDOFF` §7a's owner decision, still not taken.
|
||||
- Resolution changes mid-session (user changed settings, or dynamic resolution scaling) produce **segments**: the session stores a segment list `(startFrame, renderW/H, outputW/H, upscaler, quality)`. Aggregates report the dominant segment plus a "settings changed during session" flag — averaging across a settings change is the classic way benchmark numbers become meaningless.
|
||||
|
||||
> **Two segmentation axes exist, they compose in ONE order, and neither document said so until
|
||||
@@ -545,6 +551,18 @@ Tier 2 has none of this: `upscaler = unknown`, ratio `N/A`.
|
||||
> than resolved*. Beside an `N/A` with the bit clear it prints the driver's negative, attributed, which
|
||||
> says nothing about FSR or XeSS. **The negative is owed** (§H5): a title with DLSS switched off should
|
||||
> read the bit clear; if it does not, the rung is withdrawn.
|
||||
>
|
||||
> **The App states the rung since 2026-09-21; until then only the capture host's console did.** The Agent has written
|
||||
> `sessions.upscaler_driver_reported` since P2, and nothing under `FrameLedger.App` read it, so every NGX-direct DLSS
|
||||
> title read "Unknown upscaler" in the library while FSR — whose dispatch the hook does see — was named (the owner's
|
||||
> report). `Formats.Upscaler(token, quality, driverReported)` is the ladder in one place: a hook's name outranks
|
||||
> everything and takes its measured preset; where no hook named one (`unknown`, or no claim) and the driver reports the
|
||||
> feature, the text is **`DLSS (driver-reported)`** — attributed, identity only, never a quality even when a byte is
|
||||
> on the row; otherwise the token's own text, and `unknown` now reads "Upscaler not identified" (a hook ran and saw
|
||||
> nothing — which is what it means — rather than "Unknown upscaler", which read as a product). The live card gets the
|
||||
> same word through `SessionProgress.upscalerDriverReported` (`07_IPC`). Segments carry no driver word: the driver's
|
||||
> bookkeeping is per process, not per settings change. **Nothing native changed and no NGX hook was added**: the
|
||||
> licence bar in `20_OPEN_QUESTIONS` stands.
|
||||
|
||||
## RT / PT / RR — evidence-based tri-state
|
||||
|
||||
|
||||
+1
-1
@@ -334,7 +334,7 @@ Unchanged in spirit from v1, bumped to `v2` for the new message set.
|
||||
| `Shutdown` | UI→A | graceful stop → `ShutdownAck`, then the host stops (sessions finalize inside its grace window). *(Built 2026-09-13, PR-1b: `IAgentLifetime`, the host's under `--serve`, a logged no-op under `--console`.)* |
|
||||
| `SweepRetention` | UI→A | **no payload** — a trigger, like `UpdateRules`: the Agent applies `06_DATA_MODEL` §Retention to every game with the `retention.raw_sessions_per_game` it reads itself → `SweepRetentionAck { keep, games, sessions }` (`keep` 0 = unlimited, and then nothing was swept). *(Built 2026-09-15, P4 PR-7, for Tools ▸ Database maintenance: `Application.Recording.RetentionSweep` over `ISessionRepository.SweepRetentionAllAsync`, composed into `AgentCommandHandler` under `--serve`. The client names no number because the rows are the Agent's (§Writer ownership). Additive: an older Agent answers `Error UnknownType`, which the dialog reads as "restart the Agent". Carries no safety fact.)* |
|
||||
| `SessionStarted` | A→UI | `{ sessionGuid, gameId, gameName, pid, tier, startedAt }` — **published at the attach**, i.e. when the session becomes Tier 1 and the live card has something to show; a session that never attaches has no `SessionStarted`, only its `SessionCompleted` (tier 2) and, when a refusal or error caused that, the event below that names it |
|
||||
| `SessionProgress` | A→UI | 1 Hz: `{ sessionGuid, elapsedS, presents5s, presentedFps5s?, presentedQualifier, nativeFps5s?, displayedFps5s?, fgFactor?, fgMode, upscaler?, upscalerQuality?, renderW/H?, outputW/H?, rtActive?, gpuTempC?, cpuTempC?, vramProcMb?, latencyUs?, fgRefusal?, fgRuntimeCensus? }` — a 5 s rolling window over the ring through the SAME Domain calculators the row uses (`SessionProgressCalculator`, D13). **Two fields added 2026-09-14, both optional (an older client ignores them, §C):** `fgRefusal` is the row's `fg_refusal` (schema 0003) — present when `fgMode` names a technology and `fgFactor` is absent, so the live card can say "DLSS-G active — factor not counted" rather than N/A; `fgRuntimeCensus` is the raw census so the `fg_runtime_loaded` chip can name the module. **Rule 6 at the wire (2026-09-13):** `nativeFps5s` / `displayedFps5s` / `fgFactor` are present only when frame generation was measured in the window; otherwise `presentedFps5s` stands alone with `presentedQualifier` (`census_not_run` · `no_fg_runtime` · `fg_runtime_loaded` · `none_withheld`, the row's `presented_qualifier` from the same function). Every unmeasured field is absent, never 0. Suppressed when no client is connected |
|
||||
| `SessionProgress` | A→UI | 1 Hz: `{ sessionGuid, elapsedS, presents5s, presentedFps5s?, presentedQualifier, nativeFps5s?, displayedFps5s?, fgFactor?, fgMode, upscaler?, upscalerQuality?, upscalerDriverReported?, renderW/H?, outputW/H?, rtActive?, gpuTempC?, cpuTempC?, vramProcMb?, latencyUs?, fgRefusal?, fgRuntimeCensus? }` — a 5 s rolling window over the ring through the SAME Domain calculators the row uses (`SessionProgressCalculator`, D13). **`upscalerDriverReported` added 2026-09-21, optional:** `dlss` when the NVIDIA driver reports an NGX super-resolution feature created and evaluated in the target (`03_METRICS` §The driver-reported rung), so the live card says `DLSS (driver-reported)` where no hook can name the upscaler; identity only. **Two fields added 2026-09-14, both optional (an older client ignores them, §C):** `fgRefusal` is the row's `fg_refusal` (schema 0003) — present when `fgMode` names a technology and `fgFactor` is absent, so the live card can say "DLSS-G active — factor not counted" rather than N/A; `fgRuntimeCensus` is the raw census so the `fg_runtime_loaded` chip can name the module. **Rule 6 at the wire (2026-09-13):** `nativeFps5s` / `displayedFps5s` / `fgFactor` are present only when frame generation was measured in the window; otherwise `presentedFps5s` stands alone with `presentedQualifier` (`census_not_run` · `no_fg_runtime` · `fg_runtime_loaded` · `none_withheld`, the row's `presented_qualifier` from the same function). Every unmeasured field is absent, never 0. Suppressed when no client is connected |
|
||||
| `SessionCompleted` | A→UI | `{ sessionGuid, sessionId?, exitStatus, tier, finalize, reason }` — UI loads the full row from SQLite; `sessionId` is null and `finalize` is `discarded` when the row was not stored (under the minimum length); `exitStatus` is the row's vocabulary (`normal` · `crashed` · `unhooked_safety` · `degraded`); `reason` is the loop's `SessionEndReason` |
|
||||
| `CaptureRefused` | A→UI | `{ gameId, gameName, reason, family?, signal? }` — **guard fired**; UI shows the plain-language explanation — ~~and the Tier-2 offer~~; there is no alternative measurement to offer, only the option to record the session unmeasured (`08_UI` §Safety events). *(Built: for `RefusedByGuard`, `RefusedPreviouslyBlocked`, `RefusedKillSwitch` and `PreScanCouldNotVerify` — the last with no family, because "could not verify" is neither a hit nor a pass; `family`/`signal` are the verdict's. A game merely not enabled or not consented raises nothing: that is an ordinary Tier-2 row, not a refusal to explain.)* |
|
||||
| `CaptureDegraded` | A→UI | `{ sessionGuid, from: 1, to: 2, reason }` — Tier 1 → Tier 2 mid-flight, or overlay self-disabled. **Under a two-rung ladder this means measurement STOPPED**, not that it continued at lower fidelity, and the notice must say so. *(Built: `SupervisionLost`, `WriterSelfDisabled`, `WriterStoppedBlocklisted`, `WriterNeverInstalledHooks`, `SupervisionFaulted`, `KillSwitchEngaged` — `RecordedSessionEvents.Classify` is the table.)* |
|
||||
|
||||
@@ -117,11 +117,8 @@ public sealed class SessionSeriesLoader
|
||||
|
||||
private static string SegmentLabel(SegmentRow s)
|
||||
{
|
||||
string upscaler = Services.Formats.Upscaler(s.Upscaler);
|
||||
if (s.UpscalerQuality is { Length: > 0 } q)
|
||||
{
|
||||
upscaler += " " + q;
|
||||
}
|
||||
// A segment carries no driver word: the driver's bookkeeping is per process, not per settings change.
|
||||
string upscaler = Services.Formats.Upscaler(s.Upscaler, s.UpscalerQuality, driverReported: null);
|
||||
|
||||
string resolution = Services.Formats.Resolution(s.RenderW, s.RenderH, s.OutputW, s.OutputH);
|
||||
string fg = Services.Formats.FrameGeneration(s.FgMode);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
using FrameLedger.Domain.Sessions;
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
@@ -70,6 +71,30 @@ public static class Formats
|
||||
_ => Strings.Upscaler_Unknown,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The upscaler as the UI states it, down <c>03_METRICS</c> §Upscaling's ladder: a name a HOOK produced outranks
|
||||
/// everything and takes its measured preset; where no hook named one (<c>unknown</c>: a hook ran and saw nothing —
|
||||
/// every NGX-direct DLSS title, since no NGX hook may exist — or no claim at all) and the NVIDIA driver reports the
|
||||
/// feature created and evaluated in the process, the name is the driver's and SAYS so; otherwise what the token
|
||||
/// says. The driver's word is identity only: it never takes a quality, even when a byte is on the row.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The row has stored <c>upscaler_driver_reported</c> since P2 and the capture host has printed it since 2026-09-06;
|
||||
/// the App never read it, which is why DLSS read "Unknown upscaler" on most titles while FSR, whose dispatch the
|
||||
/// hook does see, was named (owner's report, 2026-09-21).
|
||||
/// </remarks>
|
||||
public static string Upscaler(string? token, string? quality, string? driverReported)
|
||||
{
|
||||
bool hookNamed = token is { Length: > 0 } and not "unknown";
|
||||
if (!hookNamed && driverReported is { Length: > 0 })
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, Strings.Upscaler_DriverReported_Format, Upscaler(driverReported));
|
||||
}
|
||||
|
||||
string name = Upscaler(token);
|
||||
return hookNamed && UpscalerNames.Quality(token, quality) is { } preset ? name + " " + preset : name;
|
||||
}
|
||||
|
||||
/// <summary>The row's fg_mode token as its product name.</summary>
|
||||
public static string FrameGeneration(string? token) => token switch
|
||||
{
|
||||
|
||||
Generated
+3
@@ -594,6 +594,7 @@ public static class Strings
|
||||
nameof(Update_Toast_Title),
|
||||
nameof(Update_Unsigned_Footer),
|
||||
nameof(Update_UpToDate_Format),
|
||||
nameof(Upscaler_DriverReported_Format),
|
||||
nameof(Upscaler_None),
|
||||
nameof(Upscaler_Unknown),
|
||||
];
|
||||
@@ -1734,6 +1735,8 @@ public static class Strings
|
||||
|
||||
public static string Update_UpToDate_Format => ResourceManager.GetString(nameof(Update_UpToDate_Format), Culture) ?? nameof(Update_UpToDate_Format);
|
||||
|
||||
public static string Upscaler_DriverReported_Format => ResourceManager.GetString(nameof(Upscaler_DriverReported_Format), Culture) ?? nameof(Upscaler_DriverReported_Format);
|
||||
|
||||
public static string Upscaler_None => ResourceManager.GetString(nameof(Upscaler_None), Culture) ?? nameof(Upscaler_None);
|
||||
|
||||
public static string Upscaler_Unknown => ResourceManager.GetString(nameof(Upscaler_Unknown), Culture) ?? nameof(Upscaler_Unknown);
|
||||
|
||||
@@ -1006,7 +1006,7 @@
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Upscaler_Unknown" xml:space="preserve">
|
||||
<value>不明なアップスケーラー</value>
|
||||
<value>アップスケーラーを特定できません</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Chart_Axis_Count" xml:space="preserve">
|
||||
@@ -2308,4 +2308,8 @@
|
||||
<value>{0} はライブラリ内の別のゲーム(またはセッションを残して削除されたゲーム)に既に属しています。実行ファイルは変更されていません。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Upscaler_DriverReported_Format" xml:space="preserve">
|
||||
<value>{0}(ドライバー報告)</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
</root>
|
||||
@@ -760,7 +760,7 @@
|
||||
<value>No upscaler</value>
|
||||
</data>
|
||||
<data name="Upscaler_Unknown" xml:space="preserve">
|
||||
<value>Unknown upscaler</value>
|
||||
<value>Upscaler not identified</value>
|
||||
</data>
|
||||
<data name="Chart_Axis_Count" xml:space="preserve">
|
||||
<value>Frames</value>
|
||||
@@ -1740,4 +1740,7 @@ Open the log folder?</value>
|
||||
<data name="ChangeExe_Taken_Format" xml:space="preserve">
|
||||
<value>{0} already belongs to another game in the library (or to one removed with its sessions kept); the executable was not changed.</value>
|
||||
</data>
|
||||
<data name="Upscaler_DriverReported_Format" xml:space="preserve">
|
||||
<value>{0} (driver-reported)</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -755,7 +755,7 @@
|
||||
<value>Không upscaler</value>
|
||||
</data>
|
||||
<data name="Upscaler_Unknown" xml:space="preserve">
|
||||
<value>Upscaler không rõ</value>
|
||||
<value>Không xác định được upscaler</value>
|
||||
</data>
|
||||
<data name="Chart_Axis_Count" xml:space="preserve">
|
||||
<value>Khung hình</value>
|
||||
@@ -1735,4 +1735,7 @@ Mở thư mục log?</value>
|
||||
<data name="ChangeExe_Taken_Format" xml:space="preserve">
|
||||
<value>{0} đã thuộc về một game khác trong thư viện (hoặc một game đã xoá nhưng giữ phiên); file thực thi không thay đổi.</value>
|
||||
</data>
|
||||
<data name="Upscaler_DriverReported_Format" xml:space="preserve">
|
||||
<value>{0} (driver báo cáo)</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -548,12 +548,7 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
}
|
||||
|
||||
MeasuredEmptyText = string.Empty;
|
||||
string upscaler = Formats.Upscaler(lastHooked.Upscaler);
|
||||
if (lastHooked.UpscalerQuality is { Length: > 0 } quality)
|
||||
{
|
||||
upscaler += " " + quality;
|
||||
}
|
||||
|
||||
string upscaler = Formats.Upscaler(lastHooked.Upscaler, lastHooked.UpscalerQuality, lastHooked.UpscalerDriverReported);
|
||||
Measured.Add(upscaler + " · " + Formats.Resolution(lastHooked.RenderW, lastHooked.RenderH, lastHooked.OutputW, lastHooked.OutputH));
|
||||
Measured.Add(FpsPresentation.FrameGenerationLabel(FpsPresentation.FromRow(lastHooked), lastHooked.FgMode));
|
||||
foreach (TriStateChipModel chip in Chips.Where(static c => !c.IsNotApplicable))
|
||||
|
||||
@@ -91,7 +91,7 @@ public sealed partial class LiveCaptureViewModel : ObservableObject
|
||||
ElapsedText = string.Format(CultureInfo.CurrentCulture, Strings.Dashboard_Live_Elapsed_Format, Formats.Duration(progress.ElapsedS));
|
||||
Readout = FpsPresentation.FromProgress(progress);
|
||||
ResolutionText = Formats.Resolution(progress.RenderW, progress.RenderH, progress.OutputW, progress.OutputH);
|
||||
UpscalerText = progress.UpscalerQuality is { Length: > 0 } q ? Formats.Upscaler(progress.Upscaler) + " " + q : Formats.Upscaler(progress.Upscaler);
|
||||
UpscalerText = Formats.Upscaler(progress.Upscaler, progress.UpscalerQuality, progress.UpscalerDriverReported);
|
||||
FgText = FpsPresentation.FrameGenerationLabel(Readout, progress.FgMode);
|
||||
RtActive = progress.RtActive == true;
|
||||
GpuTempText = progress.GpuTempC is double g ? string.Format(CultureInfo.CurrentCulture, Strings.Dashboard_Live_GpuTemp_Format, Math.Round(g)) : string.Empty;
|
||||
|
||||
@@ -29,7 +29,7 @@ public sealed class SessionItemViewModel
|
||||
FpsTooltip = FpsPresentation.ColumnTooltip(row);
|
||||
P1LowText = IsHooked ? Formats.Fps(row.P1LowFps) : Strings.Common_NotAvailable;
|
||||
P01LowText = IsHooked ? Formats.Fps(row.P01LowFps) : Strings.Common_NotAvailable;
|
||||
ResolutionText = IsHooked ? Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH) + " · " + Formats.Upscaler(row.Upscaler) : Strings.Common_NotAvailable;
|
||||
ResolutionText = IsHooked ? Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH) + " · " + Formats.Upscaler(row.Upscaler, row.UpscalerQuality, row.UpscalerDriverReported) : Strings.Common_NotAvailable;
|
||||
GpuTempText = Formats.Temperature(row.MaxGpuTemp);
|
||||
ApiText = IsHooked ? Formats.Api(row.Api) : Strings.Common_NotAvailable;
|
||||
ExitText = Formats.ExitStatusText(row.ExitStatus);
|
||||
|
||||
@@ -277,7 +277,7 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
Readout = FpsPresentation.FromRow(row);
|
||||
Line = string.Format(CultureInfo.CurrentCulture, Strings.Summary_Line_Format,
|
||||
IsHooked ? Formats.Api(row.Api) : Strings.Tier_NotHooked, row.PresentMode ?? Strings.Common_NotAvailable,
|
||||
IsHooked ? Formats.Upscaler(row.Upscaler) : Strings.Common_NotAvailable, Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH));
|
||||
IsHooked ? Formats.Upscaler(row.Upscaler, row.UpscalerQuality, row.UpscalerDriverReported) : Strings.Common_NotAvailable, Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH));
|
||||
Tags = _annotation is null ? string.Empty : string.Join(", ", _annotation.Tags);
|
||||
Notes = _annotation?.Notes ?? string.Empty;
|
||||
HasDisplayed = Series?.HasGenerated == true;
|
||||
|
||||
@@ -61,6 +61,7 @@ public static class SessionProgressCalculator
|
||||
FgRuntimeCensus = progress.WriterState.RuntimeCensus,
|
||||
Upscaler = upscaler is { } u ? Vocabulary.Upscaler(u) : FgLadder.UpscalerHookRan(progress.Records) ? "unknown" : null,
|
||||
UpscalerQuality = Modal([.. withParams.Where(static s => s.UpscalerQuality != FrameSample.QualityNotTold)])?.ToString(CultureInfo.InvariantCulture),
|
||||
UpscalerDriverReported = progress.NgxDriver.SrCreatedAndEvaluated ? "dlss" : null,
|
||||
RenderW = extent?.RenderW,
|
||||
RenderH = extent?.RenderH,
|
||||
OutputW = extent?.OutputW,
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
namespace FrameLedger.Domain.Metrics;
|
||||
|
||||
/// <summary>
|
||||
/// The vendor's own quality value as the name the vendor's menu uses (<c>03_METRICS</c> §Upscaling promised this type
|
||||
/// from the start; until 2026-09-21 the UI printed the raw integer beside the upscaler).
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <b>One producer exists, so one table exists.</b> The only writer of <c>upscalerQuality</c> is the Streamline route:
|
||||
/// <c>sl::DLSSMode</c> as the title chained it into <c>slEvaluateFeature</c> (<c>fl_sl_inputs.h</c>
|
||||
/// <c>QualityFromMode</c>), where <c>eOff</c> and anything at or past <c>eCount</c> are already folded to "not told" and
|
||||
/// never reach a row. The ffx-api dispatch carries no quality mode, and XeSS has no hook, so their bytes are always
|
||||
/// "not told" and no table for them would have a row to name.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// A value this table does not know is returned as it is stored: a number nobody can name is still what was measured,
|
||||
/// and dropping it would turn a newer SDK's preset into "nothing was told".
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This is the MEASURED byte. A label derived from the render/output ratio is a different thing and an owner decision
|
||||
/// not taken (<c>HANDOFF</c> §7a); nothing here infers.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static class UpscalerNames
|
||||
{
|
||||
/// <summary>
|
||||
/// The preset's name, the stored value when it has none, or null when the row stores no quality at all.
|
||||
/// </summary>
|
||||
/// <param name="upscaler">The row's upscaler token (<c>dlss</c>, <c>fsr3</c>, …).</param>
|
||||
/// <param name="quality">The row's quality value: the vendor's integer, invariant.</param>
|
||||
public static string? Quality(string? upscaler, string? quality)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(quality))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!string.Equals(upscaler, "dlss", StringComparison.Ordinal))
|
||||
{
|
||||
return quality;
|
||||
}
|
||||
|
||||
return quality switch
|
||||
{
|
||||
"1" => "Performance",
|
||||
"2" => "Balanced",
|
||||
"3" => "Quality",
|
||||
"4" => "Ultra Performance",
|
||||
"5" => "Ultra Quality",
|
||||
"6" => "DLAA",
|
||||
_ => quality,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -184,6 +184,13 @@ public sealed record SessionProgressEvent
|
||||
/// <summary>The vendor's own preset value, as the row stores it; null when no record carried params.</summary>
|
||||
public string? UpscalerQuality { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// <c>dlss</c> when the NVIDIA driver reports an NGX super-resolution feature created and evaluated in the target
|
||||
/// (<c>03_METRICS</c> §The driver-reported rung), else null. The row has carried it since P2; the live card did not
|
||||
/// until 2026-09-21, so an NGX-direct title read "Unknown upscaler" for the whole session. Identity only.
|
||||
/// </summary>
|
||||
public string? UpscalerDriverReported { get; init; }
|
||||
|
||||
public int? RenderW { get; init; }
|
||||
|
||||
public int? RenderH { get; init; }
|
||||
|
||||
@@ -36,6 +36,26 @@ public sealed class FormatsTests
|
||||
InEnglish(() => Formats.Duration(-3)).Should().Be("0m 00s");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 03_METRICS §Upscaling's ladder as the UI states it (2026-09-21): a hook's name outranks the driver's, the driver's
|
||||
/// name says it is the driver's and never takes a quality, and a DLSS quality byte is the preset's name.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TheUpscalerLadderNamesTheDriverOnlyWhereNoHookDid()
|
||||
{
|
||||
InEnglish(() => Formats.Upscaler("unknown", null, "dlss")).Should().Be("DLSS (driver-reported)", "an NGX-direct title: the hook ran and saw nothing, the driver saw the feature evaluated");
|
||||
InEnglish(() => Formats.Upscaler(null, null, "dlss")).Should().Be("DLSS (driver-reported)");
|
||||
InEnglish(() => Formats.Upscaler("unknown", "2", "dlss")).Should().Be("DLSS (driver-reported)", "the driver's word is identity only");
|
||||
InEnglish(() => Formats.Upscaler("fsr3", null, "dlss")).Should().Be("FSR 3", "a hook's name always outranks the driver's");
|
||||
InEnglish(() => Formats.Upscaler("dlss", "2", "dlss")).Should().Be("DLSS Balanced");
|
||||
InEnglish(() => Formats.Upscaler("dlss", "6", null)).Should().Be("DLSS DLAA");
|
||||
InEnglish(() => Formats.Upscaler("dlss", "9", null)).Should().Be("DLSS 9", "a value with no name is shown as stored");
|
||||
InEnglish(() => Formats.Upscaler("unknown", null, null)).Should().Be("Upscaler not identified");
|
||||
InEnglish(() => Formats.Upscaler("unknown", "2", null)).Should().Be("Upscaler not identified", "a quality without a name to hang it on is not printed");
|
||||
InEnglish(() => Formats.Upscaler("none", null, null)).Should().Be("No upscaler");
|
||||
InEnglish(() => Formats.Upscaler(null, null, null)).Should().Be("N/A");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ResolutionsUpscalersAndFrameGeneration()
|
||||
{
|
||||
|
||||
@@ -31,6 +31,25 @@ public sealed class SessionProgressCalculatorTests
|
||||
NgxDriver = NgxDriverState.NotRun,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// 03_METRICS §The driver-reported rung on the wire (2026-09-21): an NGX-direct title has no hook that can name its
|
||||
/// upscaler, so the live card read "unknown" for the whole session while the row that session became said DLSS.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TheDriversWordTravelsToTheLiveCardAndOnlyWhenTheDriverAnswered()
|
||||
{
|
||||
List<FlFrameRecord> records = SessionFixtures.Stream(1000, FlMeasured.OutputRes | FlMeasured.PresentArgs);
|
||||
NgxDriverState created = NgxDriverState.Parse("NGXSTATE status=ANSWERED sr=0x600 rr=0x1 fg=0x5 ratio=0.0000 mode=0 preset=0 fgcount=0 fgpreset=0 fgmode=0 driver=61664");
|
||||
NgxDriverState idle = NgxDriverState.Parse("NGXSTATE status=ANSWERED sr=0x5 rr=0x1 fg=0x5 ratio=0.0000 mode=0 preset=0 fgcount=0 fgpreset=0 fgmode=0 driver=61664");
|
||||
|
||||
SessionProgressCalculator.Compute(_guid, Progress(records) with { NgxDriver = created }, SessionFixtures.QpcFrequency, 12.5, gpu: null)
|
||||
.UpscalerDriverReported.Should().Be("dlss", "CREATED | EVALUATE on the super-resolution word");
|
||||
SessionProgressCalculator.Compute(_guid, Progress(records) with { NgxDriver = idle }, SessionFixtures.QpcFrequency, 12.5, gpu: null)
|
||||
.UpscalerDriverReported.Should().BeNull("the feature exists in the driver's bookkeeping and was never evaluated");
|
||||
SessionProgressCalculator.Compute(_guid, Progress(records), SessionFixtures.QpcFrequency, 12.5, gpu: null)
|
||||
.UpscalerDriverReported.Should().BeNull("no probe ran: AMD, Intel, or no bridge beside the Agent");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void OnlyTheLastFiveSecondsCountAndThePresentedRateStandsAloneWithItsQualifier()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
using FluentAssertions;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
|
||||
namespace FrameLedger.Domain.Tests.Metrics;
|
||||
|
||||
public sealed class UpscalerNamesTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("1", "Performance")]
|
||||
[InlineData("2", "Balanced")]
|
||||
[InlineData("3", "Quality")]
|
||||
[InlineData("4", "Ultra Performance")]
|
||||
[InlineData("5", "Ultra Quality")]
|
||||
[InlineData("6", "DLAA")]
|
||||
public void ADlssModeIsTheNameTheMenuUses(string stored, string name) =>
|
||||
UpscalerNames.Quality("dlss", stored).Should().Be(name, "sl::DLSSMode, as fl_sl_inputs.h QualityFromMode writes it");
|
||||
|
||||
[Theory]
|
||||
[InlineData("dlss", "7")]
|
||||
[InlineData("dlss", "0")]
|
||||
[InlineData("fsr3", "2")]
|
||||
[InlineData("xess", "3")]
|
||||
[InlineData(null, "2")]
|
||||
public void AValueWithNoNameIsShownAsStored(string? upscaler, string stored) =>
|
||||
UpscalerNames.Quality(upscaler, stored).Should().Be(stored, "a number nobody can name is still what was measured");
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)]
|
||||
[InlineData("")]
|
||||
[InlineData(" ")]
|
||||
public void NoQualityIsNoName(string? stored) =>
|
||||
UpscalerNames.Quality("dlss", stored).Should().BeNull();
|
||||
}
|
||||
Reference in new issue
Block a user