[Qt-interest] QtWebKit scrolling performance

Garth Dahlstrom ironstorm at gmail.com
Fri Nov 26 16:57:09 CET 2010


Hi Vladimir,

I have seen a regression where scrolling performance is pretty horrible in QtWebKit/Qt/4.7 (where it is fine in Qt4.6.0), specifically it was when I had inlined SVG images.

I've been meaning to put together a demo program that shows the problem and report it, but basically...  it can reproduced by loading an SVG into a string, base64-ing it, and then inserting it into a page something like this:

> QString data = file->readAll().toBase64();
> element.appendOutside("<img src='data:image/svg+xml;base64,"+data + "%3D%3D' width='32px' height='32px' style='border:none'>"); 

I worked around it by using inlined JPG data instead of SVG data.     Not sure if that is the same problem you are having though.

-G


On 2010-11-26, at 9:39 AM, qt-interest-request at trolltech.com wrote:

> Date: Fri, 26 Nov 2010 15:28:06 +0200
> From: Vladimir Pouzanov <farcaller at gmail.com>
> Subject: [Qt-interest] QtWebKit scrolling performance
> To: qt-interest at trolltech.com
> Message-ID:
> 	<AANLkTikKRnoaO+JQ7Ekf+Q2+bkC5zH1aKaCdmzF6dTOg at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> Hi all,
> 
> I have a scrolling problem with Qt4.7/Mac. My web app, that I load in
> QtWebKit has very poor scrolling performance and utilizes all the CPU.
> The same is also true for built-in inspector, where "Resources" panel
> is unusable when lots of resources are being loaded.
> 
> Is this a known issue, or I have trapped on some specific bug?
> 
> -- 
> Sincerely,
> Vladimir "Farcaller" Pouzanov
> http://farcaller.net/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101126/29bac329/attachment.html 


More information about the Qt-interest-old mailing list