NVIDIA Corporation
26
Frame Synchronization User’s Guide
– Version 3.0
C
HAPTER
3
Using the OpenGL Extensions
and specifying every
n
th source pulse to use for the trigger pulse. The minimum value
is 1. The maximum value is 6. As an example, if a value of 2 is used, then every other
source pulse would generate a trigger pulse.
To query the sample value, call
wglGetGenlockSampleRateI3D().
• Set an Optional Delay Value
If the next display downstream requires a slight delay, delay the trigger pulse (in
pixels) by calling
wglGenlockSourceDelayI3D
()
and specify a delay. The minimum delay value is 0. The maximum delay value is the
number of pixel clocks needed to display an entire frame.
To determine the maximum delay value:
1
Call the function
wglQueryGenlockMaxSourceDelayI3D
()
and obtain the
values for maxLineDelay and maxPixelDelay.
2
Calculate the maximum delay using the equation
maxDelay = (maxLineDelay) x (maxPixelDelay)
Configuring for Swap Sync
Configuring Swap Groups
You can assign an OpenGL window to a swap group. There is a maximum number of
allowable swap groups that can be created for any particular implementation.
• To determine the maximum swap group number, call
QueryMaxSwapGroupsNV()
• To assign a window to a swap group, call
JoinSwapGroupNV()
and specify the swap group number.
If
hDC
is already a member of a different group, it is implicitly removed from that
group. If the swap group number is zero, the
hDC
is removed from the current group.
To query the current swap group, call
QuerySwapGroupNV
().