Pre-compute coordinates for each line of text.
The values don't change, so there's no reason to repeat those calculations on every redraw. The resulting code is not just faster, but also smaller and simpler, and we no longer need to store halign in the text info object.
Showing
Please
register
or
sign in
to comment