From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c07fb6ade0e6c99c,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-30 11:59:03 PST Path: gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!att-in!att-out!pacbell.com!sgiblab!gatekeeper.us.oracle.com!decwrl!pa.dec.com!decwrl.dec.com!joel From: joel@decwrl.dec.com (Joel McCormack) Newsgroups: comp.sys.dec Subject: Re: Write to Frame Buffer on Alphas Date: 30 Mar 1994 19:59:03 GMT Organization: DEC Western Research Laboratory Sender: joel@pandora.pa.dec.com (Joel McCormack) Distribution: world Message-ID: <2nclm7$3qc@usenet.pa.dec.com> References: Reply-To: joel@decwrl.dec.com NNTP-Posting-Host: pandora.pa.dec.com 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.''