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

[pygame] blitting arrays/lists



Hi.
I want to render an array or a list.
Should I use surfarray or numeric.
Also should I draw to a surface and blit that or should I draw
straight to the display surface(screen)?

This stuff isn't related to pygame but it would be helpfull:
    Will psyco speed up numarrays like it does with lists?
    Can python do pointers?

These are some speed alternatives that I thought up but I would like
to know if they are viable.
I saw something about python buffer objects, would this be a fast
alternative to numarray/lists?
Also using ctypes we can allocate memory through
kernel32.dll with VirtualAlloc(), is this a good idea?