[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pygame.display.flip() and framerate
- To: "pygame-users@xxxxxxxx" <pygame-users@xxxxxxxx>
- Subject: [pygame] pygame.display.flip() and framerate
- From: Ian Mallett <geometrian@xxxxxxxxx>
- Date: Sat, 7 Feb 2009 19:24:19 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 07 Feb 2009 22:24:21 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=krnejitPage6jyNsF04eL6R8GCHQalyaKICWjKQTUno=; b=obXEGGwigB4mjXZhcZd6tI5rbjTzx/6FuYc/rT1/7R6DWT3Io8HbIKFxwt7Eos/UtP vgMCDG4fR6NWJ/KDA+qaswYAUaZhiutoCwF/5VsFgTOUN0A7OXQvlsNWaI4EDIS8oORO qHWen95/Z8QUiT1Mtljhcxy1n2xsmXrYYrokk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=TaikRK8Al81YPHKl6yayS6cyKnfxKcF/qfnWULcxzSN6vsC64HvME3CjKPqRUzU0HT x9ZWC+xhxO9/atUphLG7kgfADQk7yTnf97zX9Aw5M7BceRFrDv0rV9BT0bGcBdNOSI7Z YupPg4MFTY9Y6k8xdj66NHosg8ejVtblFJemI=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello,
One can use the SDL pygame normally uses, or OpenGL.
I've noticed that each runs faster when nothing is drawn the the screen (no pygame.display.flip())--I can get very nice (100s or 1000s of frames/second this way). When pygame.display.flip() is added, the framerate drops. What's curious is that the SDL renderer can still achieve framerates around 200 or 300, but the OpenGL render seems limited to 60. Any particular reason for this? 60 frames/second is a decent framerate, but such a limitation seems bizarre, even if it's not troublesome.
Ian