Skip to content

U-3: apply graphics profiles natively with TOML overrides - #48

Merged
ShinniUwU merged 5 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/u3-native-graphics-settings
Nov 26, 2026
Merged

ShinniUwU merged 5 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/u3-native-graphics-settings

Conversation

@JohnReedV

@JohnReedV JohnReedV commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Direct leonida run and Wine launches previously missed the graphics profiles applied by the PowerShell scripts. The executable now applies the same eight measured base settings before loading a title or creating a translation host. This completes U-3; experimental profiles remain opt-in.

  • Add eleven typed [graphics] settings, profile selection, and config --graphics JSON with effective values and sources. Precedence is explicit environment > TOML > profiles. Preserve local catalogs, ordered overlays, null cancellation, explicit disabling, and the existing LEONIDA_PROFILE=1 CPU sampler.
  • Embed the standard catalog for standalone executables. Match the default D3D12 adapter without initializing GPU workers; retain WARP presence semantics and RenderDoc initialization order.
  • Make launchers query the native plan, restore the caller's environment (including explicitly empty values), and keep benchmark baselines off. Shareable reports redact paths and arbitrary string values. Six existing empty-array test assertions now use is_empty() because the JSON dependency introduces an otherwise ambiguous PartialEq implementation.

Validation at 52d6ad6eeef160244fb1d402ef3a064fb3f3e308:

  • PR CI passed. Additional native Windows validation passed workspace checks, default/all-feature Clippy, asset policy, and 642 tests with zero failures and 18 ignored; all nine documentation-test targets passed. Its source differs from the PR only by the validation workflow.
  • Native Windows release CLI suites passed: 13 default and 14 diagnostics tests. Both executed three original synthetic PE programs through the real loader, verifying profile/TOML/environment values reached title code. The diagnostics WARP-presence assertion also executed and passed.
  • Windows PowerShell 5.1 and PowerShell 7.6.10 launcher smoke tests passed against the real native executable, including empty environment values, caller-state restoration, Unicode JSON and report redaction. Local PowerShell 7.4.6 and 7.6.10 checks also passed.
  • On an Intel Core i9-14900KS / RTX 5090, NVIDIA 580.173.02, Pop!_OS 22.04, Proton 11 Wine 11.0 in Steam's offline Flatpak runtime, Rust 1.98.1: 32 core tests and core all-feature Clippy passed; Windows crossbuild and Wine CLI suites passed the same 13 default / 14 diagnostics cases and all synthetic-title probes.
  • Physical D3D12 adapter metadata parity passed; direct CLI resolution produced exactly the eight base values. DXVK reports an AMD vendor ID for this NVIDIA card; matching intentionally uses the adapter identity exposed to D3D12. Script parsing, CRLF and diff checks passed.

The C-2 assertion from the initial draft's CI is fixed by the now-merged #47, included in this branch. One earlier Windows run also failed the unchanged in-place buffer test at its memory-decommit assertion. A bounded focused comparison ran 100 serial and 100 parallel cases on each of the exact baseline and U-3 revisions, with identical test-only instrumentation: all 400 passed. Its cause remains unresolved, not proven fixed or pre-existing. A separate broader baseline comparison encountered an unattributed access violation on the baseline; neither comparison reproduced that decommit assertion. No in-place production code was changed.

No game files were used and no new gameplay/FPS improvement is claimed: this makes the existing measured profiles available to direct launches.

AI-assisted implementation and review.

@JohnReedV
JohnReedV marked this pull request as ready for review November 26, 2026 19:57
@ShinniUwU
ShinniUwU merged commit 6aa18b8 into ProjectLeonidaL:main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants