forked from aurelienpierreeng/ansel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pipeline cache : simplify the code, fix inconsistent states ?
The pipe cache code was a tangled mess taking input from GUI (active module) and pipeline. That's prone to errors. Plus it had a couple of smart-ass perks (ROI-independent cache ? what for ?). Changes made : - each module gets a global hash representing its internal params, blending params, previous modules and ROI size. - this hash is attributed at pipeline (re)construction and independant from GUI events. It gets recomputed on the whole pipeline. - this hash is used as a key to fetch cache lines. Any upstream change in a module will automatically be propagated to the next hashes. Therefore, we only need to find the latest valid hash (starting from the end of the pipeline) and start recomputing from there. No need to track what module the user was tingling when recomputation was requested.
- Loading branch information
1 parent
a3b311b
commit a95375f
Showing
6 changed files
with
61 additions
and
157 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.