Repository navigation
feat: pick run-script switches by graphics card - #24
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
run-gta6.ps1,measure-gta6.ps1andshot-run.ps1no longer set the frame-rate switches themselves.scripts/leonida-settings.ps1reads the card with the most memory from the registry, clearsLEONIDA_*switches an earlier run left in the PowerShell window, and applies the matching profiles fromgpu-profiles.json. Each profile records where its numbers come from. Described indocs/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=noneapplies no profile;LEONIDA_KEEP_WINDOW=1keeps what is already set in the window; local changes go in the ignoredgpu-profiles.local.json.Why the window is cleared
On an RTX 3080, textures stayed black while
LEONIDA_TEXTURE_NO_WAIT=1andLEONIDA_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:
baseon the 3080 and on a stand-in 8 GB AMD card;LEONIDA_PROFILE=card-windowsadds the opt-in profile; leftovers from earlier runs are cleared; paths andLEONIDA_LOGstay.run-gta6.ps1started the game with textures loading.cargo check --workspace --all-targetsandcargo xtask policypass.AI-assisted.
🤖 Generated with Claude Code