|
|
|
|
|
by aaaaaaaaaaab
2694 days ago
|
|
The problem with drawRect is the fact that texture upload is too slow. So instead of redrawing your text each frame and uploading the resulting bitmap to the GPU, you upload it once and then only change its shader’s uniform parameters which are cheap to vary (e.g. position, alpha, etc.). The textlabel object is nothing but a handle to this pre-rendered texture through which we can vary the shader parameters. |
|
You have a font render shader, and that renders to the texture, what's there to upload?