Fixed potential FPS slowdown due to gradient rendering.