info-performer-dev
[Top] [All Lists]

modifying draw-method

To: info-performer-dev@xxxxxxxxxxx
Subject: modifying draw-method
From: "Klaus Häming" <khaeming@xxxxxx>
Date: Mon, 14 May 2001 18:30:05 +0200
Organization: http://freemail.web.de/
Sender: owner-performer@xxxxxxxxxxx
Hi,

I have to synchronize two Instances of Performer running on two Computers.
I want these two Instances to draw a frame nearly at the same time.

My Idea to solve this problem, is to use a DRAW callback function such as
this one:

void DrawFunc(pfChannel *chan, void *data) {

        thisComputerIsReadyToDraw();    //to tell the other
                                        //Computer I'm ready

        while(otherComputerIsNotAtThisPoint()){
                //wait wait wait
        }

        pfDraw();

}

Is this a appropriate method?

Or is it possible to modify the pfDraw() in a way, that the synchronisation 
takes effect shortly before swapping the buffers? For this purpose I would have 
to know, what pfDraw() does in detail.

tia,
Klaus

______________________________________________________________________________
Ferienklick.de - 225 Reisekataloge auf einen Blick!
Direkt zu Ihrem Traumurlaub: http://ferienklick.de/?PP=2-0-100-105-0


<Prev in Thread] Current Thread [Next in Thread>
  • modifying draw-method, Klaus=20H=E4ming <=