Jump to content
  • Advertisement
Sign in to follow this  
Such1

Efficient way to Render Text

This topic is 2188 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

Hey guys, I managed to render Text on the screen already, but it seems very slow, I used the tutorials from rastertek to create my font engine.
How can I make it faster?
Should I render in parallel to a texture than rendering that texture on the backBuffer?
Or should I use instances to render?

Share this post


Link to post
Share on other sites
Advertisement
Text is ideal for instance rendering as you are likely only setting a the fontpage texture only once for a large amount of text and use atlas texturing and alpha blending to end up with the correct character on the on screen quad. Since you are using a quad the data that is in each vertex buffer for each character is very small, GPU's don't like small Vertex Buffers, so batching these up to a sensible maximum will increase throughput on the GPU and hence improve performance.

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!