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

Re: [pygame] pygame.display.flip slow



Hi,

Thanks again for the answers.

Both machines are running Fedora Linux. Both are using X11 and the nvidia drivers, but the drivers are different versions (older graphics card in machine B).

I'll look at the settings to see if I can figure out the difference.
I'll try to find out

On Thu, Feb 20, 2020 at 10:30 PM Greg Ewing <greg.ewing@xxxxxxxxxxxxxxxx> wrote:
On 20/02/20 8:57 am, Nuno Maltez wrote:
> when I run my test program, Machine B reports FPS > 200, and
> pygame.display.flip taking 0.002 per call,
> while machine A reports FPS < 60, and pygame.display.flip taking 0.016
> per call.

This looks to me like machine A is synchronising its flips
with the monitor's refresh rate, but machine B is not. Why
that would be when you're creating the surface with the same
flags I don't know. Maybe a difference in the display
driver?

--
Greg