1. A method, comprising: setting, by a scripting thread, a graphics state by at least storing the graphics state in a first block of a buffer; determining a validity of the graphics state without error checking by at least comparing data of the graphics state to expected data of the graphics state; submitting, by a worker thread after said determining the validity, a task corresponding to the graphics state to a graphics processing unit (GPU); and without waiting for an indication of successful completion of the task by the GPU, setting an additional graphics state by at least storing the additional graphics state in a second block of the buffer, the worker thread being configured to read the graphics state from the first block of the buffer in parallel with the storing of the additional graphics state in the second block of the buffer by the scripting thread.