diff --git a/test/time_relight.py b/test/time_relight.py new file mode 100644 index 0000000..30e29a8 --- /dev/null +++ b/test/time_relight.py @@ -0,0 +1,13 @@ +import mclevel +from timeit import timeit + +#import logging +#logging.basicConfig(level=logging.INFO) + +path = "testfiles\\AnvilWorld" +world = mclevel.fromFile(path) + +print "Relight: %d chunks in %.02f seconds" % (world.chunkCount, timeit(lambda: world.generateLights(world.allChunks), number=1)) + + +