Mercurial > hg > svgui
changeset 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 | ac5a82e57d23 |
children | 62aad7969f8b |
files | layer/SpectrogramLayer.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Wed Sep 11 11:21:00 2019 +0100 +++ b/layer/SpectrogramLayer.cpp Wed Sep 11 20:36:04 2019 +0100 @@ -1430,7 +1430,7 @@ auto whole = std::make_shared<Dense3DModelPeakCache>(m_fftModel, 1); m_wholeCache = ModelById::add(whole); - auto peaks = std::make_shared<Dense3DModelPeakCache>(m_wholeCache, + auto peaks = std::make_shared<Dense3DModelPeakCache>(m_fftModel, m_peakCacheDivisor); m_peakCache = ModelById::add(peaks);