From 2509b7e15ea77bc0219545ad3ecc6f402d70ccc1 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Tue, 30 Jun 2015 10:50:09 -1000 Subject: [PATCH] Fix a really stupid bug in the relight benchmark. --- src/mceditlib/bench/time_relight_manmade.py | 2 +- src/mceditlib/bench/time_relight_natural.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mceditlib/bench/time_relight_manmade.py b/src/mceditlib/bench/time_relight_manmade.py index d6708ce..d0da0d8 100644 --- a/src/mceditlib/bench/time_relight_manmade.py +++ b/src/mceditlib/bench/time_relight_manmade.py @@ -37,7 +37,7 @@ def manmade_relight(): cx, cy, cz = poses.next() indices = numpy.indices((16, 16, 16), numpy.int32) indices.shape = 3, 16*16*16 - indices += ([cx], [cy], [cz]) + indices += ([cx << 4], [cy << 4], [cz << 4]) x, y, z = indices relight.updateLightsByCoord(dim, x, y, z) diff --git a/src/mceditlib/bench/time_relight_natural.py b/src/mceditlib/bench/time_relight_natural.py index d91b40f..7cfef1e 100644 --- a/src/mceditlib/bench/time_relight_natural.py +++ b/src/mceditlib/bench/time_relight_natural.py @@ -22,7 +22,7 @@ def natural_relight(): cx, cy, cz = poses.next() indices = numpy.indices((16, 16, 16), numpy.int32) indices.shape = 3, 16*16*16 - indices += ([cx], [cy], [cz]) + indices += ([cx << 4], [cy << 4], [cz << 4]) x, y, z = indices relight.updateLightsByCoord(dim, x, y, z)