Improving rendering performance