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

Re: [pygame] image.load() -->> array?



On 10/25/07, Casey Duncan <casey@xxxxxxxxxxx> wrote:
> On Oct 25, 2007, at 9:56 AM, Ian Mallett wrote:
> surface.get_at() can be kinda slow, and typically sequence item
> access is faster in python then a function call anyway.
> Regardless, I wouldn't worry about it unless it helps makes the code
> simpler or profiling shows you that using get_at() is slowing you
> down too much.
It's slowing it down some, but the speed is fine.  It's other people
running my program that I'm worried about.  My computer can do 256
squared calls to surface.get_at() in about 30 seconds, but it is
pretty new.
Ian