Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Optimization tips for QT WebEngine and/or Chromium?
QtWS25 Last Chance

Optimization tips for QT WebEngine and/or Chromium?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
4 Posts 3 Posters 646 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David Lautz
    wrote on 11 Sept 2024, 03:48 last edited by
    #1

    Hello all,
    We replaced our QML application front-end with a javascript UI hosted by the QT WebEngine. So we are encountering some performance issues running within the engine, It runs fine mostly, but we see peformance issues in some cases, read below.

    Some of my engineers are running the application in a Chrome browser and comparing performance to QT WebEngine, which shows the WebEngine is considerably slower in some cases. I personally do not think the test is an equal comparison as while I realize that QT WebEngine is a wrapper around Chromium, it is not clear to me how QT builds and configures the WebEngine at runtime.

    First, I am posting here to get some opinions on this testing. Is it equal. Why, or why not? I see the JS application running within WebEngine as rather simple event loop processing, and tend to believe it is just a matter of tuning the QT WebEngine settings (or maybe WebEngine build options?

    Second, an obvious followup, if anyone knows, are there any recommended settings (or QT WebEngine build options) that would optimize running a JS application within QT WebEngine?

    I am primarily a distributed systems engineer (C++), so I am used to tweaking OS kernels, and communications libraries for optimal performance if required, so I am thinking there might be similar techniques to be applied to QT WebEngine.

    Your thoughts are appreciated,

    J 1 Reply Last reply 11 Sept 2024, 08:54
    0
    • D David Lautz
      11 Sept 2024, 03:48

      Hello all,
      We replaced our QML application front-end with a javascript UI hosted by the QT WebEngine. So we are encountering some performance issues running within the engine, It runs fine mostly, but we see peformance issues in some cases, read below.

      Some of my engineers are running the application in a Chrome browser and comparing performance to QT WebEngine, which shows the WebEngine is considerably slower in some cases. I personally do not think the test is an equal comparison as while I realize that QT WebEngine is a wrapper around Chromium, it is not clear to me how QT builds and configures the WebEngine at runtime.

      First, I am posting here to get some opinions on this testing. Is it equal. Why, or why not? I see the JS application running within WebEngine as rather simple event loop processing, and tend to believe it is just a matter of tuning the QT WebEngine settings (or maybe WebEngine build options?

      Second, an obvious followup, if anyone knows, are there any recommended settings (or QT WebEngine build options) that would optimize running a JS application within QT WebEngine?

      I am primarily a distributed systems engineer (C++), so I am used to tweaking OS kernels, and communications libraries for optimal performance if required, so I am thinking there might be similar techniques to be applied to QT WebEngine.

      Your thoughts are appreciated,

      J Offline
      J Offline
      JonB
      wrote on 11 Sept 2024, 08:54 last edited by
      #2

      @David-Lautz
      One very quick one: Are you sure your QWebEngine stuff is compiled for release/optimized? Performance of the Debug version is known to be very slow.

      D B 2 Replies Last reply 11 Sept 2024, 14:59
      0
      • J JonB
        11 Sept 2024, 08:54

        @David-Lautz
        One very quick one: Are you sure your QWebEngine stuff is compiled for release/optimized? Performance of the Debug version is known to be very slow.

        D Offline
        D Offline
        David Lautz
        wrote on 11 Sept 2024, 14:59 last edited by
        #3

        @JonB
        Yes, the build is compiled for release and optimized. We aren't seeing agonizingly slow performance, just areas where processing stalls at times.

        We are still investigating the application logic itself, but I am just doing some due diligence here in case there are some QT WebEngine optimizations (given the performance comparisons) that can be made.

        Let me take the opportunity to provide some build details I omitted:

        Platform: MacOS
        QT Version: 5.15.17 (Release build)

        1 Reply Last reply
        0
        • J JonB
          11 Sept 2024, 08:54

          @David-Lautz
          One very quick one: Are you sure your QWebEngine stuff is compiled for release/optimized? Performance of the Debug version is known to be very slow.

          B Offline
          B Offline
          Bilal Can
          wrote on 13 Mar 2025, 13:27 last edited by Bilal Can
          #4

          @JonB said in Optimization tips for QT WebEngine and/or Chromium?:

          Is there any solution for the performance problem in debug? As I see, it works smooth in release, but in debug the performance is very poor. I am using Qt6.5.2 and using QWebEngineView in my cpp application to run a parallel web gui alternative of our current desktop solution.

          win10 enterprise 19045
          i7-10850h turbo
          32gb ram

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved