Efficient way to Render Text

Started by
0 comments, last by NightCreature83 11 years, 9 months ago
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?
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.

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion

This topic is closed to new replies.

Advertisement