Allow user-defined setting for raw ca correction tiles per thread
This commit is contained in:
@@ -666,6 +666,20 @@ Gtk::Widget* Preferences::getPerformancePanel ()
|
||||
fclut->add (*clutCacheSizeHB);
|
||||
vbPerformance->pack_start (*fclut, Gtk::PACK_SHRINK, 4);
|
||||
|
||||
Gtk::Frame* fca = Gtk::manage ( new Gtk::Frame (M ("PREFERENCES_RAWCA")) );
|
||||
Gtk::HBox* cachunkSizeHB = Gtk::manage ( new Gtk::HBox () );
|
||||
cachunkSizeHB->set_spacing (4);
|
||||
Gtk::Label* CALl = Gtk::manage ( new Gtk::Label (M ("PREFERENCES_RAWCA_CHUNKSIZE") + ":", Gtk::ALIGN_START));
|
||||
chunkSizeCASB = Gtk::manage ( new Gtk::SpinButton () );
|
||||
chunkSizeCASB->set_digits (0);
|
||||
chunkSizeCASB->set_increments (1, 5);
|
||||
chunkSizeCASB->set_max_length (2); // Will this be sufficient? :)
|
||||
chunkSizeCASB->set_range (1, 16);
|
||||
cachunkSizeHB->pack_start (*CALl, Gtk::PACK_SHRINK, 0);
|
||||
cachunkSizeHB->pack_end (*chunkSizeCASB, Gtk::PACK_SHRINK, 0);
|
||||
fca->add (*cachunkSizeHB);
|
||||
vbPerformance->pack_start (*fca, Gtk::PACK_SHRINK, 4);
|
||||
|
||||
Gtk::Frame* finspect = Gtk::manage ( new Gtk::Frame (M ("PREFERENCES_INSPECT_LABEL")) );
|
||||
Gtk::HBox* maxIBuffersHB = Gtk::manage ( new Gtk::HBox () );
|
||||
maxIBuffersHB->set_spacing (4);
|
||||
@@ -1783,6 +1797,7 @@ void Preferences::storePreferences ()
|
||||
|
||||
moptions.rgbDenoiseThreadLimit = threadsSpinBtn->get_value_as_int();
|
||||
moptions.clutCacheSize = clutCacheSizeSB->get_value_as_int();
|
||||
moptions.chunkSizeCA = chunkSizeCASB->get_value_as_int();
|
||||
moptions.maxInspectorBuffers = maxInspectorBuffersSB->get_value_as_int();
|
||||
moptions.rtSettings.thumbnail_inspector_mode = static_cast<rtengine::Settings::ThumbnailInspectorMode>(thumbnailInspectorMode->get_active_row_number());
|
||||
|
||||
@@ -1987,6 +2002,7 @@ void Preferences::fillPreferences ()
|
||||
|
||||
threadsSpinBtn->set_value (moptions.rgbDenoiseThreadLimit);
|
||||
clutCacheSizeSB->set_value (moptions.clutCacheSize);
|
||||
chunkSizeCASB->set_value (moptions.chunkSizeCA);
|
||||
maxInspectorBuffersSB->set_value (moptions.maxInspectorBuffers);
|
||||
thumbnailInspectorMode->set_active(int(moptions.rtSettings.thumbnail_inspector_mode));
|
||||
|
||||
|
Reference in New Issue
Block a user