Off screen GLX rendering is here
Off screen GLX rendering is here
- Subject: Off screen GLX rendering is here
- From: "Torrey T. Lyons" <email@hidden>
- Date: Thu, 2 Sep 2004 16:58:27 -0700
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@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.