optimizations in render engine