Hey all,
Suppose I have this structure:
typedef struct
{
float u; //Texture coordinate u
float v; //Texture coordinate v
BOOL Enabled; //Is this vertex enabled ?
}Vertex;
and I want to initialise all the vertices I have (513x513 vertices) such that the Enabled flag is set to false like this:
for(int i=0 ; i < MapSize ; i++)
for(int j=0 ; j < MapSize ; j++)
Vertices[(i*MapSize) + j].Enabled = FALSE;
Is there anyway to optimise that piece of code to run even faster? It's the big bottleneck in my app and I would appreciate any help in fixing it.Thanx!
Edited by - TheGecko on 7/30/00 4:58:13 PM
Edited by - TheGecko on 7/30/00 4:58:40 PM