🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.graphics.animation
3 messages
3 total messages Started by David Honig Fri, 18 Dec 1992 02:49
How to make *shared-memory* Pixmaps on Sun 4?
#535
Author: David Honig
Date: Fri, 18 Dec 1992 02:49
20 lines
1213 bytes
I'm trying to speed up a graphics application.  I'd like one
process to handle file i/o, another to handle animation.

The animation process blasts X pixmaps to a window.  The pixmaps
are made from XImages.  XImages are made from a RAM buffer loaded
from disk.  Standard X stuff.

I can use the BSD shmop() or SysV mmap() calls to get shared memory
for the disk --> RAM transfer and subsequent use of the RAM buffer by
multiple processes.  But how can I have one process convert XImages
into (server-side) Pixmaps and then share those pixmaps with other
processes?  That's the tricky part.

I have a suspicion that I can't do this, since the pixmaps are on the
server, and the processes are on the client side.

Gee, maybe Sun's old pixrects aren't so bad...

DH
Re: How to make *shared-memory* Pixmaps on Sun 4?
#543
Author: Michael Gold
Date: Fri, 18 Dec 1992 22:45
24 lines
1679 bytes
In <9212171848.aa16515@Paris.ics.uci.edu> honig@ruffles.ICS.UCI.EDU (David Honig) writes:


>I'm trying to speed up a graphics application.  I'd like one
>process to handle file i/o, another to handle animation.

>The animation process blasts X pixmaps to a window.  The pixmaps
>are made from XImages.  XImages are made from a RAM buffer loaded
>from disk.  Standard X stuff.

>I can use the BSD shmop() or SysV mmap() calls to get shared memory
>for the disk --> RAM transfer and subsequent use of the RAM buffer by
>multiple processes.  But how can I have one process convert XImages
>into (server-side) Pixmaps and then share those pixmaps with other
>processes?  That's the tricky part.

>I have a suspicion that I can't do this, since the pixmaps are on the
>server, and the processes are on the client side.

This is exactly what the MIT-SHM extension gives you.  I have no idea
whether or not Sun supports this extension, nor if it can be built for
the MIT server for Sun (though I suspect it should).  (It is available
on all SGI machines running IRIX 4.0 or later, though that probably
doesn't help you.)
Re: How to make *shared-memory* Pixmaps on Sun 4?
#544
Author: Rich Berlin
Date: Fri, 18 Dec 1992 22:51
28 lines
1604 bytes
> This is exactly what the MIT-SHM extension gives you.  I have no idea
> whether or not Sun supports this extension

Seems to.  xdpyinfo on my machine (running OpenWindows V3) says

number of extensions:    7
    SUN_DGA
    SunWindowGrabber
    XInputDeviceEvents
    Multi-Buffering
    SHAPE
    SUN_ALLPLANES
    MIT-SHM

-- Rich

--
===============================================================================
Richard.Berlin@Eng.Sun.COM 	    SunPics engineering		 (415) 336-5126

	If I participate, knowingly or otherwise, in my sister's
	oppression and she calls me on it, to answer her anger with my
	own only blankets the substance of our exchange with reaction.
	It wastes energy I need to join with her.  And yes, it is very
	difficult to stand still and to listen to another woman's voice
	delineate an agony I do not share, or even one in which I myself
	may have participated.  -- Audre Lorde
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads