Hi !

> > One could make a screensaver in native X11 that runs 0.000001% faster than
> > the libggi version in X11, for obvious reasons, so the speed gain
> > proposed by the original author wouldn't be due to libggi.

> I'm not sure how libGGI works when used in X window. Does it make calls 
> to Xlib ? 

There are two X targets for LibGGI. Both effectively use calls to LibX11
and/or Xlib. The standard X target is geared towards games or similar
applications that do pixelwise operations on almost the whole screen and 
operate on a local X server. 
It uses XShm if possible, and puts a in-memory image to an X window using 
PutImage type calls.

The second one is the xlib target, which maps through to xlib calls. This
is better when using higher primitives and for remote connections.

> It might still be faster if it is easier and more efficient to program in
> libGGI.
> (like programming in ncurses might be faster then trying to write out all 
> escape codes yourself)

Yeah. That's the point. With LibGGI you have a single API and that's the big
advantage. You don't care about what the underlying target is.

However the LibGGI code is also well optimized, which saves you this work as
well and so produces faster code as well, unless you really know the target
you would write native code for very well.

CU, ANdy

-- 
= Andreas Beck                    |  Email :  <[EMAIL PROTECTED]> =

Reply via email to