On Mon, Jul 01, 2002 at 11:37:59AM +0100, Keith Whitwell wrote:
>José Fonseca wrote:
[...]
>>
>>Indeed! Here are the results of the 'b' and 'B' benchmark with the
>>default settings before:
>>
>>Benchmarking...
>>Result:  triangles/sec: 205098  fps: 28.5771
>>Benchmarking...
>>Result:  triangles/sec: 204282  fps: 28.4634
>>
>>and after:
>>
>>Benchmarking...
>>Result:  triangles/sec: 277690  fps: 38.6917
>>Benchmarking...
>>Result:  triangles/sec: 275819  fps: 38.4309
>>
>>so the difference isn't that marginal as I thought.
>
>Indeed.  That looks like a pretty good speedup...

The Mach64 format is quite different from the D3D. For example the X,Y and Z
coordinates are in fixed point and not in floating point. By
making all the conversions on the vertex buffer template these
operations are factored out in reused vertices. And in the 3D model used
in the isosurf demo (a triangular mesh) I would say that every vertex is roughly used 
about 3-4 times, hence the impact.

I also removed an extra fp multiplication for backface culling by
using signbit() instead.

José Fonseca


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to