Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Python (http://www.programmingforums.org/forum43.html)
-   -   a simple 2d game, faster in pygame or pyopengl? (http://www.programmingforums.org/showthread.php?t=4683)

cypherkronis Jun 30th, 2005 7:23 PM

a simple 2d game, faster in pygame or pyopengl?
 
if i were to make a simple top down 2d shooter with simple collision detection, keyboard input. would it be faster in pygame or pyopengl? thanks. o, this is assuming i'll be doing all the drawing with basic shapes in game, no loading outside images.

Cerulean Jun 30th, 2005 7:57 PM

Well if you're running with hardware acceleration, i'd assume the pyopengl one would be faster, of course. You probably don't need to rely on hardware acceleration in a 2d game, however, so you should be fine with both. Speed of the respective libraries isn't something you need to worry about for a simple game like that - the execution speed of your code is what you need to worry about, and you only need to do that once you've got the code working and you're sure you need optimisation. Pre-emptive optimisation == bad.


All times are GMT -5. The time now is 2:00 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC