Performance

Improve rendering performance.