Changes between Initial Version and Version 1 of Ticket #2039, comment 12
- Timestamp:
- Jul 17, 2013, 10:28:41 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2039, comment 12
initial v1 3 3 In any case, Anchoring doesn't need a normalized orthogonal, and most other code doesn't need it either (only the direction of the vector is important). So I worked out the cross product, and removed the normalize. 4 4 5 This brings the anchor calculation from 1.05 us to 0.94 us according to my profiling, but I don't know how much the profiling overhead is with these tiny times.5 This brings the anchor calculation from 1.05 us to 0.94 us according to my profiling, with a profiling overhead that seems to be around 0.34 us. So that gives a speedup of around 15% when leaving out the profiling overhead. 6 6 7 7 It certainly break terrain boundary rendering, and probably some water related stuff too, so it's not for inclusion, but a method could be added to calculate an unnormalized orthogonal to speed up anchoring calculation.