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

Re: [pygame] Need help with Surfarray



Fun...

Looking at your code and profiling it, it is clear that the hotspot is where you put it.

numeric provides you with the fromfunction API that should enable you to do most of what you want with the big difference is that you cannot use the approach you currently use of precalculating the sinus/cosinus table but by directly using the math APIs provided for Numeric

The last option I see would be to write a little C extension to do that array filling...

Guillaum