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?
Efficient way to Render Text
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement