mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
removed fps limit
it didn't increase performance and just made it look 'laggier'
This commit is contained in:
parent
20eab57db5
commit
e5b8e33eb3
|
@ -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()
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue