Drawing of a huge model - How to regain performance?
- by marc wellman
I have a huge model I want to draw in my XNA application but because of its size I am experiencing a tremendous loss of performance.
The model has about ~50 000 000 edges and has a size on disk of 205 MB in DirectX Format.
Please don't ask whether this model has to be that big - yes it has!
Is there a way to transfer the model directly to my GPU in order to let the GPU do the drawing like when transferring a VertexBuffer like this:
graphicsDevice.Vertices[1].SetSource(_instanceBuffers[i], 0, _sizeofMatrix);
because when I try to fill a vertexBuffer with all the vertices I am getting a OutOfMemoryException.