Add glyph cache and cells-in-viewport to improve rendering performance