Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ames!sgi!shinobu!odin!horus.esd.sgi.com!thant From: thant@horus.esd.sgi.com (Thant Tessman) Newsgroups: comp.sys.sgi Subject: Re: Stereo sync Keywords: stereo Message-ID: <1990Dec3.181548.5300@odin.corp.sgi.com> Date: 3 Dec 90 18:15:48 GMT References: <17848@thorin.cs.unc.edu> Sender: news@odin.corp.sgi.com (Net News) Reply-To: thant@horus.esd.sgi.com (Thant Tessman) Organization: Silicon Graphics Inc. Lines: 15 In article <17848@thorin.cs.unc.edu>, certain@hatteras.cs.unc.edu writes: > I am try to get a stereo display program to work on an Iris. The problem > that I am having is that to stereo plate flips between the left and right > eye at 60Hz, so I need to make sure that I am alternating eyes with each > buffer swap. Unfortunately, swapbuffers() is non-blocking, so that if I > can actually draw faster than 120Hz, I get two updates per buffer swap, > which has the effect of always just showing one eye. Is there a way to > make swapbuffers() to be blocking? Is there a way to know when the screen > refresh happens? What have other people done about this problem? I have > just subscribed to this newsgroup, so I don't know if this problem has been > addressed previously. gsync() might be what you need, at least to block on a refresh. thant