Commit 73f25c9
Optimized pvr_pack_bump() redundant trigonometry.
Our boy, PH3NOM, correctly pointed out that pvr_pack_bump(), by virtue
of using our inline ASM routines from fmath.h, SEPARATELY for sin +
cosine values, was doing TWO FSCA calls and throwing away a result of
each.
- Changed pvr_pack_bump() to retrieve both sine + cosine simultaneously
from a single fsincos() call.
- Tested with the PVR bump map example which uses it... and... she's
still bumpy!1 parent ac2e539 commit 73f25c9
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
0 commit comments