Re: How do I sync output changes to vertical retrace?

2006-03-01 Thread Barry Scott
Mark Vojkovich wrote: Come to think of it, NVIDIA does, or at least did have device file that lets you wait for vblank as well. These types of things are pretty unportable though. Yes its a shame that X does not have more direct support for VBLANK sync, being portable would be nice. I

Re: How do I sync output changes to vertical retrace?

2006-02-22 Thread Barry Scott
Mark Vojkovich wrote: The only mechanism I know of is OpenGL. Most OpenGL drivers have a mechanism to allow buffer swapping at vblank. Using DRM/DRI this works: void waitForVSync() { if( card_fd 0 ) card_fd = open( /dev/dri/card0, O_RDONLY ); drm_wait_vblank_t wait_vblank;

Re: How do I sync output changes to vertical retrace?

2006-02-22 Thread Mark Vojkovich
On Wed, 22 Feb 2006, Barry Scott wrote: Mark Vojkovich wrote: The only mechanism I know of is OpenGL. Most OpenGL drivers have a mechanism to allow buffer swapping at vblank. Using DRM/DRI this works: void waitForVSync() { if( card_fd 0 ) card_fd = open( /dev/dri/card0, O_RDONLY

Re: How do I sync output changes to vertical retrace?

2006-02-15 Thread Mark Vojkovich
On Mon, 13 Feb 2006, Barry Scott wrote: I have a text scrolling app that is not playing smoothly. Attempting to update the windows on a timer is not keeping my changes in sync with the monitors refresh. This is causing visual glitches. What mechanisms can I use to lock my changes to the