more rendering perf improvements