From e5b8e33eb3329571b7f787c754689c9cc44d7721 Mon Sep 17 00:00:00 2001 From: fourtf Date: Sat, 6 Jan 2018 18:21:00 +0100 Subject: [PATCH] removed fps limit it didn't increase performance and just made it look 'laggier' --- src/widgets/helper/channelview.cpp | 10 +++++----- src/widgets/scrollbar.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/widgets/helper/channelview.cpp b/src/widgets/helper/channelview.cpp index bf7422af6..665f91b2c 100644 --- a/src/widgets/helper/channelview.cpp +++ b/src/widgets/helper/channelview.cpp @@ -110,14 +110,14 @@ ChannelView::~ChannelView() void ChannelView::queueUpdate() { - if (this->updateTimer.isActive()) { - this->updateQueued = true; - return; - } + // if (this->updateTimer.isActive()) { + // this->updateQueued = true; + // return; + // } this->repaint(); - this->updateTimer.start(); + // this->updateTimer.start(); } void ChannelView::layoutMessages() diff --git a/src/widgets/scrollbar.cpp b/src/widgets/scrollbar.cpp index 5169d2946..efde86a13 100644 --- a/src/widgets/scrollbar.cpp +++ b/src/widgets/scrollbar.cpp @@ -218,11 +218,11 @@ void Scrollbar::paintEvent(QPaintEvent *) // draw highlights auto snapshot = this->highlights.getSnapshot(); - int snapshotLength = snapshot.getLength(); + int snapshotLength = (int)snapshot.getLength(); int w = this->width(); float y = 0; float dY = (this->height() - MIN_THUMB_HEIGHT) / snapshotLength; - int highlightHeight = std::ceilf(dY); + int highlightHeight = std::ceil(dY); for (int i = 0; i < snapshotLength; i++) { ScrollbarHighlight const &highlight = snapshot[i];