actually you do not need to use the AMD Display Library to enable Framelock. ADL provides functinality to configure the synchronization of the video signal (TimingServer, TimingClients, HouseSync etc). Usually this confugration is done manually in the Catalyst Control Center. Anyhow if you want to control it from you application you can do this using ADL.
To enable the Framelock you can use the OpenGL extension WGL_NV_swap_group or GLX_NV_swap_group. Those extensions provide functions to join a swap group and to bind to a barrier. Once this is done all subsequent call to SwapBuffers will be synchronized.
The following code shows how to enable framelock:
// check for the availability of SwapGroups amd SwapBarriers
if (!wglQueryMaxSwapGroupsNV(mhDC, &nMaxGroups, &nMaxBarriers))
if (nMaxGroups > 0 && nMaxBarriers > 0)
// In this sample we always join to SwapGroup 1
// and Barrier 1
if (!wglJoinSwapGroupNV(mhDC, nGroup))
if (!wglBindSwapBarrierNV(nGroup, nBarrier))
Thank you very much for your help, I will try out the code that you have given.