1. A computer-implemented method for optimizing emulated fixed-function and programmable graphics, the method comprising: receiving data comprising fixed function and programmable states for one or more images to be rendered; translating the data for the one or more images into one or more representations; applying one or more optimizations to the representations; and implementing the optimized representations to render the one or more images.