diff options
author | Stan Seibert <stan@mtrr.org> | 2011-08-05 18:37:17 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-08-05 18:37:17 -0400 |
commit | ef9a4f8925f6693044f8c14a744d9c9fe3120f83 (patch) | |
tree | beafce6ebcd1104c933ee1b9d35714a8d461c743 | |
parent | 1711f85bed5ad279d6b66d0373926da55e07c0ca (diff) | |
download | chroma-ef9a4f8925f6693044f8c14a744d9c9fe3120f83.tar.gz chroma-ef9a4f8925f6693044f8c14a744d9c9fe3120f83.tar.bz2 chroma-ef9a4f8925f6693044f8c14a744d9c9fe3120f83.zip |
Warn user if for some reason the default BVH quantization is used because
they didn't build the geometry before loading it on the GPU.
-rw-r--r-- | gpu.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -74,6 +74,7 @@ class GPU(object): def load_geometry(self, geometry): if not hasattr(geometry, 'mesh'): + print 'WARNING: building geometry with 8-bits' geometry.build(bits=8) self.geo_funcs.set_wavelength_range(np.float32(standard_wavelengths[0]), np.float32(standard_wavelengths[-1]), np.float32(standard_wavelengths[1]-standard_wavelengths[0]), np.uint32(standard_wavelengths.size), block=(1,1,1), grid=(1,1)) |