[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xlib problems (Lol. I've only been programming in it for10days...)



Jorrit Tyberghein wrote:

> Try MitSHM extension too. It gives a huge benefit above plain XCopyArea
> (several factors on my machine) but it works similarly to XCopyArea
> otherwise. MitSHM doesn't require fullscreen. It can work in a window just
> fine. I don't know if DGA allows that?

You get better performance with XShm than with XCopyArea? The X protocol
overhead is roughly the same, and I know that the XFree86 3.9.x server
will often cache largish pixmaps in video memory, giving you at least 10
times the performance of XShm...

Shared pixmaps actually uses XCopyArea anyway, and I was told by Raster
(of Englightenment fame) that they were a *bit* faster than shared
images (XShmPutImage)... I think I believe him on this one (the
XCopyArea code should be able to do a few more assumptions, like on the
format of the image.

-- 
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/
"First they ignore you. Then they laugh at you.
Then they fight you. Then you win." -- Gandhi