Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › 作业6 提高题结果比较(提升似乎有限?) › Reply To: 作业6 提高题结果比较(提升似乎有限?)
除了硬件问题,渲染写法的一些细节上也会影响速度,例如我在BVHAccel::getIntersection里把dirIsNeg = {int(ray.direction.x > 0), int(ray.direction.y > 0), int(ray.direction.z > 0)}换成dirIsNeg = {int(ray.direction.x > 0), int(ray.direction.y > 0), 0},bunny的渲染速度直接快了一倍
This post has received 1 vote down.