vastly improve overall rendering performance by removing unnecessary context state changes