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

Re: [pygame] Smooth scrolling ?



I think because of SDL when switched to fullscreen choose the lowest refresh
rate 50Hz.
In fullscreen you may have 120Hz or something. Just looking at CPU times
will tell the truth.
Dmitry/

----- Original Message ----- 
From: "R. Alan Monroe" <amonroe@xxxxxxxxxxxxxxx>
To: <pygame-users@xxxxxxxx>
Sent: Wednesday, September 28, 2005 11:56 AM
Subject: Re: [pygame] Smooth scrolling ?


> > ANother cool hack...
>
> > Use ctypes under windows to increase the priority of the current
> > thread... Disable GC where not useful and stay in FULLSCREEN HWSURFACE
> > DOUBLEBUF...
> > The following code replays just so neatly :)
>
> For what it's worth, that code is dog slow on my machine in fullscreen
> mode. Windowed is very fast though. 2.4ghz laptop with a geforce4.
>
> Alan
>
>