Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 1501:5d179afc0366
Generate peak cache directly from model, not from whole-model cache (which turns out to be very slow for large models)
author | Chris Cannam |
---|---|
date | Wed, 11 Sep 2019 20:36:04 +0100 |
parents | e540aa5d89cd |
children | 2c7a480f93ca |
comparison
equal
deleted
inserted
replaced
1500:ac5a82e57d23 | 1501:5d179afc0366 |
---|---|
1428 if (createWholeCache) { | 1428 if (createWholeCache) { |
1429 | 1429 |
1430 auto whole = std::make_shared<Dense3DModelPeakCache>(m_fftModel, 1); | 1430 auto whole = std::make_shared<Dense3DModelPeakCache>(m_fftModel, 1); |
1431 m_wholeCache = ModelById::add(whole); | 1431 m_wholeCache = ModelById::add(whole); |
1432 | 1432 |
1433 auto peaks = std::make_shared<Dense3DModelPeakCache>(m_wholeCache, | 1433 auto peaks = std::make_shared<Dense3DModelPeakCache>(m_fftModel, |
1434 m_peakCacheDivisor); | 1434 m_peakCacheDivisor); |
1435 m_peakCache = ModelById::add(peaks); | 1435 m_peakCache = ModelById::add(peaks); |
1436 | 1436 |
1437 } else { | 1437 } else { |
1438 | 1438 |