[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

modifying draw-method



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