Preload: fewer compiler jobs under Wine/Proton #165
Loading…
Reference in a new issue
No description provided.
Delete branch "TheStonedGamer/Darner:preload-wine-jobs"
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?
vkd3d-proton's shader cache write fails ('Failed to open stream archive
write file exclusively') when several compiler processes run at once.
Darner.exe now defaults to 2 concurrent jobs under Wine/Proton instead of
cores * 2 / 3, and the launcher stops overriding DARNER_PRELOAD_JOBS so the
binary's own detection applies.
Contributor role (optional)
What it changes
How it was tested
Checklist
main.docs/asset-policy.md.Checked for overlap
vkd3d-proton's shader cache write fails ('Failed to open stream archive write file exclusively') when several compiler processes run at once. Darner.exe now defaults to 2 concurrent jobs under Wine/Proton instead of cores * 2 / 3, and the launcher stops overriding DARNER_PRELOAD_JOBS so the binary's own detection applies.Read through it. On Windows nothing changes: DARNER_PRELOAD_JOBS=0 (the launcher and F1 default) is filtered to None in
darner preload, so the new default only applies when the Wine variables are set.Before merging:
translate::precompilerepeats the Wine check inline; please callwarm::running_under_wine()there instead so the two can't drift.The
preloadpath still filters zero. Directdarner warm --jobs 0passesSome(0)through towarm::run. At3223df4the minimum of one is inside the default closure, so an explicit zero reaches the worker loop.mainstill clamps the explicit value to one. I tested the extracted job selectors and worker range with one pending chunk on Rust 1.98.1: base started one worker and the candidate started zero. The Windows default, Wine default, and explicit positive count checks also passed. Keeping.max(1)afterunwrap_or_elsepreserves the old direct-warmbehaviour. This was an isolated check without a title run or Proton measurement. CLI dispatch · Candidate selector · Worker loop3223df4054to205add9ea8View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.