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 . <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 > >> > >> 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 > > >