Optimize shadow path rendering for old devices