Performance optimization for drawing text frames.