hybrid-graphics-linux team mailing list archive
-
hybrid-graphics-linux team
-
Mailing list archive
-
Message #02129
Re: Moving applications between X servers / dynamic optirun ?
Hi Nicolas,
To answer your questions:
- The applications are linked to libGL.so, but this library depends on the
driver used by X. The DISPLAY environment variable affects the X server to
be used by the application
- The idea of such a wrapper is already used by Bumblebee, namely virtualgl
(http://virtualgl.org/).
- I don't think it would be useful to remap calls directly considering that
the X server is responsible for rendering and displaying. Without using a
solution like virtualgl, both actions cannot be separated. A solution
dedicated to this design would certainly improve performance, but it'll
likely requrie a lot work.
https://github.com/Bumblebee-Project/Bumblebee/issues/37
Regards,
Lekensteyn
On Mon, Feb 6, 2012 at 9:57 AM, Nicolas Joyard <joyard.nicolas@xxxxxxxxx>wrote:
> Lekensteyn,
>
> Thanks for your answer. Some additional questions on this topic :
> - Which binaries are linked with GL libraries from the graphics drivers ?
> The X server binaries or user application binaries (or both) ?
> - Would a GL wrapper library (linked with GL libs from two drivers, and
> that redirects calls to one or the other based on a runtime-switchable
> parameter) impact graphics performance a lot ?
> - Is there any way to remap calls to a dynamically linked library to an
> other one at runtime (I guess the answer to that one is no, but maybe the
> kernel is able to do some form of address translation)
>
> Thanks for your answers,
>
> Nicolas JOYARD
>
>
>
>
> On Mon, Jan 30, 2012 at 10:41, Lekensteyn <lekensteyn@xxxxxxxxx> wrote:
>
>> Hi Hicolas,
>>
>> Considering that the Bumblebee X server and primary X server use
>> different GL libraries (at
>> least for the proprietary drivers), I don't think it's possible.
>>
>> Regards,
>> Lekensteyn
>>
>> On Mon, Jan 30, 2012 at 8:20 AM, Nicolas Joyard <joyard.nicolas@xxxxxxxxx
>> > wrote:
>>
>>> Hello,
>>>
>>> Given that some applications don't need full-time GPU processing power
>>> (eg. web browsers) I wonder whether it would be feasible to dynamically
>>> switch already-running applications from or to an optirun-started X server.
>>>
>>> What do you think about it ? Could it be possible to start an empty
>>> optirun and then use tools like xmove to switch servers ?
>>>
>>> Nicolas
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~hybrid-graphics-linux
>>> Post to : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
References