Skip to content

Commit a91a622

Browse files
committed
disabling twolevel morton builder for user geometries (also for BVH8)
1 parent bfdde3a commit a91a622

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

kernels/common/scene.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -492,20 +492,20 @@ namespace embree
492492
#if defined (EMBREE_TARGET_AVX)
493493
if (device->hasISA(AVX) && !isCompact())
494494
{
495-
if (isStatic()) {
496-
accels.add(device->bvh8_factory->BVH8UserGeometry(this,BVHFactory::BuildVariant::STATIC));
497-
} else {
498-
accels.add(device->bvh8_factory->BVH8UserGeometry(this,BVHFactory::BuildVariant::DYNAMIC));
499-
}
495+
//if (isStatic()) {
496+
accels.add(device->bvh8_factory->BVH8UserGeometry(this,BVHFactory::BuildVariant::STATIC));
497+
//} else {
498+
//accels.add(device->bvh8_factory->BVH8UserGeometry(this,BVHFactory::BuildVariant::DYNAMIC));
499+
//}
500500
}
501501
else
502502
#endif
503503
{
504504
//if (isStatic()) {
505-
accels.add(device->bvh4_factory->BVH4UserGeometry(this,BVHFactory::BuildVariant::STATIC));
506-
//} else {
507-
//accels.add(device->bvh4_factory->BVH4UserGeometry(this,BVHFactory::BuildVariant::DYNAMIC)); // FIXME: only enable when memory consumption issue with instancing is solved
508-
//}
505+
accels.add(device->bvh4_factory->BVH4UserGeometry(this,BVHFactory::BuildVariant::STATIC));
506+
//} else {
507+
//accels.add(device->bvh4_factory->BVH4UserGeometry(this,BVHFactory::BuildVariant::DYNAMIC)); // FIXME: only enable when memory consumption issue with instancing is solved
508+
//}
509509
}
510510
}
511511
else if (device->object_accel == "bvh4.object") accels.add(device->bvh4_factory->BVH4UserGeometry(this));

0 commit comments

Comments
 (0)