Parallelized definition and display of content in a scripting environment
AssigneeAdobe Systems Incorporated
InventorSebastian Marketsmueller
Life of this patent
Estimating the term…
Abstract
Various content may be defined and display in parallel in a scripting environment. The scripting language may not wait for error checking or reporting before proceeding to updating the content definition. In one embodiment, no error checking or reporting may be performed. Content may be defined by setting graphics states while content may be displayed by validating the graphics states and submitting validated states to a GPU. The defining and display of content may be performed asynchronously.
Claims21
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.
A computer-readable storage device storing program instructions that, responsive to execution by a computing device, cause the computing device to perform a method, the method comprising:
- setting a graphics state by a first thread of a scripting environment by at least storing the graphics state in a first block of a buffer;
- determining a validity of the graphics state by at least comparing data of the graphics state to expected data of the graphics state, the validity being determined without error checking;
- submitting, by a second thread of the scripting environment 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 second thread configured to read 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 first thread.
A system, comprising:
- at least one processor;
- and
- a memory comprising program instructions that are executable by the at least one processor to:
- set, by a scripting thread of a scripting environment, a graphics state by at least storing the graphics state in a first block of a buffer;
- determine a validity of the graphics state by a worker thread of the scripting environment, the validity being determined without error checking and by at least comparing data of the graphics state to expected data of the graphics state;
- submit a task corresponding to the graphics state to a graphics processing unit (GPU);
- and
- set an additional graphics state without waiting for an indication of successful completion of the task by the GPU by at least storing the additional graphics state in a second block of the buffer, the worker thread configured to read the graphics state from the first block in parallel with the storing of the additional graphics state in the second block of the buffer by the scripting thread.
Dependencies are inferred from the claim text.