WIP: Settings menu: save and close, and restart, save the host pipeline library before the process ends at once #64

Manually merged
TrustNo1 merged 0 commits from Sobo/Darner:menu-library-save into main 2026-12-03 18:36:56 +00:00
Contributor

Co-Authored-By: Claude Opus 5.5 [email protected]
Fluxer-ID: 1577742832095989771

Contributor role (optional)

  • Fluxer ID: 1577742832095989771

What it changes

F1's SAVE AND CLOSE GAME and save-and-restart end the process at once with TerminateProcess (so Streamline's unloading cannot hang it). The host pipeline library was not saved first: every pipeline made since the last interval save was lost, and the next run compiled them again ("the save its interval held back" in the log, then the process ended). Both paths now call crate::pipeline::save_library_now() (the library's save with now) before ending the process.

How it was tested

  • Tested revision: Darner main 4a92569fb (git.gtahub.st) with this patch applied. Build check: cargo clippy -p darner-gpu --all-targets --target x86_64-pc-windows-msvc --locked -- -D warnings: clean. cargo test was not run (no Windows machine for the checks). The gameplay numbers below come from my own builds, which carried this change together with other local changes (same scene, settings and hardware before and after).
  • Hardware and setup: i7-10700K (8 cores, 16 threads), RTX 3090 24 GB, 32 GB RAM, Windows 11; page file 128 GB; NVIDIA shader cache 100 GB; shaders prepared with the preload, then darner warm --used --again with DARNER_WARM_SHARED=1.
  • Gameplay: Series X profile (and Series S where said), DLSS quality, FSR 3 frame generation 2x, ray tracing off.
  • Before: players who quit through F1 compiled the same pipelines again every run (my logs: 352 made in one run, the next run made them again).
  • After: the log shows "host pipeline library saved" right before the end, and the next run loads them.
  • Coverage gaps: closing takes a little longer while a large library (about 1.1 GB here) is written.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none for the same problem. Open PRs that share files only: #37 (shadow.rs) and many that touch host.rs or lib.rs.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Fluxer-ID: 1577742832095989771 <!-- Thanks for the pull request. Please label it (pr-fix, pr-feature, pr-performance, pr-diagnostics, pr-refactor, pr-docs or pr-tests, plus the area labels), or put the label in the title, like [pr-fix]. --> <!-- Use Fixes #N for a complete fix or Refs #N for a partial change. --> ## Contributor role (optional) - Fluxer ID: 1577742832095989771 ## What it changes F1's SAVE AND CLOSE GAME and save-and-restart end the process at once with `TerminateProcess` (so Streamline's unloading cannot hang it). The host pipeline library was not saved first: every pipeline made since the last interval save was lost, and the next run compiled them again ("the save its interval held back" in the log, then the process ended). Both paths now call `crate::pipeline::save_library_now()` (the library's save with `now`) before ending the process. ## How it was tested - Tested revision: Darner `main` 4a92569fb (git.gtahub.st) with this patch applied. Build check: `cargo clippy -p darner-gpu --all-targets --target x86_64-pc-windows-msvc --locked -- -D warnings`: clean. `cargo test` was not run (no Windows machine for the checks). The gameplay numbers below come from my own builds, which carried this change together with other local changes (same scene, settings and hardware before and after). - Hardware and setup: i7-10700K (8 cores, 16 threads), RTX 3090 24 GB, 32 GB RAM, Windows 11; page file 128 GB; NVIDIA shader cache 100 GB; shaders prepared with the preload, then `darner warm --used --again` with `DARNER_WARM_SHARED=1`. - Gameplay: Series X profile (and Series S where said), DLSS quality, FSR 3 frame generation 2x, ray tracing off. - Before: players who quit through F1 compiled the same pipelines again every run (my logs: 352 made in one run, the next run made them again). - After: the log shows "host pipeline library saved" right before the end, and the next run loads them. - Coverage gaps: closing takes a little longer while a large library (about 1.1 GB here) is written. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none for the same problem. Open PRs that share files only: #37 (shadow.rs) and many that touch host.rs or lib.rs.
TrustNo1 manually merged commit b3a615f707 into main 2026-12-03 18:36:56 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!64
No description provided.