Add option to log drawing performance
Fix merge conflicts
Add ability to draw parts of lines. Make each char's dirty flag be just a bit and not a bitmask.
Fix warnings