Couple of small optimisation
Add option to build for gprof Do not build by default with the renderstat (they have a reasonable impact on performances) Separated created ray and castedray in the stats Trying to force some simple function to be inlined
This commit is contained in:
@@ -36,12 +36,6 @@ uint64_t Shape::newObjectId()
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
void Shape::intersect(Ray &r, Intersect &xs)
|
||||
{
|
||||
this->localIntersect(this->invTransform(r), xs);
|
||||
};
|
||||
|
||||
Tuple Shape::normalToWorld(Tuple normalVector)
|
||||
{
|
||||
Tuple world_normal = this->transposedInverseTransform * normalVector;
|
||||
|
||||
Reference in New Issue
Block a user