03/26/2002
15-462 Graphics I
16
Simple Optimizations
•
Factor common subexpressions
•
Compute only what is necessary
–
Calculate b
2
– 4c, abort if negative
–
Compute normal only for closest intersection
–
Other similar optimizations
[Handout]