0

Cache rotated chunk data

This results in a small performance gain for rotations, but still
noticeably slower than with no rotation.
This commit is contained in:
Ryan Rector
2011-07-17 08:47:57 -06:00
parent 59594ee442
commit 077552b53b
4 changed files with 52 additions and 41 deletions

View File

@@ -469,7 +469,7 @@ class QuadtreeGen(object):
# draw the chunk!
try:
a = chunk.ChunkRenderer((chunkx, chunky), world, rendermode, poi_queue, self.north_direction)
a = chunk.ChunkRenderer((chunkx, chunky), world, rendermode, poi_queue)
a.chunk_render(tileimg, xpos, ypos, None)
except chunk.ChunkCorrupt:
# an error was already printed