qupzilla
qupzilla copied to clipboard
Native scrollbars decrease smooth scrolling performance
QupZilla 2.1.1, Arch Linux. When native scrollbars are enabled, smooth scrolling is not so smooth, looks like like 30 fps.
Can't reproduce this on Solus. What are your hardware specs and are you running any other apps when you notice this? If so, which ones?
Video card is AMD Radeon R9 280X, OpenGL driver is radeonsi from Mesa 17.0.1, xf86-video-ati 7.8.99. The issue is present regardless of if I run any other apps.
I also have this issue on Windows 10.
I can reproduce it, you can enable FPS counter in web inspector and it's clear that it is locked to 30fps. The problem is rendering the scrollbars (probably because QtWebEngine is QQuickWidget and that doesn't mix well with QtWidgets performance-wise), but I have currently no idea how to fix it. I guess I'll need to disable the native scrollbars by default (or even completely remove this feature).
...(or even completely remove this feature).
~I'll be so happy if you do it!~
You can disable it if you don't like it.
Ooops, i didn't read carefully, i thought you are talking about „Smooth scrolling“
probably because QtWebEngine is QQuickWidget and that doesn't mix well with QtWidgets performance-wise
AFAIK, QWebEngineView is QWidget.
AFAIK, QWebEngineView is QWidget.
Not under the hood, it was QOpenGLWidget before and is now QQuickWidget to share the same code as QtQuick version.
https://code.qt.io/cgit/qt/qtwebengine.git/tree/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
I double this.
It's now disabled by default.
IMHO, it would be a better idea to disable smooth scrolling by default and keep native scrollbars enabled by default if the 2 features conflict.
@kkofler +++
No, it wouldn't be better. It doesn't affect only smooth scrolling, but the whole rendering. If the scrollbars are redrawn (because the scroll position changed), it halves the frame rate of the whole webview. So, even though it is most visible during smooth scrolling, it will affect also pages that implements smooth scrolling with javascript, ...
Unless I fix the main issue, it will stay as it is (native scrollbars disabled by default).
I have bad smooth scrolling, but ok native scrollbars. (but good smooth scrolling in firefox and thunderbird)
Running 2.1.2 on Mac OS X, installed via homebrew. Laggy scrolling persists even after disabling animated scroll setting
Disabling animated scrolling have no effect at all, it only makes it less noticeable. You need to disable native scrollbars.
So it's not a new behavior, strange I haven't noticed this before. And nothing can be done for native scrolls at this moment… I do like native scrolls.
Hello, I also have this problem when scrolling with touchpad and mouse pointer is pointed over the scrollbar because for some crazy reason smooth-scrolling is forced when scrolling with touchpad