Original Post
I've been having trouble with the Flexible Vertex Format in D3D. Whats the problem? Well, it works, but using it drops my framerate from 75FPS to 8FPS on my creative labs GeForce Annihilator Pro (and thats only drawing one triangle!). I tried using the RGB device, and with that it runs at the same speed as when I'm using the regular D3DVERTEX (25FPS). Heres the vertex structure:
struct Vertex3D
{
Real x, y, z;
Real nx, ny, nz; //normals for the vertex
Real tu1, tv1;
Real tu2, tv2;
};
and here is what the format description I'm giving to DrawPrimitive:
#define CUSTOMVERTEX D3DFVF_XYZ / D3DFVF_NORMAL / D3DFVF_TEX2
Any ideas on what I'm doing wrong?
--TheGoop
Edited by - TheGoop on 1/16/00 8:51:43 AM