Menu

One spritebatch per form?

Extrakun
2009-02-28
2013-04-24
  • Extrakun

    Extrakun - 2009-02-28

    Hi,

    Another thing which I have noticed is that there is one unique spritebatch per form. Would it better for the rendering time if only one spritebatch is used?

     
    • Eric Grossinger

      Eric Grossinger - 2009-02-28

      I don't think it would make much of a difference in the rendering time, just more programming headaches.

       
    • Debug

      Debug - 2009-05-15

      I disagree, It would improve rendering time noticeably to use one sprite batch per form. rather than one or more per control.

      Additionally the way things like progress bars are rendered should be with filled rectangles not pixels or lines.

      This goes for everything that could be generated from larger primitives it is slowing render time generating them from such small primitives when larger would work.

       
  • Joël Langlois

    Joël Langlois - 2010-04-15

    I agree entirely with nbdebug: having to run through multiple Spritebatches degrades performance intensively.

    The only headache is having to redesign how objects are drawn.

     

Log in to post a comment.

MongoDB Logo MongoDB