Quote:Original post by vajuras
Well I decided to pull out my high precision timer and see how well my hand written, unoptimized matrix class fared against D3DX. Here's the result:
My Matrix 0.000003
D3DXMATRIX Time 0.000003
D3DXMATRIXA16 Time 0.000003
As you can see my matrix matches D3DXMATRIX. Sometimes they vary by 1 clock. In any case, this goes to show the D3DX math functions are not as fast as most folks believe.
That is very interesting . Could you run that code through a commercial profiler (ie Intel VTune)? If not, try timing thousands of operations at a time.
All the timers I have ever used aren't very accurate for single-call events. Timing an entire batch of them should be a better representation of the facts. [smile]