nanogui: Shared memory request buffer patch to 0.88pre4


Previous by date: 22 Mar 2000 18:00:58 -0000 Re: Kaffe port to Microwindows, Greg Haerr
Next by date: 22 Mar 2000 18:00:58 -0000 Re: Shared memory request buffer patch to 0.88pre4, Greg Haerr
Previous in thread:
Next in thread: 22 Mar 2000 18:00:58 -0000 Re: Shared memory request buffer patch to 0.88pre4, Greg Haerr

Subject: Shared memory request buffer patch to 0.88pre4
From: Morten Rolland ####@####.####
Date: 22 Mar 2000 18:00:58 -0000
Message-Id: <38D9162A.2C70C5E6@screenmedia.no>

Hello,

The attached patch is against 0.88pre4 and implements a shared memory
segment for sending draw-commands to the Nano-X server.  Only a single
flush message is sent over the socket once the request buffer fills up,
or a flush is needed to assure the server will respond to a command that
returns data.

The patch mostly deals with the protocol handeling, but some patches to
Gr* functions was needed, and two new protocol commands to set up the
shared memory area and the flush itself.

Right after the GrOpen() call, make a call to GrReqShmCmds(size)
with size equal to the size of the request buffer.  Larger sizes
gives fewer context switches, but it costs memory.  Even with
short request buffers (64K), the speedup is good, as memory does
not need to be copied around.

The 'world' demo is a good example of the speedup.

Have to run.... enjoy,

Regards,
Morten Rolland, Screen Media

[Content type application/octet-stream not shown. Download]

Previous by date: 22 Mar 2000 18:00:58 -0000 Re: Kaffe port to Microwindows, Greg Haerr
Next by date: 22 Mar 2000 18:00:58 -0000 Re: Shared memory request buffer patch to 0.88pre4, Greg Haerr
Previous in thread:
Next in thread: 22 Mar 2000 18:00:58 -0000 Re: Shared memory request buffer patch to 0.88pre4, Greg Haerr


Powered by ezmlm-browse 0.20.