# HG changeset patch # User Chris Cannam # Date 1147178635 0 # Node ID c7ade7ea3cfe9a8aec3ed0cd8df7c49cd8da7397 # Parent 05c41701dc6c22f9f53e0d8c52cfd0cd908cd3c0 * It turns out we can be more efficient in the spectrogram repaints by marking the spectrogram layer as non-scrollable, and using the spectrogram cache alone instead of both spectrogram and view caches. diff -r 05c41701dc6c -r c7ade7ea3cfe layer/SpectrogramLayer.h --- a/layer/SpectrogramLayer.h Tue May 09 12:13:35 2006 +0000 +++ b/layer/SpectrogramLayer.h Tue May 09 12:43:55 2006 +0000 @@ -193,6 +193,8 @@ virtual void setLayerDormant(const View *v, bool dormant); + virtual bool isLayerScrollable(const View *v) const { return false; } + protected slots: void cacheInvalid(); void cacheInvalid(size_t startFrame, size_t endFrame);