[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: The right tool to use: XGetImage or Compositing or something
From:       Nathan Kidd <nathan-ml () spicycrypto ! ca>
Date:       2011-02-23 21:51:30
Message-ID: 4D658162.4090505 () spicycrypto ! ca
[Download RAW message or body]

On 11-02-23 03:19 PM, Philip Lawatsch wrote:
>>> What I'm trying to do is write some support to use an nvidia "optimus"
>>> system under linux (basically one has two graphics cards, but only one
>>> of the is connected to physical displays).
>
>>> So, any suggestions / advice / best practices (other than not buying
>>> hardware like that) for how I should try to speed that up?
>>
>> http://airlied.livejournal.com/71734.html
>
> Sadly this was for an ati card where open source drivers are available
> to play around with. In my case I can't really hack around in the
> driver :(
> And I don't want to use nouveau as I'm out for opengl performance, so
> I have to use the nvidia binary blobs.

VirtualGL does what you're generally trying to do:

Essentially: GL render to pbuffer -> glReadPixels() -> XShmPutImage() 
should be faster than XGetImage/XPutImage since they avoid moving pixels 
over the X transport.

-Nathan

_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic