I'm a bit of a newbie to all things X and I have a question regarding the
performance of X in regards to pixmaps using XPM. When running some
performace tests displaying 2 color bitmaps I get around 40 million pixels
per second performance out of my system (VxWorks RTOS with RtX-Windows on
top). When I switch to 256 color pixmaps the performance drops to around 5
million pixels per second. Now there is a corellation here of going from 1
bit to 8 bit color causing a 8 times performance degradation, but is that
the reason for the performance decrease? I would of thought that because the
window color depth is still 8 bit then all 8 bit planes still have to be
written to?
Has anyone any explanations as to what is the most significant pixmapping
performance issue ?
Dave Craig.
"Dave Craig" <dcr...@euphonix.com> writes:
> I'm a bit of a newbie to all things X and I have a question regarding the
> performance of X in regards to pixmaps using XPM. When running some
> performace tests displaying 2 color bitmaps I get around 40 million pixels
> per second performance out of my system (VxWorks RTOS with RtX-Windows on
> top). When I switch to 256 color pixmaps the performance drops to around 5
> million pixels per second. Now there is a corellation here of going from 1
> bit to 8 bit color causing a 8 times performance degradation, but is that
> the reason for the performance decrease? I would of thought that because the
> window color depth is still 8 bit then all 8 bit planes still have to be
> written to?
>
> Has anyone any explanations as to what is the most significant pixmapping
> performance issue ?
My theory is: Black and white are always defined and don't need a
color table lookup. With 8 bit color (and 16 bit color) there is an
additional table lookup which would explain a performance drop.
24 and 32 bit color don't need lookups and should be faster, but then
you write more plains. Performance will depend a lot on the hardware
accellerations that may be available depending on your card and the
server.
Regards
--
Manfred Bartz <mba...@werple.net.au>
For information....
The main problem I had seemed to be that I was loading the XPM format into
an XImage and not directly into a Pixmap. So instead of using XCopyArea, I
was using XPutImage which seems to be about 5 times slower as it has to do
the Image to Pixmap conversion each time it is called
Dave