[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] is fast opengl a possibility in pygame?
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] is fast opengl a possibility in pygame?
- From: Sami Hangaslammi <sami.hangaslammi@xxxxxxxxx>
- Date: Wed, 24 Aug 2005 22:17:30 +0300
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Wed, 24 Aug 2005 15:18:04 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uQ1o3OQrTvSyKtwuOvLwFOmGOTEZ6rmpMkwq6t2zzgP9MRPIEPyHQRKgjR4rNdHRpQq4hCnr1nSLvuRVQKk61+R89JZGn0P6Zow5CE3fhxr4PgZZnT8XH2Pqq2lhhE0PHeCYu4McgpBSQGdX6J9jGb5i8FEbws9y5aj4AzwLvLo=
- In-reply-to: <1facbc1c05082412065abde6d9@mail.gmail.com>
- References: <1facbc1c05082412065abde6d9@mail.gmail.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
On 8/24/05, Drewcore <drewsph@xxxxxxxxx> wrote:
> is creating a playable game (speed-wise) a possibility with
> pygame and pyopengl?
Absolutely. It's just that function calls have such a high overhead in
Python, that you have to minimize the frequency and number of OpenGL
calls you do from your code. This is pretty easily achieved by liberal
use of opengl display lists and vertex/color/texture-arrays. With
display lists, you can render a complex scene with a single function
call (glCallList), so the overhead of Python stays minimal.
--
Sami Hangaslammi