summaryrefslogtreecommitdiff
path: root/3dmath.c
Commit message (Collapse)AuthorAge
* 3dmath.c: Early out of sphere_intersect on t <= 0Morten Hustveit2014-12-02
| | | | | | | The loop in ray.c discards any data from intersections with t <= 0 anyway, so we might as well not calculate it. This saves 15 ms/frame on yelena.
* 3dmath.c: Throw restrict on all parameters to sphere_intersectMorten Hustveit2014-12-02
| | | | This saves 3ms / frame on yelena.
* 3dmath.c: In normalize, calculate reciprocal only once, and use sqrtfMorten Hustveit2014-12-02
| | | | This saves about 12ms per frame on yelena.
* 3dmath: Use const-correct function declarationsMorten Hustveit2014-12-02
|
* Minor style changesMorten Hustveit2014-12-02
|
* Works.Martin Stensgård2010-10-20
|
* Fail.Martin Stensgård2010-10-19