Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Phindows Caching Issues
Ref. No. QNX.000009513
Category(ies) Configuration
Issue Not all images in my Photon display are being cached and displayed by Phindows.
Solution Increase your Phindows RAM cache.  The Phindows 1.20 default of 1M is big enough for a 1024x768 256 color image, but will need to be increased for larger images (especially true color images).  You can change this parameter by starting phindows via the connect dialog, or by using "-M <size>" in the phindows.exe command line.

If this doesn't make a difference, you need to look at how your program emits the "bitmaps"? Are they bitmaps (ie: drawn with PgBitmap) or are they images?  Is the data in shared memory?

Phindows will cache shared memory images of any size up to your RAM cache (at least 1 Meg). However, no Photon draw command can exceed 64Kbytes, so large data objects need to be emitted in "pieces" if they are too large.  The Photon draw library normally does this for you.