Skip to content

Minor performance upgrade: Don't update histogram while still computing #16929

Open
@rekcodocker

Description

@rekcodocker

Describe the bug

I notice the histogram is updated during computation, and then again when computation is finished.
To save CPU cycles it should be updated when the entire pipeline is finished.

Note: This happens when you initially load a picture for the first computations that involve the entire pipeline. After that the results of the first modules are probably cached.

Steps to reproduce

  1. Load an image into the darktable.
  2. Rotate the image.
  3. Note how the histogram updates twice - once during the computation and once when finalized. I use the waveform and I see the ends dip as if vignette correction has not been applied. After a moment when rotation is finished it straightens itself again.

Expected behavior

DT should update the histogram only once at the end of the pipeline.

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

downloaded from www.darktable.org

darktable version

4.7.0

What OS are you using?

Linux

What is the version of your OS?

Linux Mint

Describe your system?

not really relevant

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

intel HD 600

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions