   Drawing textures and lines - Direct3D with C#
  Hi, I'm having trouble with the order that are rendered the textures and lines in Direct3D.I use a sprite object to draw textures and the built-in Line object to draw lines.Let me make it simple. I can outline my code as the following: device.BeginScene(); sprite.Begin(SpriteFlags.None); sprite.Draw(...); // Draw a texture  line.Draw(...); // Draw a line sprite.End(); device.EndScene();So, considering the order I'm drawing I expect the line to be on top of the texture, but it appears at the bottom.If I execute line.Draw() after sprite.End() call, the order I get is the one I expect.How does it work? is there a way to make Direct3D to respect the order in which I'm calling renderization's methods, whenever they correspond to a texture or a primitive or they not?Best regards.   
  Is this not obvious?  The sprite isn't rendered until you End(), so the line will be drawn first.   ;  mmm, actually it is. So, I can solve it by calling sprite.Flush(), but what would be the hit on the performance if I call sprite.Flush() every time after I call sprite.Draw()?.   