Jump to content
  • Advertisement
Sign in to follow this  
bobFritzelpuff

XNA DrawString

This topic is 3881 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If I draw an XNA drawstring outside the backbuffer, does XNA waste the resources drawing it? In other words, if I have a scrolling game, should I make sure that text (say, words on a sign) will actually appear on the screen before I draw them, or does XNA already do that?

Share this post


Link to post
Share on other sites
Advertisement
I would imagine that XNA wouldn't attempt to draw something that is beyond the bounds of the screen.

It really shouldn't be too difficult to determine this yourself though, and prevent you from even making the draw call.

Share this post


Link to post
Share on other sites
You can simple test it by drawing a extrem high number of Strings and check out if your fps are going down by drawing outside as they gowing down as you draw them inside the buffer.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!