Fwd: Off screen GLX rendering is here

Sean Ahern <[email protected]>
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
I caught this message on Apple's X11 mailing list.  I thought there was
a possibility that it might have some relevance for Chromium on Darwin.

-Sean

----- Forwarded message from "Torrey T. Lyons" <[email protected]> -----

Date: Thu, 02 Sep 2004 16:58:27 -0700
From: "Torrey T. Lyons" <[email protected]>
Subject: Off screen GLX rendering is here
To: [email protected]

One of the common complaints about Apple's X11 is that is does not 
allow off screen GLX rendering. I realized recently that there is a 
little known secret about XDarwin that allows off screen GLX 
rendering, while still maintaining super fast direct rendering. In 
its standard configuration XDarwin also does not allow off screen 
rendering but its back end GLX renderer can be changed.

Note: This will not work with Apple's X11. You can only get super 
fast direct rendering and off screen rendering with XFree86 4.4.0 or 
newer or X.Org X11R6.7 or newer on Mac OS X 10.3.x.

The trick is to use the following command in the Terminal and then 
restart XDarwin:

defaults write org.xfree86.XDarwin UseAGLforGLX 0

If this works the XDarwin startup info (normally written to the 
console) will have the line:

Loading GLX bundle glxMesa.bundle (using Mesa)

In this case Mesa will be used for all indirect GLX rendering instead 
of CGL. The advantage of doing this is that Mesa fully supports off 
screen rendering. At the same time most all on screen rendering will 
still be done with the superfast direct rendering you are used to 
with Apple's X11.

The price you pay for this is that any indirect rendering (from 
clients on other computers for example) will be much slower. 
Operating in this "split personality" mode has also not been well 
tested. I might expect some artifacts when resizing windows with GL 
contexts, but so far I have not found any. YMMV.

--Torrey
_______________________________________________
x11-users mailing list | [email protected]
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.

----- End forwarded message -----

-Sean

__
[email protected]
925-422-1648


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.