[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] shaking images



Is this fullscreen?

If you are not able to synchronize to the VSYNC perfectly, you might
have a slight tearing (shaking?) effect.
When you say 100 frames, are you just flip() your buffer and consider
that a frame or did you set a framerate?

My monitor is driven by my gfx card at 60 Hz. If i pay attention to
update the screen at 30 or 60 Hz, then the movement is quite smooth.
In general if you are trying to update the screen at a frequency which
is different than the normal frequency, you won't be able to
synchronise your movement with what your eyes see -> the shaking.

As usual, post your code :)

Regards,

Guillaume


On 1/4/06, michael gross <mich@xxxxxxxxx> wrote:
> hello
>
> I have a qustion about moving and scaling images on a pygame screen.
>  if I want to move an image lets say form (0,0) to (5,100) in 100 frames
> it seems as if the image was shaking, especially if the framerate is
> slow. does anyone know a good filter to use to get ride of this effect?
>
> thanks in advance
>
> best michael
>
>
>