Had to say thanks for the code here. We had a cursed scene that was taking up to 1 minute per frame to batch render. This code saved the life of a computer that was getting ready to leap out a window (or maybe be pushed).