0

More agressive texture cache

Especially with regard to jarfile loading
This commit is contained in:
Andrew Chin
2013-08-03 12:59:13 -04:00
parent a8e7f16369
commit 183da128b8
2 changed files with 22 additions and 3 deletions

View File

@@ -418,7 +418,9 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
texopts_key = tuple(texopts.items())
if texopts_key not in texcache:
tex = textures.Textures(**texopts)
logging.debug("Starting to generate textures")
tex.generate()
logging.debug("Finished generating textures")
texcache[texopts_key] = tex
else:
tex = texcache[texopts_key]