mono/MonoGame — pull request #769 by tomspilman (2012-09-13 20:49:33+00:00)
Title: Adding Discard Hints Vertex/IndexBuffer (TEST ME!)

This pull adds the "discard hint" trick to the VertexBuffer and IndexBuffer SetData() calls.

You should see an improvement in framerate if you are using a DynamicVertexBuffer and/or DynamicIndexBuffer which updates every frame passing the SetDataOptions.Discard flag to SetData().

In our case we saw a 40% improvement in frame rate on iOS.

Please test it if you use Discard on your iOS and Android games.