From: Dan P. <ba...@al...> - 2006-05-12 15:48:09
|
On May 11, 2006, at 7:39 PM, Sam Steele wrote: > Hmm, odd. I don't run into a problem when rendering the screen > with GL_QUADS in KGL, only when using plx-compat. It draws the > entire background array on the opaque list, then draws almost half > of the foreground on the translucent list (on the last character it > tries to render, it only draws 1 of the two triangles). I'm not > seeing any messages on the dc-load console, so I have no idea > what's up. Any ideas? DR would be one explanation actually -- KGL appears to transform all the verts at once (with one mat_transform call) and send them to the TA using DR, while the plx_compat stuff would send them as triangle strips, probably not with the same efficiency. So it could actually be a memory bandwidth issue rather than a rendering time issue. You'd be sending the same verts but less efficiently. Aside from that though, I think we shouldn't be using plxcompat on the DC. We might ought to figure out a way to use the real plx stuff because it's quite a bit faster, especially with DR. Not 100% sure how that would work (especially as how you don't need a DR context under other OSes even if you use the plx_compat functions with DR ^_^;) but it'd be nice. Then if something needs to run nicely on a DC you can just write your stuff with plx calls and be good on all platforms (FoF was done this way, e.g.). |