hi,
It's all dependant on your OS, video card and driver?
So which driver?
eg, with ubuntu there is this link which mentions it:
http://ubuntuforums.org/showthread.php?p=3622012
cheers,
On Tue, Feb 24, 2009 at 5:02 AM, Weeble wrote:
> I'm trying to do full-screen scrolling, using pygame i
On Mon, Feb 23, 2009 at 12:41 PM, Weeble wrote:
> I would include an example of my game code, but it's very messy at the
> moment and the first example really does show up the problem fairly
> accurately on my machine. Two or three times every second a band of
> tearing sweeps up the screen, and
I tried this again with this in the main loop:
for i in xrange(1000):
screen.fill( (0,0,0) )
t=(pygame.time.get_ticks()*240)//1000
for r in rectangles:
screen.fill( (255,0,0), r.move(-t,-t) )
realscreen.blit(screen,(0,0))
pygame.display.flip()
It is indeed a fair bit s
On Mon, Feb 23, 2009 at 16:23, James Paige wrote:
> On Mon, Feb 23, 2009 at 06:02:58PM +, Weeble wrote:
>>
>> 1. Don't use/support Linux.
>> 2. Avoid scrolling backgrounds, so tearing isn't such a big deal.
>> 3. Use OpenGL for all rendering, abandoning easy to use surfaces.
>> 4. Super magic
You might try losing the clock.tick_busy_loop(60), I found on MacOS X
that I would get tearing frequently if I throttled the framerate
arbitrarily, might help on X-win too. Since this is just busy-waiting
anyway it might even use less cpu without it, regardless it shouldn't
use more.
-Cas
On Mon, Feb 23, 2009 at 06:02:58PM +, Weeble wrote:
>
> 1. Don't use/support Linux.
> 2. Avoid scrolling backgrounds, so tearing isn't such a big deal.
> 3. Use OpenGL for all rendering, abandoning easy to use surfaces.
> 4. Super magic solution to get working VSYNC under X-windows.
>
> Any a
I'm trying to do full-screen scrolling, using pygame in X-Windows. As
far as I can tell, there's no way around the problem of tearing. Is
that true? Here's a simple example that gives me problems:
import pygame
from pygame.locals import *
from random import randint
pygame.init()
opts = pygame.FUL