launcher: Auto preset picked from the card's memory and the PC's RAM (LAUNCHER-AUTO-DETECT) #3405
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!3405
Loading…
Reference in a new issue
No description provided.
Delete branch "oreofr/launcher-auto-detect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Item: LAUNCHER-AUTO-DETECT (claimed in #3312).
Launcher change: needs OreoFR's review. Please do not merge without it.
What
auto_offeredkey. The Play card then says what was picked in one line, with Change, which opens Settings.launcher.jsonfrom before this change (noauto_offeredkey) counts as the player's own and is never replaced. After the first start, Auto runs only when the player presses the button.DriverDesc,qwMemorySize, the same valuesplay-nvidia.ps1reads). The judged card is the one with the most memory among those the Graphics card list names. RAM comes fromGlobalMemoryStatusEx, which Settings already uses. No new probes.auto_tier,auto_card,auto_pick(vram, ram, name),apply_auto,auto_summary,auto_first_start.t(), with fr, de, es and pt updated. The UI uses the launcher's dark theme, itsQuietButtonand its muted rule-note lines.Why
On a first start the launcher defaults to Series X. That profile crashes or crawls on 8-12 GB cards and on 16 GB RAM PCs. Darner shows a first-start pick from the card's memory; this does the same with our own numbers wherever we have them.
Tiers
The tiers are a mix of Darner's and ours, as OreoFR chose. They are after Darner (TrustNo1/Darner, GPL-3.0-or-later)
crates/darner-gpu/src/rig.rs, commitsfa6e1e1..cb4bc0d(merge0a4c1d2), first-start offerc992532, mixed with Mandy's own measurements.Tiers are cut on the card's own memory (
qwMemorySize). Darner cuts on the DXGI budget (about 93 % of the card), but the same cut-offs fall between the sizes cards are sold in.Render sizes come from existing settings only. Each render size is a DLSS mode on the Series S output of 1080 lines (
play-nvidia.ps1$dlssScale), so-SeriesS -Dlss <mode>expresses it exactly. No new runtime switch is needed:-Resolution 540), no frame generationd3d12/docs/findings.md)Series X 1440p is the closest existing setting, not Darner's exact one. It uses our Series X defaults: 2560x1440 output, with the game's own upscaler rendering 1080 to 1440 lines. Darner renders 1440 natively with DLSS Quality. We kept the defaults because 1440 lines held is slower here (66-68 ms against 57-60, README) and because that is the setting we measured.
Caps and adjustments:
Risk to know about: on 2026-12-01 a Series X + DLSS Quality run on a 4070 Laptop drew a black scene. The 3090 run on 12-03 was fine. Tier 4 only reaches 20 GB+ cards.
The summary line names the render, for example "Series S 960x540, DLSS Performance, frame generation Auto (8 GB card, 40 GB of RAM)".
Tests
python -I tests/test_leonida_launcher.py: 251 tests OK (1 skipped). The newAutoPresetTests(11) cover:-SeriesS -Dlss performanceand-SeriesS -Dlss qualityapply_auto(Windows: no-SeriesX)python -I tests/test_docs_links.py,tests/test_text_write_line_endings.py,tests/test_win_launchers.py: OK.python -I scripts/check_no_game_data.pyon the changed files: clean.play-nvidia.ps1is unchanged.Screenshots
Taken on the launcher window alone (the game was not started), in English, with a temporary
APPDATAand a fake game folder, on an RTX 4070 Laptop 8 GB. Shown: the Play card's first-start line, the Settings page with the Preset row, and the page after Auto (recommended). They are not attached here; they are available on request.docs/launcher.mddocuments the preset and the tier table.AI-assisted (Claude Code). No GPU run is needed for the logic; nothing in-game was tested.
🤖 Generated with Claude Code
Merging #3405 together with #3414 (one combined change, OreoFR's request). Head
f1816133b(#3405ba0fc18d4+ #34148a45789ce+ main22c68311dmerged in + one fix), main22c68311d→4d9e4d05d. #3414 is shown merged by the same merge.Local CI run by the merger on the head merged into current main (
scripts/local_ci.py, quick mode): PASS, no failure.The first CI run on the combined head (
edd8922ce) FAILEDtests/test_tool_stdout_encoding.py: #3414 picked the main/beta copy under a second module-levelif __name__ == "__main__":, which that test reads as the launcher's entry point. Fixed inf1816133b(same condition, namedRUN_AS_PROGRAM);test_leonida_launcher263 OK (BranchMenuTests + AutoPresetTests), i18n JSON valid.Launcher change approved by OreoFR (maintainer, launcher owner). Auto preset tiers: mix of Darner's and Mandy's measured settings (table in docs/launcher.md); laptop cards capped at Series S 720p as OreoFR asked. Game not launched.
AI-assisted (Claude Code).