1. A computer-implemented method for rendering a graphics scene, the method comprising: receiving a call from an application program to execute one or more instances of a first scene program, wherein each instance of the first scene program is associated with a sequence of graphics commands; identifying a machine code version of the first scene program and a corresponding high-level version of the first scene program; determining, based on state information associated with the high-level version of the first scene program, that two or more instances of the machine code version of the first scene program can be executed in parallel; and in response, launching two or more threads for parallel execution of the two or more instances of the machine code version of the first scene program.