Some rendering performance optimizations