feat/input-reader
11
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
1342979353 |
ci: Qodana - JetBrains' code analysis from a workflow of its own, and what its first run reported settled (D93) (#373)
* ci: Qodana - a workflow of its own from JetBrains' template, Qodana Community for .NET over FrameLedger.slnx (D93) The first run: the linter in its Linux container, EnableWindowsTargeting passed to it, no quality gate yet - what it builds and what it reports decides the rest. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * ci: Qodana's gate is zero problems, and the inspections this project argues with are off in .editorconfig, each with its reason (D93) Pushed before the fixes on purpose: the run this starts has the settings and none of the fixes, so it shows the gate failing on what is left. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix: what Qodana's first run reported, settled - about 400 fixes in 181 files, none changing behaviour; the documents (D93) Redundant qualifiers, casts, using directives, nullable suppressions and unsafe modifiers removed from the report's own positions; var for built-in types and one-line block bodies brought to .editorconfig's style by dotnet format; every XAML item template names its DataType and a binding that reached its page through DataContext.ViewModel names the page's type; two unread fields, two overwritten initialisers and an unused parameter removed; SpokenTextAutomationPeer no longer assumes the base peer's name is a string. docs/13_CI_CD.md §Qodana, CLAUDE.md, the wiki's workflow table, HANDOFF's decisions index (D93) and the changelog entry. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> |
||
|
|
3a25d01bf8 |
feat: every frame-generation state a session held - a bar and a table with each state's share, its own Native -> Displayed and how it was set (D62, beta.24 PR-6) (#321)
- Domain: Metrics/FgMix over the steady state's own five-second windows (FgSlices: the cut and the dominant state, moved out of FgSteadyState unchanged). Windows are active, no frame generation (only where a counted none is allowed) or not classified; active ones are grouped by repeating the steady state's extraction until none is left, a group under 10 s going back to not classified. Each row has its own factor, rates, seconds and share; the shares sum to 1. Never an average across states. - Application: SessionAggregator stores it as sessions.fg_mix (schema 0020, JSON through FgMixRecord) when the frame generation was named and the count stood or was refused only as non_uniform / ambiguous_band. Older sessions keep NULL and are never rebuilt from their blobs. - App: the summary's "Frame generation in this session" - FgMixBar (chart palette, a state by its multiplier, two new keys; follows a theme switch through ApplicationBackgroundColor) and a table (swatch, x4.0 frame generation, 35.33%, 70 -> 282 FPS, time); above it how frame generation was set (NvidiaOverrides.FrameGenerationContext: the NVIDIA App's Dynamic / Fixed, the driver's own profile, or the game); a line for a session that counted frame generation and has no mix. CSV "# fg_mix:"; the FG column's formats moved to resx; the profile line's automatic dynamic target reads "max refresh rate". - Strings: 26 new keys en/vi/ja (ja marked review), one reworded. - Tests: FgMixTests, FgMixPresentationTests, NvidiaOverridesTests, SessionSummaryViewModelTests, SessionExporterTests, SessionAggregatorTests, LedgerDatabaseTests (script 0020), the repository round trip, MetricEnumMirrorTests (FgMixKind is Domain's own); the summary surface in PagesLoadTests carries a mix, so the block is read in both themes and through a switch. - Docs: CLAUDE.md rule 6 (dated amendment), 03_METRICS The mix, 06_DATA_MODEL 0020, 08_UI, LIMITATIONS, guide 03/07/10, CHANGELOG; legal/ACCURACY.md's frame-generation bullet gains the sentence approved with the plan (README and the Disclaimer carry it verbatim). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
4130b7cbe4 |
feat(app): the new measurements as summary cards, a render scale chart, a clocks and fan chart, trend metrics and compare rows labelled (presented) (beta.14 PR-8, D49) (#271)
The App's half of D49 (PR-7 recorded the values). Every value is read from the stored row, never recomputed, and reads
N/A on a session recorded before beta.14.
Summary (SessionSummaryViewModel, the cards in AddFrameCards / AddPacingCards / AddMachineCards):
- Time below 60 FPS, with below 30 and "display under {refresh} Hz" beneath - the refresh share named for the display, as
it is over the presents the display received - and Frame to frame; both carry (presented) where the lows do.
- VSync (share of frames, tearing allowed beneath), Ray tracing (share of frames, rays per pixel; only where measured),
Game in focus (foreground over drain ticks), Capture quality (gaps, lost records, faults).
- The 1% Low card carries "displayed: N" where frames were generated - rule 6, beside the game's own, never instead.
- GPU clocks (core, memory; fan and memory temperature beneath), GPU held back (power, heat; NVIDIA only), Frames per watt.
Charts:
- RenderScaleChart over RenderScaleSeries: 100 x sqrt(render / output pixels) as steps, from the render_res blob where the
resolution varied, a flat line at the row's extent where it did not, a sentence where never measured.
- SensorsChart: the memory temperature on the temperatures plot, in a new palette colour (Chart_SensorTertiary: no
existing colour was 60 apart from all six beside it - ChartMathTests caught Chart_Histogram == Chart_Native), and a
Clocks and fan plot - core and memory MHz, fan RPM on the right, the ticks a limit held the card back shaded
(LimitRuns); collapsed when the session stored none of them.
Trend: nine metrics (time below 60 / refresh, frame to frame, render scale = 100 / upscale_ratio, VSync share, frames per
watt from hooked sessions; core clock, memory temperature, power-limit share from every session), with ms, MHz and FPS/W
axes. Compare: nine rows; the median, lows, stutter, time below 60 and frame to frame carry (presented) in the cell of a
present-only session, the best decided on the number, never the label. The Latency tab is shown only for a game with a
session that measured latency (nothing measures Reflex today). Formats.Share, Milliseconds, FramesPerJoule.
Tests: SessionSummaryViewModelTests (every new card with values, a pre-beta.14 row at N/A, the displayed low),
RenderScaleAndClocksTests (scale arithmetic, steps, flat line, limit runs, both charts drawn on the STA thread),
TrendSeriesBuilderTests, CompareViewModelTests (labels and bests), FormatsTests, GameDetailViewModelTests (Latency tab),
ChartMathTests (the clocks plot's colours too).
Docs: 08_UI (summary, trend, compare, latency), 03_METRICS (render scale over time), legal/ACCURACY.md (one bullet, mirrored
into README and DISCLAIMER by accuracy-check; Disclaimer version unchanged as in beta.13), guide/03-read-your-results,
LIMITATIONS, CHANGELOG. Strings en/vi, ja marked for review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
||
|
|
cc847c588e |
feat(app): the game's own memory wherever a session is shown - two summary cards, a stored statistics table, Sessions columns, Trend and Compare metrics, two memory charts, the live card, the CSV line (D43, beta.12 PR-3) (#255)
- Formats.Memory: Task Manager's units (MB below 1 GB, GB to two decimals, 1 GB = 1024 MB, null is N/A, never 0). - Services.GameMemoryText: the summary's VRAM (this game) and RAM (this game) cards - the median with the peak and the shared / commit peak beneath - the Sessions grid's median · peak cells and tooltips, the live line, the CSV `# game_memory:` header line; all from the stored columns and sensor_stats_json. Where Windows reported no private working set the working set is shown and says so; an unpinned hold that summed several processes says how many. - Services.SensorStatsTable + the summary's "Statistics per series": every stored series' mean / median / minimum / peak / readings in its own unit; a session recorded before beta.12 gets one sentence instead. - SensorsChart: two memory plots in GB - Video memory (this game's dedicated and shared, the whole graphics card's) and Memory (this game's private working set or labelled working set, the whole PC's). The line that read the never-produced per-present vram_proc blob is gone. - Trend: MaxVramProcess (vram_proc_max_mb, never written, so never a point) becomes Median / Peak VRAM (game) and Median / Peak RAM (game) in GB, machine metrics over both tiers; Avg RAM in use is labelled as the whole PC's, in GB. Compare gains the four rows, ranking nothing. - Live card: MemoryText from SessionProgress / SessionHeld (the old VramText read a field nothing produced). - Strings: 41 new keys, 4 relabelled, 5 dead ones removed, en/vi/ja (ja marked review); 09_I18N glossary rows. - Tests: GameMemoryTextTests (new), summary, trend, compare, chart, live card, dashboard, export; GamesViewModelTests joins the culture collection (it compared resource text across a parallel culture flip and failed once). - Docs: 08_UI (corrected in place, new beta.12 paragraph), 03_METRICS export schema, CHANGELOG. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ff949afc6f |
feat(legal): NOTICE with the GPLv3 section 7 additional terms, the licence header in every source file, and the documents for people who build, contribute or redistribute (D45, beta.12 PR-1) (#253)
- NOTICE: copyright, GPL-3.0-only, and three additional terms of the kinds section 7 permits - (b) preserve the notices and the attribution in the program's legal notices, (c) mark a modified version as different and do not call it "FrameLedger" alone, (e) no trademark rights in the name. Shipped as licenses\NOTICE.txt; release.yml refuses a published tree without it. - Section 7 wants additional terms named in the source files: every first-party .cs .cpp .h .inl .ps1 .xaml file (1,053; src/native/third_party excluded) opens with the SPDX line and a pointer to NOTICE. tools/notice-check.ps1 is the gate (six self-test cases, both directions; -Fix writes a missing header) and tools/resx-gen.ps1 generates the string accessors with the header. - The native VERSIONINFO LegalCopyright said GPL-3.0-or-later; it now names the real licence. - CONTRIBUTING.md, FORKING.md, CODE_OF_CONDUCT.md (Contributor Covenant 2.1 by reference), legal/TRADEMARKS.md. - 12_BUILD gate list, CLAUDE.md layout and conventions. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
5a890553b2 |
feat: the display mode - how each game was shown and for how much of the session, both tiers, on the summary, the game page, the trend and compare (schema 0016, beta.10) (#243)
The owner asked for the game's window size and display mode (exclusive fullscreen / borderless / windowed) and the share of the session each took, with trend and compare. PR-2 (#242) published the swap chain's own answer in shared-memory region 4; this change reads the window from outside, classifies, tallies, stores and shows it. - Domain/Display: DisplayModeClassifier (no window -> minimised -> exclusive, only from a region-4 sample under 2 s old -> covers its monitor: borderless when the chain said not exclusive, "fullscreen or borderless" when nothing could say -> windowed), DisplayTally (milliseconds, not ticks: a sample stands for the time until the next), DisplaySummary. - Application: IDisplayProbe; DisplaySampler on the capture loop's tick beside focus (100 ms hooked) and on the Tier-2 hold's tick (1 s) - an interval ending on a paused tick is dropped; ITargetResolver.PidsOf finds a hold's processes by image path in the watcher's snapshot (never by name, never an unreadable path), still opening nothing; CaptureOutcome.Display; the recorder writes it on the row's skeleton (SessionDisplayColumns), so a Tier-2 row has it. - Infrastructure: WindowGeometryProbe - user32 out of process, per-monitor DPI aware (V2) while it asks and put back; the window region 4 names when it still belongs to the game (to its root), else the largest visible, uncloaked, non-tool top-level window of the game's processes; MONITORINFOEX + EnumDisplaySettings for the monitor and its refresh rate. Nothing belonging to the game is read (CLAUDE.md rule 4). Schema 0016: fifteen sessions.display_* columns, ADD COLUMN only; sessions.swap_effect gets its first writer. - Composition: the Agent's CaptureSession and the operator host's take the probe. - App: a Display stat card and line on the session summary, the last measured session and a Display column (tooltip with every share) on the game page, three Trend metrics (exclusive / borderless / windowed share, every tier, never left out as a mid-session change, no exclusive or borderless point where the two could not be told apart), three Compare rows (never ranked), the CSV's "# display:" line (invariant). Strings en/vi/ja; Strings.Designer.cs regenerated. - Tests: classifier and tally (Domain); sampler on a moved clock, pause, staleness, swap-effect names; CaptureSession Tier 1 from region 4 + window and Tier-2 hold by the snapshot's pids; recorder Tier-2 row and hooked row; LatestProcessSnapshot pids; migration 0016 and the repository round trip; WindowGeometryProbe against hook-harness's real window; App card, line, game page, trend, compare, export, DisplayText. - Docs: 03_METRICS (new section Display mode, accuracy row, export header), 04_CAPTURE, 05_DETECTION (runtime facts row; present mode still has no writer), 06_DATA_MODEL (DDL + 0016), 08_UI, 02_SPEC (FR-7.4, FR-7.2 note), CHANGELOG. No hook-path change: the Overlay is untouched by this PR (its cost was measured in #242). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
9e7eed6351 |
fix: a frame-generation session's lows are over application frames, a pause is a gap and not time, and the charts draw what they say (#234)
Owner request 2026-09-25 (beta.8, item 8: fix the charts that are not reasonable). Measured first on the owner's Onimusha demo capture (DLSS FG x3, read from a copy of the ledger): generated frames are submitted half a millisecond after their application frame, so the stored median over presents read 2,073 FPS on a 60 FPS game, and the chart's "native" line was each frame's interval to the generated one before it. - Domain: FrameTimeSeries.ApplicationFrames (application frame to application frame; a gap or an uncounted present breaks the chain); MeasuredSeconds - D leaves out every interval a gap sat in, so AverageFps is the kept intervals over the seconds they span; RecordWindow.SecondsOf and FgWindow.From take the gap set. - Application: SessionAggregator takes median / lows / min / max / sigma / stutter over application frames where generated frames were counted (segments too), the Displayed 1% low over presents, and no frame statistic when a technology was named and no application frame counted. CaptureSession marks a gap before the first record stamped at or after the resume's QPC (test red before the fix). SessionFinalizer writes frame_blobs.first_present_ms (schema 0013). - App: SessionSeriesLoader charts the dominant swapchain, application-frame intervals, every present when all were generated (noted), sensors on the frames' axis when the blob says where the first present is, Tier-2 sensors alone. FrametimeChart: labels (Application frames / Presents), no 0 ms frames after gaps, a note on present timing and closed-up gaps, segment labels, the overlay only when aligned. DistributionChart: histogram over p0.5-p99.5 with centred bars and an outside count; PercentileCurve drawn where ten frames lie beyond each side (FR-4.8 generalised) with the 1% / 0.1% lows marked. SensorsChart: watt axis, "Memory", VRAM 0 left out, distinct colours in both themes (light Percentile was SensorSecondary's gold), both tiers; the summary window gets a Sensors section. The game page reloads when one of its sessions completes. - The live 5 s window reads the survivors' rate over a drop, not the survivors spread over the lost time. - Docs: 03_METRICS, 04_CAPTURE, 06_DATA_MODEL, 08_UI, HANDOFF traps, CHANGELOG. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
efcee1d08d |
feat: the game page says what the game's files say - x64 or x86, file and store versions, the DLSS/FSR/XeSS files it ships - and a 32-bit game's hooking cannot be turned on (#230)
Owner request 2026-09-25 (beta.8, item 3: game version, DLSS/FSR versions, 32/64-bit). - Schema 0011: games.exe_machine / exe_file_version / exe_product_version / library_versions, written whole by the detection sweep (DetectionWrite). A NULL exe_machine is stale once, so every library entry is read under this build. - PeImports.ReadArchitecture: the COFF machine and, for .NET, the CLR header's flags (Domain.Detection.ExecutableArchitecture: x64 | x86 | arm64 | arm | anycpu | anycpu32 | other | unknown) - an AnyCPU assembly carries an I386 machine and runs as 64-bit unless it prefers or requires 32-bit. - GameFileProbe: the files a capability rule names, with the numeric version of their VS_FIXEDFILEINFO (bounded at 48); RuleEvaluator.NamesFile shares the matcher. - Known not hookable (x86, anycpu32, arm64, arm): SetHookEnabled answers Refused ExecutableNotX64 before anything is scanned or stamped; the sweep turns off hooking on a row enabled before this build (hook_autodisabled_reason); the page disables the switch with the reason and offers no re-enable. A switch that is on can still be turned off. - App: a Details card (runs as, file/product version, store build labelled with its store, engine, shipped libraries), the subtitle says "Steam build 20374416", and the session summary lists the runtime libraries (runtime_modules, recorded since P2 and shown nowhere) against the copy the game ships. - Rules 2026.09.5: fsr gains ffx_fsr3*.dll, xess gains libxess_dx11.dll (+ fixture). - Docs: 05_DETECTION (what the files say about themselves), 06_DATA_MODEL (0011), 07_IPC (ExecutableNotX64), 08_UI (Details, loaded libraries), HANDOFF traps, CHANGELOG. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
9a14304a41 |
feat: CPU load, memory and (elevated) CPU temperature; per-game trend metrics; Settings shows this PC (#208)
* feat: CPU load, memory and (elevated) CPU temperature are measured; trend metrics per game; Settings shows this PC Telemetry. sessions.avg_cpu_load / avg_cpu_temp / max_cpu_temp / avg_ram_mb and the cpu_load / cpu_temp / ram_mb series were in schema 0001 with no producer. TelemetryPoller now reads the machine beside the GPU on the same 1 Hz tick through ISystemTelemetrySource, and the reading rides each TelemetrySample as a SystemReading - outside GpuSample, whose capability bits and layer attribution mean nothing here. Two unprivileged Win32 calls, no process opened: GetSystemTimes (time busy across every logical processor; the first tick has no interval and is null, never 0) and GlobalMemoryStatusEx. CPU temperature is the one privileged reading: a separate CPU-only LibreHardwareMonitor Computer, opened only when the Agent is elevated AND PawnIO is installed. It is UNMEASURED on real hardware (20_OPEN_QUESTIONS M10 carries the one session that settles it). HelloAck.cpuTempAvailable reports those two conditions instead of a constant false. The .partial sensor chunk carries the three values in bits 12-14 of its existing presence mask, so an older file reads back with an empty reading. No migration; older sessions keep their nulls. App. The game page's Trend tab gains average GPU load, average GPU power, max VRAM (game), average CPU load, max CPU temperature, average memory in use and the xFG factor - a factor that is its session's steady state (rule 6) is a partial point: left out by default, drawn marked when mid-session changes are included. The Sensors chart draws CPU temperature, CPU load and system memory; Compare gains three rows; the session summary gains GPU and CPU cards and the session's hardware snapshot under its header; the live card carries cpuLoadPct. Settings > System states this PC as a session's snapshot would record it (the same IHardwareSnapshotSource), with Copy; nothing is sent anywhere. --diag prints it; the bug bundle's sysinfo.json is deliberately unchanged (its keys are the issue link's prefill). legal/ACCURACY.md and its two embedded copies say what is and is not measured about the processor. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * style: one property per line in the trend test's object initialiser Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
34e405fe08 |
deps: xUnit.net v3 4.0.1 (as xunit.v3.mtp-off) and the other outdated packages; one test race the new scheduler found (#204)
xunit.v3 3.2.2 -> 4.0.1, referenced as xunit.v3.mtp-off with xunit.runner.visualstudio 4.0.0. 4.0 makes Microsoft Testing Platform v2 the default of the plain package; build.ps1's gates are VSTest-shaped on purpose (the XPlat Code Coverage collector, the results.trx the struct-mirror gate and the 25-minute wall clock read), so the projects take the same 4.x framework through the variant xunit publishes for that. Also Dapper 2.1.86, Microsoft.Data.Sqlite / Microsoft.Extensions.Hosting / System.Diagnostics.EventLog 10.0.12, CsWin32 0.3.333, Roslynator 5.0.0, Meziantou.Analyzer 3.0.266, Microsoft.NET.Test.Sdk 18.10.1, NSubstitute 6.2.0. WPF-UI [4.3.0] and FluentAssertions [7.2.2] stay pinned, with their reasons. legal/licenses/nuget regenerated. The first gate run on 4.0.1 failed StringsTests.TheCulturePropertyOverridesTheThread: eight App.Tests classes write the process-wide Strings.Culture and ran in parallel. They share one collection now; five runs green, then the gate. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
f0da7e5cf7 |
feat(app): the session summary window and the charts -- ChartTheme over two palettes, min/max decimation, the frametime timeline, the distribution, FR-8.3's override, tags/notes, CSV/JSON/PNG export (P3 PR-6) (#160)
Charts/: SessionSeriesLoader decodes a session's blobs once (cumulative time, the
generated and gap bits, the application-frame view with Domain.Metrics.StutterDetector
over it -- the stored count's own rule -- segments from frame index to seconds, sensors
aligned to t_ms with -1 dropped). Decimator is FR-5.3: every bucket's min and max in
order, <= 4000 points per draw; a 500k-point series keeps its spike and its dip.
FrametimeChart: application frames by default, the every-present series behind the
FR-5.4 toggle only when generated frames exist, PSO-compile stutter coloured apart
(FR-5.5), alternating segment spans, GPU temperature/load on the right axis.
DistributionChart: FPS histogram + the percentile curve through Domain.Metrics.Percentile.
ChartTheme.Apply/Attach re-colour every live plot on ApplicationThemeManager.Changed
from Styles/ChartPalette.{Dark,Light}.xaml (the one place hex is allowed);
ChartPaletteTests pins the two files' key parity. ScottPlot.WPF 5.1.59 as pinned.
Windows/SessionSummaryWindow (a secondary FluentWindow with its own ContentDialogHost):
stat cards from the STORED aggregates, never recomputed (lows labelled "(presented)"
when FG was not measured); chips through TriStateResolution with FR-8.3's dialog
writing the override to session_annotations beside the measurement (and the game
default on request; clearing restores the measurement); crash and safety-unhook bars;
tags/notes editor; FR-9 exports -- SessionExporter writes the CSV with 03_METRICS
§Export schema's column line verbatim and its # header block, InvariantCulture
throughout, no rows for Tier 2; the JSON (frameledger-session/1, N/A omitted); PNG via
Plot.SavePng. Opened from a Sessions-tab row (double-click or Open) and from the
Dashboard's recent list. FR-3.8 is an in-app notice on SessionCompleted until the
tray exists (PR-8).
Tests (App, 68): DecimatorTests, ChartPaletteTests, SessionSeriesLoaderTests,
SessionExporterTests (schema, header, invariance under vi-VN, Tier-2 no rows, JSON),
SessionSummaryViewModelTests (cards, override + clear, tags de-duplicated, exports
through a scripted saver), and the charts drawn through Skia under the theme
dictionaries in PagesLoadTests. 57 new App strings in en/vi/ja.
Docs: 08_UI §Session summary + 16_WPFUI §ScottPlot theme sync built notes; HANDOFF
row 6 struck with the two deliberate deviations (a dialog rather than a flyout; the
toast waits for the tray). CHANGELOG.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
|