more optimizations on render pipeline