1. A method, comprising: in a scripting environment: setting a graphics state; submitting a task corresponding to the set graphics state to a graphics processing unit (GPU); and without waiting for indication of successful completion of the task by the GPU, setting another graphics state.