X+fastgraphic

X+fastgraphic

Post by f00m.. » Thu, 16 Nov 2000 04:00:00



Hi
I wondered how to write fast 2d-graphics in X.
What libraries should I use, what *routines* in these libraries...
I'm currently trying gtk/ gdk_draw_rgb_image(..).
But this is slow and I suppose there must be other/better ways.

Regards
    Martin

 
 
 

X+fastgraphic

Post by Peter Roozemaa » Thu, 16 Nov 2000 04:00:00



> Hi
> I wondered how to write fast 2d-graphics in X.
> What libraries should I use, what *routines* in these libraries...
> I'm currently trying gtk/ gdk_draw_rgb_image(..).
> But this is slow and I suppose there must be other/better ways.

First: understand how the X protocol works. (It's a networking
protocol!)
Second: minimise network communication.
Third: optimise your draw requests.

There are standard and nonstandard X extensions that allow some
optimisations (at the cost of portability) "double buffering" is a
common technique to improve animations. Xlib is the lowest (fastest) you
can get; the O'Reily "rainbow series" is the ultimate reference.

Peter

 
 
 

X+fastgraphic

Post by Martin Schuppi » Fri, 17 Nov 2000 04:00:00


Aha, thanks for the answer..
Hmmm... But are the Rainbowseries to get for free on the net or do I need to buy these books(?) ?




>> Hi
>> I wondered how to write fast 2d-graphics in X.
>> What libraries should I use, what *routines* in these libraries...
>> I'm currently trying gtk/ gdk_draw_rgb_image(..).
>> But this is slow and I suppose there must be other/better ways.

> First: understand how the X protocol works. (It's a networking
> protocol!)
> Second: minimise network communication.
> Third: optimise your draw requests.

> There are standard and nonstandard X extensions that allow some
> optimisations (at the cost of portability) "double buffering" is a
> common technique to improve animations. Xlib is the lowest (fastest) you
> can get; the O'Reily "rainbow series" is the ultimate reference.

> Peter

 
 
 

X+fastgraphic

Post by Peter Roozemaa » Fri, 17 Nov 2000 04:00:00



> Aha, thanks for the answer..
> Hmmm... But are the Rainbowseries to get for free on the net or do I need to buy these books(?) ?

I don't think they're "on the net"; I think the University library would
have them (borrow them there).
I got my copies for free from a system administrator, they used to ship
the books with new UNIX systems and most administrators didn't have the
shelf space for seven copies ;).

ftp://ftp.x.org/contrib/docs/Xbibliography.OReilly.txt contains a list
of the full series, for you volumes 0 and One are the most relevant; the
man pages substitute nicely for volume Two.

Peter.

 
 
 

X+fastgraphic

Post by Nate Eldredg » Fri, 17 Nov 2000 04:00:00



> Aha, thanks for the answer..  Hmmm... But are the Rainbowseries to
> get for free on the net or do I need to buy these books(?) ?

They're books, and yes, you have to buy or otherwise acquire them
(libraries, friends, etc).  www.oreilly.com may have more info.

--

Nate Eldredge