fix(anim): answer the play button in the frame it is clicked #17
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
linux
packaging
performance
question
tech-debt
ui
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ben/openDither!17
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/playback-responsiveness"
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?
What changed
animation frame, and the frame a person stops on is dithered again at the
picture's own size.
handled before anything is dithered for it.
new
load_textureper render.compositeborrows layer pixels instead of copying every layer per render.band per core (
src/par.rs,std::thread::scope, no new dependency). Theerror-diffusion families stay single-threaded: they push their error into the
next row.
entry per pixel.
ensure_full_render, so apreview can never leave the app.
Why
Fixes the reported behaviour: the play button sometimes did not stop the
animation, and playback with effects was slow.
What ran
cargo fmt --checkcleancargo test --release: 243 passed--audit: 558 passed, 1 skipped--controls: 62 passed--uitest: 100 passed (5 new playback/texture checks)--selftest: 456 renders, 0 failuresx86_64-pc-windows-gnu, static CRT)--timingat 1200x900: median 72 ms -> 16 ms per style; PNGs written beforeand after this change are byte-identical
What did not run
macOS: no machine here.
Known, not fixed
Opening a picture or a project still reads, decodes and dithers on the UI thread
(filed as #10).