Sign in to follow this  
Such1

Efficient way to Render Text

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this