[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Dirty Rect Animation
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Dirty Rect Animation
- From: "John Cabral" <john.cabral@xxxxxxxxx>
- Date: Fri, 8 Jun 2007 18:21:17 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 08 Jun 2007 18:21:28 -0400
- Dkim-signature: a=rsa-sha1; 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; b=gSzyFBQefRuwn/sPgQ/cCjSszT9Q7LNYjvDzErUS6Qrdhl/pouNSvYp7pr8roIk66b/8uBaUREw2g8TWuOPjETER9eJSpxbS3dLvsdO0zGkeFZBCTcQVLgMFVNMq7t9fUyU/DSs0oBb+FKYKjt6mlpojfcBFkE6C/P19sE9900E=
- 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=ddHYN3ch8/kkaOqKwKqsqFSeCYB+msU2xLkQ/uJTDdh8BPtOH5UmKLbWtfCVD/V1LwPEQoijyYtDmR1j75RRIZjUjrRAXbBYl2cbraMLnzxzYYn9v0rsMCI6UJvfBnu1l2oCHnciElTstrtmnLrh3Bwt1em8AHL/owNrfBC6bJ4=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello, all;
I was working on some code for my game and read about the optimization
of feeding a list of rects to the update function. I was curious if
it would be worthwhile to try to optimize the list that is fed to the
function. Specifically, I would try to shorten the list by merging
rects that had significant areas of overlap. However, I can't tell if
the function itself might perform this work itself. Does anyone
know?
Thank you,
JC