Patent ID: 7095416

Claim:
A method comprising: identifying a set of commands to be submitted to a processing unit, wherein the set of commands were captured and saved as they were previously submitted to the processing unit, and wherein the processing unit comprises a graphics processing unit; selecting a subset of the set of commands; submitting the subset of the set of commands to the processing unit for processing; analyzing processing performed by the processing unit in response to the subset of the set of commands analyzing the set of commands; determining, based on the analysis of the set of commands whether one or more recommendations for using the graphics processing unit are violated by the set of commands; if one or more recommendations are violated by the set of commands then: selecting one of the violated recommendations; determining how much faster a frame could have been drawn if the selected recommendation had not been violated; and issuing a warning identifying both the selected recommendation that has been violated and how much faster the frame could have been drawn if the selected recommendation had not been violated.