Skip to content

feat: pick run-script switches by graphics card - #24

Merged
ShinniUwU merged 3 commits into
mainfrom
feat/gpu-profiles
Nov 26, 2026
Merged

ShinniUwU merged 3 commits into
mainfrom
feat/gpu-profiles

Conversation

@ShinniUwU

Copy link
Copy Markdown
Contributor

run-gta6.ps1, measure-gta6.ps1 and shot-run.ps1 no longer set the frame-rate switches themselves. scripts/leonida-settings.ps1 reads the card with the most memory from the registry, clears LEONIDA_* switches an earlier run left in the PowerShell window, and applies the matching profiles from gpu-profiles.json. Each profile records where its numbers come from. Described in docs/fork-notes.md.

A step towards P-1 and U-3 (switches per card, tested ones on); it finishes neither, so no row is deleted.

  • base, every card: the switches the scripts set before.
  • card-windows, opt-in (LEONIDA_PROFILE=card-windows): faster on an RTX 3080 (usual frame 169-173 -> 149-158 ms) but it takes about 3.7 GB of the card and halves the host copies of textures picked by index.
  • LEONIDA_PROFILE=none applies no profile; LEONIDA_KEEP_WINDOW=1 keeps what is already set in the window; local changes go in the ignored gpu-profiles.local.json.

Why the window is cleared

On an RTX 3080, textures stayed black while LEONIDA_TEXTURE_NO_WAIT=1 and LEONIDA_RELAY=2, left in the window by another fork's start script, were still set; they loaded again once the window was cleared. Which of the two did it was not separated.

Tested

Windows 11, RTX 3080 12 GB (driver 621.24), Ryzen 7 7800X3D:

  • The loader picks base on the 3080 and on a stand-in 8 GB AMD card; LEONIDA_PROFILE=card-windows adds the opt-in profile; leftovers from earlier runs are cleared; paths and LEONIDA_LOG stay.
  • All four scripts parse in PowerShell 5.1 and keep CRLF endings.
  • run-gta6.ps1 started the game with textures loading.
  • cargo check --workspace --all-targets and cargo xtask policy pass.

AI-assisted.

🤖 Generated with Claude Code

ShinniUwU and others added 3 commits November 26, 2026 10:15
gpu-profiles.json lists the LEONIDA_* switches per card with where each
was measured; scripts/leonida-settings.ps1 reads the card from the
registry, clears switches an earlier run left in the window and applies
the matching profiles. run-gta6.ps1, measure-gta6.ps1 and shot-run.ps1
use it. Card windows are opt-in (LEONIDA_PROFILE=card-windows): they
left textures black on an RTX 3080. Local overrides go in the ignored
gpu-profiles.local.json.
@ShinniUwU
ShinniUwU merged commit ec28ced into main Nov 26, 2026
1 check failed
@ShinniUwU
ShinniUwU deleted the feat/gpu-profiles branch November 26, 2026 09:40
ShinniUwU added a commit that referenced this pull request Nov 26, 2026
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.

1 participant