Repository navigation
Issue #1898: the photo on screen and the user's own work first, background scans on spare capacity - #1932
Merged
Conversation
…round scans on spare capacity
One ranked order for the machine (crate::sched):
- The face scan, photo indexing and the focus-point reader pause while an
export, import or other batch of the user's runs, while a requested preview
build runs, and while the photo on screen is being made (spare_pace on their
per-frame pumps). The user's own pause switches for faces and indexing stay
as they are.
- Every batch of an import gets its previews. A batch that arrives while the
previous batch's build runs waits for it; before, it was dropped ("a preview
build is already running": 16 of 261 photos built). The build's jobs are made
a frame at a time, starting from the photo the user is on.
- Requested preview builds wait while an export runs, and give the photo on
screen up to 0.6 s before each photo.
- A file that moves (Rename Photos, a move, a relink, their undo) remakes the
running build's jobs for it with the new path. A build queued before a
rename failed 84 photos with "cannot find the file".
Fixes emmertex#1898.
Manual: platforms/performance (Who goes first).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Fixes #1898
What changed
One ranked order for the machine (
crate::sched):docs/background-tasks.mdgains a "Who goes first" section. What's new and changelog entries are in the commit.How it was checked
60 Canon R5 C CR3s from a real wedding, imported and exported with a preset that has a Subject mask (JPEG q90 sRGB, long edge 6000), on a 32-thread Windows PC with an RTX 5070 and an RTX 4070 SUPER. Release builds of
stagingand of this branch, same data, one run each, with no other Chromaforge app running during the export.stagingNew tests in
crates/engine/src/sched.rscover the pause rules (export, import, requested preview build, photo indexing), andcrates/engine/src/tests_sched.rscovers the queued import batch and the job rebuild after a rename.cargo xtask ci --quick --base origin/staging: all 15 check steps pass (fmt, clippy, docs, parity, layers, assets, wasm and the rest). In the test step, thelcc-engineintegration tests pass, and the engine library tests pass excepttests_face_recognize::a_trained_person_and_an_untrained_one_are_scored_the_same_way, which fails the same way onstaging(5df5a81).Notes
spare_pacein a follow-up.🤖 Generated with Claude Code