[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: QImage::Format_Indexed8
From:       Stefan Majewsky <stefan.majewsky () googlemail ! com>
Date:       2011-04-13 15:24:24
Message-ID: BANLkTimUd2ivSwU7tBkA49xBcepKs6_gLw () mail ! gmail ! com
[Download RAW message or body]

On Tue, Apr 12, 2011 at 7:34 PM, Thomas Lübking
<thomas.luebking@gmail.com> wrote:
> I've just installed and played errr... "tested" palapeli and sth. seems
> wrong. It takes up to ~100MB RAM and quite some cpu when dragging items.

Most of the memory usage comes from the pixmaps, and does thus depend
very much on the size of the puzzle image. For a 4000x4000 pixel
image, I estimated memory usage of 380 MB, which comes pretty close to
the process' overall private memory of 400 MB which I measured (with a
grain of salt, of course).

> Do you store the tiles/shadows as images & pixmaps or do you keep calling
> "QPainter::drawImage()" - and is the graphicssystem forced internally?

The drawing is done by QGraphicsView via QGraphicsPixmapItem (yeah,
that's surely not going to work with Indexed8; I wanted to try to
introduce Indexed8 step by step, and failed at the first step) and
raster is forced on X11 after it was determined by testing that
rendering performance is best with it.

Greetings
Stefan
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic