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

Re: [pygame] Re: SDL-ctypes progress




On Jun 2, 2006, at 2:10 AM, Richard Jones wrote:

On Friday 02 June 2006 08:41, Bob Ippolito wrote:
On Jun 2, 2006, at 1:36 AM, Richard Jones wrote:
Python 2.5 also has speedy new struct code which may come in useful.

Well, struct wouldn't be all that good for working with buffers full of pixels; it doesn't do anything lazily.. unpacking creates tuples full of stuff, rather than returning some kind of proxy object that creates numbers on demand like numeric/numpy/ctypes.

Hurm. Did any of your speedup work touch packing? I've made use of packing in
the past to set up OGL vertex buffers etc.

Yeah, packing is definitely faster than it was. There's also a new API for packing directly to a writable buffer (which Martin did).


-bob