Keith Whitwell wrote:
> 
> The real problem with this is that changing to flat shade & back again
> means a buffer flush per rectangle.  This is masked by the fact that in
> the current model we have to do a buffer flush inside the
> ASSERT_OUTSIDE_BEGIN_END() command, although this hopefully won't always
> be the case.  The real problem that you are addressing is the large
> performance differential between smooth and flat shaded primitives in
> the X driver.  It shouldn't be too great an effort to attack the problem
> at its heart & it would certainly be a bigger win.

Naturally, smooth shading is a bit slower than flat shading.  However,
I think the current code is fairly efficient.  You'd probably have to
resort to assembly language to make it substantially faster.

-Brian

----------------------------------------------------------------------
Brian Paul        Avid Technology / Softimage      [EMAIL PROTECTED]


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to