OpenGL screensaver screen tearing
Hi, I am using
Xorg 6.8.2 with latest radeon snapshot for radeon 7500
and when I have an opengl screensaver displaying, I see tearing all over the screen. I'm thinking maybe there is an option for vsync that I can append to the xorg.conf? I'd really like to know why this is happening, so if anyone knows how to stop this, please let me know :).
Thanks for your time.
if you're using XScreensaver (especially 4.19), please try a search around this forum about your problem.
It might be related to your graphics drivers (I've heard that the ATI support for Linux is a mess). If that's the issue, I think you have to wait until ATI (or somebody else) releases working drivers for your Video Card.
Screensaver screen tearing
It's been my experience that tearing is usually the result of drawing during screen refresh. If the window is double-buffered, the buffers are being swapped in the middle of a (video) refresh. This was happening when I was using the "really slick screensavers" code ported to OpenGL by Tugrul Galatali (with many thanks, BTW). So I defined GLX_GLEXT_PROTOTYPES, included <GL/glxext.h>, and a call to "glXSwapIntervalSGI(1);" at the bottom of the createWindow() function. This ensured only a single "swapbuffer" can occur per video refresh. Drawing faster than the video refresh rate generally yields diminishing returns (visually & computationally). If your screen refresh rate is 60hz, calling glXSwapIntervalSGI(2) will yield 30 fps, (4) for 15 fps, etc.
Hope that helps,
|All times are GMT -5. The time now is 05:03 AM.|