[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] blitting arrays/lists
- To: pygame-users@xxxxxxxx
- Subject: [pygame] blitting arrays/lists
- From: "Jason Ward" <nyad55@xxxxxxxxx>
- Date: Fri, 9 Nov 2007 20:03:28 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 09 Nov 2007 13:03:37 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=yVTAUCdfuyHpWmbbJfE8L4XejTBlpzDC1nq283d9C+g=; b=euUd1s+wmk929Xxjz9WHqwkCBIFG++PpkIBI1zwMi4GukmSJF1Pj8iwKo3eSeDAhRKZLHjrk0q+KB39lM42sKwkWPZ6W4tv9aqy3Ra1qQTrqzuLMbbQm1H8ewwxSSnjbMSPqpjL8ZnDGJM501jPD8AXxy75V5ukLjfhbAwQHEvk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GxjBWHeGuKT++qTaPThdYk9La7tJtQkwukFnTRmJX21nWXKJLX/LrJcPBDjW+j3dZb60g0KZEp6lSokoumh9HOMZoe9i1xDFgokQ/g5RhELSq6LtIQiIaDcQnMFYn8lvfuFTkJRwJVZIVpM3JBbrdULufTYxV8zl/YmKNayc68o=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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?