More agressive texture cache
Especially with regard to jarfile loading
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user