* Re: Write to Frame Buffer on Alphas
[not found] <CnE0C8.Mzy.3@cs.cmu.edu>
@ 1994-03-30 19:59 ` Joel McCormack
0 siblings, 0 replies; only message in thread
From: Joel McCormack @ 1994-03-30 19:59 UTC (permalink / raw)
In order to speed up the graphic display process, I would like to
bypass X, and write to the frame buffer directly. Do any one of you
know how to do this?
It is unlikely that you will get any of the graphics devices to paint more
quickly by writing directly to them. If you are drawing a lot of small
objects, setting the environment variable DISPLAY to ``local:0'' will use
shared memory transport to get requests from the application to the X server.
If you are creating images directly that don't map well in the X11 protocol
(like a DOOM port, for example :), then you might think that you want to write
directly to the frame buffer. You can't. And if you are writing anything
smaller than 32-bit words, you wouldn't want to anyway, as you'd be causing
read/modify/write cycles over the TURBOchannel.
You can create images directly in main memory, and then ask the X server to
display them with a minimum of overhead by using the shared memory PutImage
extension. This extension allows you to create pixmaps in a memory segment
that is shared by your application and the X server, so the X server can
copy the image into screen memory directly, without any intervening copies.
The HX board can copy something like 24 megabytes/second to the screen
using this extension. The new ZLX-E1 (aka HX+) board can copy over 70
megabytes/second.
For an example of this, look at x11perf in the X11 distribution, in file
do_blt.c.
--
- Joel McCormack ``I can't reduce any of my thoughts to
joel@pa.dec.com a witty signature line.''
^ permalink raw reply [flat|nested] only message in thread