Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QtWebkit 4.8 performance
Forum Updated to NodeBB v4.3 + New Features

QtWebkit 4.8 performance

Scheduled Pinned Locked Moved Qt WebKit
8 Posts 3 Posters 5.8k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    maciej.pawlisz
    wrote on last edited by
    #1

    Hi all,
    me and my team are making a webcam/kinect game. We are doing all of our image processing in native app and the rest (graphics and game engine) in JS canvas and html. Maybe some day, we will move image processing also to JS and our game will be completely web based.

    But now we are using QtWebkit to render our game and its performance is not as good as we would like. I checked using this test: http://www.smashcat.org/av/canvas_test/ that webkit performance (I used "fancybrowser" example) is really poor - 23 FPS compared to google chrome (around 120 FPS). I also checked that previous version of Qt (4.7.4) is much faster and runs at 40 FPS, but still it is not as fast as I would like it to be (I also need to do image processing in the background, and display camera image under the WebView). On the other hand images drawn on canvas in Qt 4.7 look terrible, when scaled so maybe that is the reason.

    I tried to do all sorts of optimizations:

    • profiling and optimizing JS (I can't do anything more about it, besides it only uses about 15% of process time according to webkit profiler)
    • Using QGraphicsWebView instead of QWebView - it is a few fps faster
    • Using QGLWidget on QGraphicsView - it is much slower with high resolutions
    • Tweaking all sorts of settings

    Basically I know that current bottle neck is page rendering. Is there anything I can do about it? Why Qt 4.8 is much slower than Qt 4.7?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Try Qt5 if it's not too much a burden to port. Otherwise, you can consider using Google's NaCl.

      (Z(:^

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maciej.pawlisz
        wrote on last edited by
        #3

        Unfortunately, porting to Qt5 would be really hard, since right now we are using python and PySide for our native code. I checked that PySide does not have (much) impact on performance.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          I see. Sadly, I can't help much more, I don't use QtWebKit myself. Powodzenia :D

          (Z(:^

          1 Reply Last reply
          0
          • D Offline
            D Offline
            daljit97
            wrote on last edited by
            #5

            Use Qt 4.8, performances will be better.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              maciej.pawlisz
              wrote on last edited by
              #6

              I did, and as I wrote earlier, performance is not as good as QT 4.7

              We will probably use "CEF":http://code.google.com/p/chromiumembedded/ to get better performance.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                daljit97
                wrote on last edited by
                #7

                Yes, that will return better performances as Qt 4 doesn't have a good Javascript engine.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  daljit97
                  wrote on last edited by
                  #8

                  But see here I'm using Qt 4.8 and I'm getting a little bit better performances. "Link":https://dl.dropbox.com/u/55262925/Html5.png

                  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