pioneerspacesim/pioneer — pull request #1106 by Luomu (2012-03-24 18:21:44+00:00)
Title: Pack glyphs in one texture per font

This gives a very good performance improvement in my tests! Even if it is done in a fairly lazy way.
In the end I couldn't figure out a *nice* way of determining a good atlas texture size so it's just fixed at 512x512 , still much much less wasteful than the old method of using a separate 64x64texture for each glyph. Maybe some algorithmic genius (@jpab, @robn) could come up with a solution, or just consider this an intermediate fix and then implement for example the rectangle bin packing algorithm.