Extract shader program callbacks to segment draw function. Framerate increase possibility.