0

New benchmarking script

Useful for examining how a code change affects performance
This commit is contained in:
Andrew Chin
2011-01-08 01:21:41 -05:00
parent dc842874ed
commit feeb3283e0
2 changed files with 53 additions and 1 deletions

View File

@@ -924,7 +924,8 @@ class ChunkRenderer(object):
# check to see if there are any signs in the persistentData list that are from this chunk.
# if so, remove them from the persistentData list (since they're have been added to the world.POI
# list above.
self.queue.put(['removePOI', (self.chunkX, self.chunkY)])
if self.queue:
self.queue.put(['removePOI', (self.chunkX, self.chunkY)])
return img