On Tue, Jan 19, 2010 at 2:42 AM, Marcus von Appen m...@sysfault.org wrote:
On, Mon Jan 18, 2010, Evan Kroske wrote:
I'm running 64-bit Ubuntu Karmic Koala with Linux kernel version
2.6.31-17-generic, and I get a segmentation fault when I call
pygame2.sdlmixer.init(). Has anybody else
Hi All,
I did some profiling of my pygame application and I found that it was
spending a lot of time doing rotation operations. Basically I have some
balls on the screen that are represented by gifs with transparent
backgrounds and I want to make them spin.
I use the following code:
These
Image processing commands are expensive. Best to precalculate all the
rotations.
Also, since it's probably regular CPython you're running, there's only
ever one thread running at a time. If you're using threads, you're
probably doing something wrong.
On Wed, Jan 20, 2010 at 5:08 PM, Bram Cymet
On Wed, Jan 20, 2010 at 6:06 PM, Shandy (Andy) Brown sjbr...@geeky.netwrote:
Image processing commands are expensive. Best to precalculate all the
rotations.
Indeed. Precalculate, cache, and generally avoid image processing in SDL.
Also, since it's probably regular CPython you're running, there's only
ever one thread running at a time. If you're using threads, you're
probably doing something wrong.
I think what he means is that - don't assume that just because you have 2
threads they will run on both cores. What
Hello.
You don't need to worry about creating threads for this app.
On Wed, Jan 20, 2010 at 7:08 PM, Bram Cymet bcy...@cbnco.com wrote:
Hi All,
I did some profiling of my pygame application and I found that it was
spending a lot of time doing rotation operations. Basically I have some
Some thoughts:
- You might try using rotozoom, which probably isn't faster, but will give you
much better quality.
- Don't rotate a single image/surface multiple times, as rotation is lossy, and
will make the surface grow much larger than necessary. Instead only rotate from
the original image
It could just be the Atom.
http://www.trustedreviews.com/cpu-memory/review/2008/08/14/VIA-Nano-vs-Intel-Atom/p3
Gumm