Quickie: Where best to store indices?

When drawing primitives with glDrawElements, and passing it an array of indices, should the index array be stored in video/AGP memory, along with the vertex positions, normals, UVs, and colours, or should it be stored in system meory? In other words, is it the CPU or the GPU that need fast access to the indices?

store it in video memory and then tell me how you did it

In vbo you can create element_array, and driver finds the best place to store your array of indices, not necesarily in the same place as v/n/uv’s

Originally posted by mdog1234:
store it in video memory and then tell me how you did it

I’d have done it the same way I store my vertex data: wglAllocateMemoryNV(…video/AGP memory, please…), then set my indices pointer to point to a part of the allocated memory, write my indices there, then use that pointer when calling glDrawElements.