Re: [info-performer] Multipipe Initialization

Date view Thread view Subject view Author view

From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 10/06/2005 06:17:06


Hi, Christopher,

Some random thoughts below,

Christopher D. Johnson wrote:

>So when I create my single pfPipe (which I already have) and then create my 2 seperate windows, what is the "best" way to have each of my windows go to the proper display?
>

If you do really have a single X "screen" that is spanning your two
monitors, you can send your windows to the proper place via:

pfPWinOriginSize(pwinUPPER, 0, 0, 1280, 1024);
pfPWinOriginSize(pwinLOWER, 0, 1024, 1280, 1024);

I'm assuming your screens are both 1280x1024 resolution. If not, you'll
have to adjust accordingly.

>Before, when I made the calls:
>
>pfPipeScreen(mttGlobal->gfxPipeLOWER,0);
>pfPipeScreen(mttGlobal->gfxPipeUPPER,1);
>
>I could see the windows on each screen being created when I called pfFrame() the first time. Does the fact that these calls directed the windows (and assigned the pipes) to the "screen" I expected mean I have to treat the situation as two screens and have 2 pipes?
>
>
I'm not sure about this. It depends on what Performer does when you ask
for a pipe that isn't there.

>As an aside, I can move the mouse pointer from the lower screen to the upper screen seemlessly. Is this a direct indication that the system sees the 2 physical screens as one "screen"? I know this is long winded but I'm trying to really get the heart of the concepts I'm learning here. Thanks.
>
>
Not necessarily. Typically, when you have a single X server "display"
running multiple "screens", you'll get the same behavior. However, the
most common setup on a Linux box is with a single X "display" and
"screen", which spans multiple monitors.

Try running xdpyinfo, and see how many screens and what resolutions are
reported (this is near the top of the output, before the long list of
visuals). If you only see a single screen, then you're screen is
spanning multiple monitors, and you should attach your pipe windows to
the same pipe. If you see two screens, then each screen is driving one
monitor, and you should be able to get two valid pfPipes and be able to
attach a full-screen window to each one. Typically, this can only work
if you have multiple graphics cards in your machine.

There is one more possibility. If you have a single (NVIDIA) card in
your machine, and you've got it configured for TwinView, but you have it
set to create multiple X screens, you won't be able to get
hardware-accelerated OpenGL on your second screen (this information is
from the NVIDIA driver's README). Chances are, it would perform well on
the first screen, but if you tried to use the second screen, it would
have a hard time getting a useful visual to run Performer with. I'm
mainly bringing this up because you said that you were getting an error
message about not finding the desired visual when trying to run multiple
screens, but it ran OK on one screen, correct? A quick check for this
may be to try running glxinfo once on each screen, and see if the
outputs match. If not, then this may be your problem.

-- 

--"J"

"I'm a castaway stranded in a desolate land, I can see the footprints in the virtual sand." --Neil Peart


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Oct 06 2005 - 06:17:32 PDT