[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Pygame performance on Linux?
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Pygame performance on Linux?
- From: "René Dudfield" <renesd@xxxxxxxxx>
- Date: Tue, 25 Sep 2007 05:52:11 +1000
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 24 Sep 2007 15:52:25 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=9jv+v9PAkyCQl6Mskw1jbTEFNaET+mjomZi3P6jX56E=; b=qnHsph/YBoSpTGv+zxBz8v59xiS1Q1/IgzuZLBVaF9qZOFrStupwyy49E8gk0nXUBA8coX044r2QddwTrou5alnKoWLXGd0fGeWlMXiCW/Ui9tjX0JiLzU3i4A/GN8ZPmHqyMbvZ3+Q6BPjjJ8xvcvBKDKsz9LxIkwAr0Z6Lozc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=etWO6YtsIilaj0Fe2jAPTl4iUAYNVyLJHjzLFebXI9AtdpBSMwC0Ig7jv1ZPER6UIgm44m1QFSbl4PQ9XONuiqNjRWyZxlbraD2Ou3HpcMkqOIzFyW45tzCsHT7fynaLSWySGEAPT/sUMxqFcP3v/XjtUSwCwSl8d/L/Nz4WnAE=
- In-reply-to: <46F78DCB.4050005@xxxxxxxxxxxxxxxx>
- References: <46F78DCB.4050005@xxxxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
That's *really* slow. What video card/driver/distribution do you use?
I think something is wrong with your X setup.
You should be able to do much more than that.
On my really old P3 1 ghz laptop I get 112fps at 800x600 in a window.
import pygame
from pygame.locals import *
screen = pygame.display.set_mode((800, 600))
clock = pygame.time.Clock()
going = True
while going:
events = pygame.event.get()
for e in events:
if e.type in [KEYDOWN, QUIT, MOUSEBUTTONDOWN]:
going = False
clock.tick()
pygame.display.flip()
print clock.get_fps()
On 9/24/07, Greg Ewing <greg.ewing@xxxxxxxxxxxxxxxx> wrote:
> I have a Linux machine, with a CPU speed of supposedly
> 2.8GHz, on which pygame performance appears to be
> abysmal. Just doing display flips and nothing else,
> with an 800x6000 window, it can't get to 20fps. At
> 10fps, it's using about 75% CPU.
>
> Should I be able to expect better than this?
>
> Under the same conditions, my dual 1.25GHz PPC does
> 20fps using only about 20% of its total CPU.
>
> --
> Greg
>