Commit 3af4e4ca authored by Dmitry Kazakov's avatar Dmitry Kazakov

Optimize Onion Skins updates

parent 924eca87
......@@ -287,10 +287,9 @@ void KisPaintLayer::setOnionSkinEnabled(bool state)
void KisPaintLayer::slotExternalUpdateOnionSkins()
{
// here we update the whole image because the number of onion
// skins could have been reduced and the compositor will not be
// able to calculate the correct area
const QRect dirtyRect = m_d->paintDevice->defaultBounds()->bounds();
const QRect dirtyRect =
KisOnionSkinCompositor::instance()->calculateFullExtent(m_d->paintDevice);
setDirty(dirtyRect);
}
......
......@@ -32,7 +32,7 @@ static const int MAX_SKIN_COUNT = 10;
KisOnionSkinDialog::KisOnionSkinDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::KisOnionSkinDialog),
m_updatesCompressor(1000, KisSignalCompressor::FIRST_INACTIVE)
m_updatesCompressor(300, KisSignalCompressor::FIRST_INACTIVE)
{
KisImageConfig config;
ui->setupUi(this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment