reduce waveform scale

Exponentially improves performance (at the expense of higher zoom levels but they were probably already too extreme)
This commit is contained in:
itsmattkc
2021-09-03 13:46:37 -07:00
parent 5e66892e64
commit 5edb8f5d4a
6 changed files with 7 additions and 11 deletions
-5
View File
@@ -29,8 +29,6 @@
namespace olive {
const double TimeBasedView::kMaximumScale = 8192;
TimeBasedView::TimeBasedView(QWidget *parent) :
HandMovableView(parent),
playhead_scene_left_(-1),
@@ -53,9 +51,6 @@ TimeBasedView::TimeBasedView(QWidget *parent) :
// Signal to update bounding rect when the scene changes
connect(&scene_, &QGraphicsScene::changed, this, &TimeBasedView::UpdateSceneRect);
// Always enforce maximum scale
SetMaximumScale(kMaximumScale);
// Workaround for Qt drawing issues with the default MinimalViewportUpdate. While this might be
// slower (Qt documentation says it may actually be faster in some situations),
// MinimalViewportUpdate causes all sorts of graphical crud building up in the scene