[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame slow on linux (ubuntu)



could you post the link to those tutorials?  thanks


andrew baker wrote:
The Intel onboard video chip is often called "The Graphics DEcelerator". My home workstation runs Windows not because I like Windows, but because the graphics chip simply has NO drivers for Linux that I could find after an extensive search :P
No, matter, though.


As far as optimization is concerned, I found the Metanet Tutorials to be a source of inspiration, which lead me to optimize my main loop and collision to the point where my game runs well even on my garbage workstation :D Still need to check it out on something with cojones.

On 6/14/06, *Rene Dudfield* <renesd@xxxxxxxxx <mailto:renesd@xxxxxxxxx>> wrote:

    Hi,

    I've started another page here:

    http://www.pygame.org/wiki/Optimisations

    I've made a few different sections.  One for the most useful
    optimisations, and then some other sections.  Only a few things are
    listed at the moment.



    On 6/15/06, spotter . <talonspotter@xxxxxxxxx
    <mailto:talonspotter@xxxxxxxxx>> wrote:
     > Sounds like a really cool idea. I would love to see something like
     > that. The only thing I have seen about profiling is the link rene
     > posted.
     >
     > s.
     >
     > On 6/15/06, altern <altern2@xxxxxxxxx <mailto:altern2@xxxxxxxxx>>
    wrote:
     > > Kamilche wrote:
     > > > Rene Dudfield wrote:
     > > >> Try profiling your game to see where/if it can be sped up.
     > > >> http://www.pygame.org/wiki/Profiling
    <http://www.pygame.org/wiki/Profiling>
     > > >>
     > > >> Do you use dirty rects using sprite.RenderUpdates?  Do you
    convert()
     > > >> your images?
     > > >>
     > > >>
     > > >
     > > > Yeah, you can't get away without doing optimizations, even in
    C. I know,
     > > > I wrote a C engine before I switched to Python!
     > > >
     > > > I'm doing full screen, 32-bit color in a 1024x768 window with
    an alpha
     > > > channel on every graphic... and I'm sitting at about 14,000
    fps. That
     > > > number is misleading because if the screen were fully loaded with
     > > > something moving every frame, it would drop to 400 fps or
    so... but the
     > > > trick is to not fully load it. You HAVE to put a throttle on
    your
     > > > graphics, to get any kind of speed out of it.
     > > >
     > > > --Kamilche
     > >
     > > mmm... really interesting thread....
     > > It would be great if someone with experience could write a
    tutorial on
     > > basic optimization techniques, I know there are many about
    optimising
     > > python, but i am thinking more specifically on dealing with
    graphics and
     > > games. Like for example I am not sure about how to use the
    profiler on a
     > > complex program. I would like to be able to profile my whole
    game in one
     > > go. but maybe this is crazy/stupid idea, i am not sure.
     > >
     > > enrike
     > >
     > >
     > >
     >




-- Andrew Ulysses Baker "failrate"