mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-28 17:19:14 +01:00
* #3328: output guard checks file identity only where an alias is possible The output guard opened every footage file of the project, for every check of an output that existed, on the UI thread: minutes for long sequences on a network share. It now compares only the files that can be the output (folders on the output's volume, folders holding symbolic links), keeps the identities it learnt in the session (folders that changed are looked at again; Reload Footage forgets them), and does no file system call while its lock is held. render.frame checks and writes with one guard. A control request whose sender stopped waiting is not run, and one tick runs control requests for at most a tenth of a second; the rest follow in order on the next ticks. * #3328: output guard compares paths only, no file is opened Comparing file identities still cost a file open per footage frame when folders were on the output's volume, and caching them invited races (#3330 review). The guard now compares paths by name once resolved: absolute, dot segments resolved, one separator, Windows verbatim prefixes as the plain path, without case on Windows and macOS. A link or hard link to footage under another name is no longer recognised; the reported data loss (#1743) is the same-path case. Render queue duplicate outputs compare by name too. * #3328: drop the link identity tests of the render queue; test and doc review fixes * #3328: a mapped network drive and its UNC path are one place On Windows the output guard resolves each drive letter's root once per guard (std::fs::canonicalize of `X:\`) and compares a path on that letter as the place it resolves to: a mapped network drive as its \server\share path, a subst drive as its folder. A root that can't be resolved keeps its letter. * #3328: drive roots are looked up only where they can matter, and kept a minute A drive letter's root is resolved only when the output and the protected files are not all on one letter, or not all UNC paths: footage and output on one mapped drive never wait for a disconnected drive or an empty removable one. Resolved roots, failures too, are kept process-wide for 60 s. * #3328: the 13,000-frame guard test counts file system lookups instead of timing them * #3328: note why only Windows counts lookups in the 13,000-frame guard test * #3328: queued outputs collide under drive and UNC spellings * #3328: queued sequences and subst drives compare by the place they name * #3328: queued outputs keep their resolved places instead of resolving per comparison * #3328: cache_bench's play request carries the abandoned flag (main's example met the new ControlRequest field) * Refuse an output in a folder linked to a source's folder An output whose name matches no protected file now has its folder resolved on disk, once per folder per guard, and is compared again by name. An output in render-alias/, a symbolic link or junction to plates/, no longer replaces plates/source.exr. No protected file is looked at. * Resolve both folders, and only for a source with the output's file name The footage path as imported may itself run through a link (macOS /var is /private/var, Windows 8.3 names), so resolving only the output's folder missed it. Now an output whose path matches nothing is compared again only with sources of the same file name, both folders resolved once per guard. An output named like no source asks the file system nothing.