Home · All Classes · Grouped Classes · Annotated · Functions

Managing Memory Usage

Shared Memory Cache

Qtopia performs adequately with 64 MB RAM; however a system using half this amount on say, shared memory cache and backing store will not have acceptable performance. A constant: QGLOBAL_PIXMAP_CACHE_LIMIT is provided to aid memory management for systems with large, high bit per pixel(bpp) screens. This constant should be defined for the target device in custom.h.

This constant determines the size of the shared memory cache that Qtopia uses and depends on the user device. The shared memory cache holds pixmaps that are common between applications with the most important being the background image. The size of the background image depends on the size and depth of the screen, for example:

Considering that more than just the background image is in the shared memory cache, for example, it also holds other images, the shared memory buffer must be resized relative to the size of the display resolution. So, for example, a 640x480x32 bpp system needs to allocate 1.2 MB plus some additional space. A potential rule-of-thumb is that a shared memory cache twice as large as the background image should suffice.

Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3