how to make the Process fast
Hi All.
In my DirectX application (a Program for Pressuresimulation) I have to find the height value of 20000 vertices for every 50-100 miliseconds by rendering. Of Course it dosent work so fast. It looks like:
device.Clear(
device.VertexFormat =CustomVertex.PositionColored.Format; device.BeginScene();
VertexDeclaration();
device.SetStreamSource(0, vb, 0);
device.Indices = ib;
device.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, WIDTH * HEIGHT, 0, indices.Length / 3);
device.EndScene();
device.Present();
in 'Vertexdeclaration' I define the coordinate of all vertices and find the height of them using a interpolation method. Because of trying to find the height of allvertice with using this method it needs more time. Are there any programmingtechniques in DirectX SDK or C# to make this process faster?
Thansk..
MAT.

