[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: [pygame] from Python+Pygame to C+SDL, Any experiences?



It was definitely a hardware issue.  Back in the good old days of mode 13 and mode X!!!

Even doing a simple starfield (many planes of pixels moving) can bog down C/SDL if you don't have hardware acceleration.  

That being said, it is possible to acheive acceptable frame rates with a side scroller even in python (without opengl), you just have to be very careful in your design.

ja


-----Original Message-----
From: "campbell barton" <ideasman@linuxmail.org>
To: pygame-users@seul.org
Date: Wed, 19 Mar 2003 05:58:26 +0800
Subject: Re: [pygame] from Python+Pygame to C+SDL, Any experiences?

This is a problem with pygame (no flame intended), because if I'm not mistaken games in SDL can have smooth scrolling backgrounds.
This in one reason I am moving to openGL, with pygame for input.




> Bob Ippolito schreef op dinsdag 18 maart om 16:22:25 +0000:
> > >Has anyone on this list used Pygame to learn and then moved to C and 
> > >sdl, and if so what was it like? is it worth it.
> > 
> > You gain very little from this approach.
> 
> How about speed?
> 
> http://pygame.org/docs/tut/newbieguide.html states:
> There are two cases where this technique just won't work. The first is where the whole window or screen really is being updated every frame - think of a smooth-scrolling engine like an overhead real-time strategy game or a side-scroller. So what do you do in this case? Well, the short answer is - don't write this kind of game in pygame. The long answer is to scroll in steps of several pixels at a time; don't try to make scrolling perfectly smooth. Your player will appreciate a game that scrolls quickly, and won't notice the background jumping along too much.
> 
> I have totally ignored the short answer because I found it very unconvincing.
> I am currently scrolling at 10 pixels per time, but that still is 10 pixels
> per frame. This puts a large pressure on game speed. Is it then purely because
> of my lack of programming expierence that my game runs slow on P3 while
> Commander Keen runs fast on a 286, or are there more issues?
>
> Is DOS faster because of direct hardware? Games run smooth for Linux, too.
> Or is Pygame not suitable?
>
> (no matter the response, I will continue with Python ;)
>
> yours,
> Gerrit.
>
> --
> Asperger Syndroom - een persoonlijke benadering:
> 	http://people.nl.linux.org/~gerrit/
> Het zijn tijden om je zelf met politiek te bemoeien:
> 	http://www.sp.nl/
>

--
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze