0

Merge #1055 -- Prevent opening and parsing files which haven't been modified since the last time that the render was done.

This commit is contained in:
Andrew Chin
2014-03-30 18:21:08 -04:00
3 changed files with 45 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ import functools
import time
import errno
import stat
import platform
from collections import namedtuple
from itertools import product, izip, chain
@@ -760,8 +761,8 @@ class TileSet(object):
# Compare the last modified time of the chunk and tile. If the
# tile is older, mark it in a RendertileSet object as dirty.
for chunkx, chunkz, chunkmtime in self.regionset.iterate_chunks():
for chunkx, chunkz, chunkmtime in self.regionset.iterate_chunks() if (markall or platform.system() == 'Windows') else self.regionset.iterate_newer_chunks(last_rendertime):
chunkcount += 1
if chunkmtime > max_chunk_mtime: