About SpriteBatch.Draw Overloads

I was wondering if there is a performance difference between the various overloads?
[83 byte] By [dagfari] at [2007-12-25]
# 1
The overloads that take more parameters may perform a little more pre-transforming of the vertices, but any performance difference would be neglible.

If you are concerned about performance, the best thing you can do is make sure that as many of your Draw calls as possible use the same texture parameter. You can do this by putting your sprites in the same texture and then using the sourceRectangle parameter. When you do this, SpriteBatch is able to "batch" your "sprites" together into just one or a few draw calls which really improves performance.

KrisNye at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 2

Nothing you can measure :-)

Take a look at the code with reflector - you will more than likey see that they all call to a single overload filling in the missing parameters.

TheZMan at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...