some renderer optimizations