Sunday, February 19, 2012

Terminally Rad

I've been learning Java2D and developing the terminal for Weapon M. I'm using bitmapped fonts on a sprite sheet, pre-rendered in every color combination available on VT-series terminals. This method is over six times faster than rendering on the fly from a TrueType font, and it looks better to boot.

Here's a screenshot of my terminal benchmark. Instead of controlling the GUI component via terminal emulation, the benchmark directly instructs it to render an eight-character string 10,000 times using random colors — a task it completes in around 2.2 seconds. That works out to over 36,000 characters per second. I think it's safe to say that terminal graphics will not be Weapon M's weak point.

No comments:

Post a Comment