Article View: comp.sys.sgi.hardware
Article #79Re: From where do I get a SYNC signal?
From: Marc van Kempen
Date: Sat, 09 Jan 1993 00:56
Date: Sat, 09 Jan 1993 00:56
37 lines
1661 bytes
1661 bytes
dario@cns.nyu.edu (Dario Ringach, x3941) writes: >I'd like to synchronize the screen refresh with external equipment for >a psychophysical experiment... I only want a signal coincident with >the FIRST vertical SYNC of the monitor AFTER I call swapbuffers() (i.e. >exactly when the buffers are swapped). Is there a way to do this? >Thank you! From the man page of GSYNC(): In some implementations gsync blocks immediately. In others, gsync blocks only when a graphics call is made. I think swapbuffers() does the same. It allows your program to continue unless it performs a graphics function that would affect the current frontbuffer, that is: after the call to swapbuffers, but before the buffers have actualy been 'swapped'. Maybe you should include a line in your code like: unsigned long dummy; swapbuffers(); lrectread(0,0,0,0,&dummy); This should block your program until the next vertical retrace. If your interested, I've written some (dirty) code that directly uses the vertical retrace interupt adress. It only works on IP12 boards though (Indigo-Elan, Iris). I'll post it if anybody can use it. Marc. BTW: can anybody at Silicon tell my if they have figured out what causes my Indigo-Elan to hang in PAL mode?
Technical Details
Message-ID:
<wmbfmk.726540994@rw7.urc.tue.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!rw7.urc.tue.nl!wmbfmkReferences:
<C0HwKH.62D@cmcl2.nyu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!rw7.urc.tue.nl!wmbfmk From: wmbfmk@rw7.urc.tue.nl (Marc van Kempen) Newsgroups: comp.sys.sgi.hardware Subject: Re: From where do I get a SYNC signal? Message-ID: <wmbfmk.726540994@rw7.urc.tue.nl> Date: 9 Jan 93 00:56:34 GMT References: <C0HwKH.62D@cmcl2.nyu.edu> Sender: root@tuegate.tue.nl Reply-To: wmbfmk@urc.tue.nl Lines: 37