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. Slow animation in QWebView, when browsing list
Forum Updated to NodeBB v4.3 + New Features

Slow animation in QWebView, when browsing list

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 2.0k 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.
  • V Offline
    V Offline
    vladimir.ks
    wrote on last edited by
    #1

    Hi all!
    I'm using webkit on embeeded system. And everything starts to slow down when i load a page that consist list and background image. Key thing here it's image, when i load page with common background all is allright, but when image there all start to slow. Size of image is not very big - just 100-500 KB

    Is it any settings in webkit, that can improve performance?

    And two more questions:
    2) Where webkit store preview images? I see some in inspector/resources, but can't find it in filesystem
    3) How can i remove borders/highlightings etc when i browse page (it is needed because i use interface that have own style)

    P.S. Hope for your help. Sorry for my english

    1 Reply Last reply
    0
    • B Offline
      B Offline
      brcontainer
      wrote on last edited by
      #2

      In "DEBUG mode" animations are slow (actually rendering is slow), because of debugging that collects real-time information.

      1. Use RELEASE-mode
      2. Read about "improve CSS animation":
      • http://css-tricks.com/tale-of-animation-performance/
      • http://stackoverflow.com/a/12643404/1518921
      • http://www.html5rocks.com/en/tutorials/speed/html5/
      • http://webdesign.tutsplus.com/tutorials/css3-animations-the-hiccups-and-bugs-youll-want-to-avoid--webdesign-4867

      QT project: https://github.com/brcontainer/qt-helper

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vladimir.ks
        wrote on last edited by
        #3

        Problem with images was resolved by adding some settings which relate to cache.
        @
        QWebSettings::globalSettings()->setMaximumPagesInCache(10);
        QWebSettings::globalSettings()->setObjectCacheCapacities(810241024, 1610241024, 2410241024);
        @

        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