nanogui: Shared memory + SDL


Previous by date: 23 Feb 2000 08:49:28 -0000 Re: building Microwindows on SuSE 5.3, Martin Jolicoeur
Next by date: 23 Feb 2000 08:49:28 -0000 ELKS client/server, Greg Haerr
Previous in thread: 23 Feb 2000 08:49:28 -0000 Re: Shared memory + SDL, Greg Haerr
Next in thread: 23 Feb 2000 08:49:28 -0000 Re: Shared memory + SDL, Greg Haerr

Subject: Re: Shared memory + SDL
From: ####@####.####
Date: 23 Feb 2000 08:49:28 -0000
Message-Id: <20000223083905.28034.qmail@nameplanet.com>

On Tue, 22 Feb 2000 11:56:35 -0500 Kyle Harris ####@####.#### wrote:
>
>
####@####.#### wrote:
>> 
>> Hi,
>> 
>> Have any of you looked any at adding shared memory support for the off screen
>> support?
>> 
>> We have a guy working on porting the open source flash viewer, and it
>> sort of works. However it would be *much* faster if we could allocate a
>> chunk of memory for an off screen buffer, and tell Nano-X to add an
>> off-screen screen device structure with the shared memory segment as the
>> frame buffer, and could blit between them.
>> 
>
>How does shared memory make this faster? What is the flash viewer? Does
>any of this apply to streaming video or short animated clips? 

It applies to anything that maintains an off screen buffer. With shared
memory support, you can just blit the buffer directly onto screen, without
it, you'll end up calling GrArea(), which will serialize the data over 
a Unix domain socket, and the Nano-X server will buffer it in a server
side memory area, and then copy it onto screen.

So you avoid quite a few context switches, and some copies.

Note that this only apply when you compile Nano-X as client-server. When
you link apps directly into the server it won't make a difference.

Vidar Hokstad


-- 
Get your firstname@lastname email for FREE at http://NamePlanet.com

Previous by date: 23 Feb 2000 08:49:28 -0000 Re: building Microwindows on SuSE 5.3, Martin Jolicoeur
Next by date: 23 Feb 2000 08:49:28 -0000 ELKS client/server, Greg Haerr
Previous in thread: 23 Feb 2000 08:49:28 -0000 Re: Shared memory + SDL, Greg Haerr
Next in thread: 23 Feb 2000 08:49:28 -0000 Re: Shared memory + SDL, Greg Haerr


Powered by ezmlm-browse 0.20.