# US 2012/0268470 A1 · Heads-up-display software development tool

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0268470 A1
- Document ID: US20120268470A1
- Status: Published application
- Kind: A1
- Application number: 13/092,881
- Filed: 2011-04-22
- Published: 2012-10-25
- Earliest claimed: 2011-04-22
- Assignees: Sony Computer Entertainment Inc.
- Inventors: Nathaniel G. Duca; Vlad Stamate; Thomas Flynn; Stace Peterson; Alexandre Depereyra
- Web page: https://patentgrep.com/patent/US20120268470A1

## CPC

- G06T 11/26: Drawing of charts or graphs
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method and apparatus for software development and a method and system for analysis of graphics software are disclosed.

## Claims

### Claim 1

A method for software development, comprising:
presenting a graphic display of information as it is normally produced by a process implemented with computer software;
selecting an arbitrary range of objects within the graphic display;
applying one or more filters to the processing of the objects in the arbitrary range; and
changing the processing of the objects dynamically in response to the filters.

### Claim 2 (depends on 1)

The method of claim 1, further comprising displaying a graph showing utilization of computer processor resources for each object in the selected range with the one or more filters applied to the objects.

### Claim 3 (depends on 2)

The method of claim 2, further comprising displaying a graph showing utilization of computer processor resources for each object in the selected range without the one or more filters applied to processing the objects in the graph showing utilization of computer processor resources for each object in the selected range with the filtering applied to the objects.

### Claim 4 (depends on 2)

The method of claim 2 wherein the graphic display of information and the graph are displayed on the same screen in the form of a heads-up-display (HUD).

### Claim 5 (depends on 2)

The method of claim 2 wherein the graph is a bar graph having a plurality of bars, wherein each bar corresponds to a different object in the graphic display.

### Claim 6 (depends on 5)

The method of claim 5 wherein a height of each bar corresponds to a measure of processing cost for drawing the corresponding object.

### Claim 7 (depends on 5)

The method of claim 5, further comprising displaying metadata associated with drawing a particular object in the graphic display proximate the corresponding bar in the bar graph.

### Claim 8 (depends on 7)

The method of claim 7 wherein the metadata includes a number of vertices and attributes of the particular object, time spent drawing the object, number of pixels that the object covers in the graphic display, or draw call timings.

### Claim 9 (depends on 8)

The method of claim 8 wherein the draw call timings include timings from different parts of a draw call pipeline such that the whole height of each bar is proportional with processor time spent to draw the particular object.

### Claim 10 (depends on 9)

The method of claim 9 wherein different colored parts of a bar corresponding to the particular object show processor time spent by different parts of a processor when drawing particular object.

### Claim 11 (depends on 7)

The method of claim 7 wherein displaying metadata includes color coding objects in the graphic display according to different metadata.

### Claim 12 (depends on 1)

The method of claim 1 wherein the one or more filters are selected from the group of Simple Shader, 1×1 Viewport, Register Count, Disable Render, Disable Blend, Disable Alpha Test, Reduce Geometry, Disable ZCULL, 1×1 Textures, Wireframe, Depth Complexity, and Wait For Idle.

### Claim 13 (depends on 1)

The method of claim 1 wherein applying the one or more filters to the processing of the objects in the selected range includes the use of a “when” expression.

### Claim 14 (depends on 1)

The method of claim 1 wherein the computer software includes a computer graphics software and wherein the graphic display of information is a computer graphic image.

### Claim 15 (depends on 6)

The method of claim 6 wherein selecting a range of objects includes selecting one or more visual elements of the computer graphic image.

### Claim 16 (depends on 1)

The method of claim 1 wherein the arbitrary range of objects includes more than one object, wherein the range begins with any arbitrary object in the graphic display and ends with an object that is not the last object in the graphic display.

### Claim 17 (depends on 1)

The method of claim 1 wherein selecting an arbitrary range of objects within the graphic display includes the use of a “when” expression.

### Claim 18

An apparatus for software development, comprising:
a display unit;
one or more processors coupled to the display unit; and
wherein the one or more processors are configured to execute processor executable instructions comprising:
one or more instructions that when executed by the one or more processors wherein the one or more processors are configured to cause the display unit to present a graphic display of information as it is normally produced by a process implemented with computer software running on the one or more processors;
one or more instructions that, when executed by the one or more processors cause the apparatus to select an arbitrary range of objects within the graphic display;
one or more instructions that, when executed by the one or more processors cause the apparatus to apply one or more filters to the processing of the objects in the arbitrary range; and
one or more instructions that, when executed by the one or more processors cause the apparatus to change the processing of the objects dynamically in response to the filters.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the instructions further comprise one or more instructions that when executed by the one or more processors cause the display unit to display a graph showing utilization of computer processor resources for each object in the selected range with the one or more filters applied to the objects.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the instructions further comprise one or more instructions that when executed by the one or more processors cause the display unit to display a graph showing utilization of computer processor resources for each object in the selected range without the one or more filters applied to processing the objects in the graph showing utilization of computer processor resources for each object in the selected range with the filtering applied to the objects.

### Claim 21 (depends on 19)

The apparatus of claim 19 wherein the graphic display of information and the graph are displayed on the same screen in the form of a heads-up-display (HUD).

### Claim 22 (depends on 19)

The apparatus of claim 19 wherein the graph is a bar graph having a plurality of bars, wherein each bar corresponds to a different object in the graphic display.

### Claim 23 (depends on 22)

The apparatus of claim 22 wherein a height of each bar corresponds to a measure of processing cost for drawing the corresponding object.

### Claim 24 (depends on 22)

The apparatus of claim 22, wherein the instructions further comprise one or more instructions that when executed by the one or more processors cause the display unit to display metadata associated with drawing a particular object in the graphic display proximate the corresponding bar in the bar graph.

### Claim 25 (depends on 24)

The apparatus of claim 24 wherein the metadata includes a number of vertices and attributes of the particular object, time spent drawing the object, number of pixels that the object covers in the graphic display, or draw call timings.

### Claim 26 (depends on 25)

The apparatus of claim 25 wherein the draw call timings include timings from different parts of a draw call pipeline such that the whole height of each bar is proportional with processor time spent to draw the particular object.

### Claim 27 (depends on 26)

The apparatus of claim 26 wherein different colored parts of a bar corresponding to the particular object show processor time spent by different parts of a processor when drawing particular object.

### Claim 28 (depends on 24)

The apparatus of claim 24 wherein the instructions that cause the display to display the metadata are configured such that the metadata includes color coding objects in the graphic display according to different metadata.

### Claim 29 (depends on 18)

The apparatus of claim 18 wherein the one or more filters are selected from the group of Simple Shader, 1×1 Viewport, Register Count, Disable Render, Disable Blend, Disable Alpha Test, Reduce Geometry, Disable ZCULL, 1×1 Textures, Wireframe, Depth Complexity and Wait For Idle.

### Claim 30 (depends on 18)

The apparatus of claim 18 wherein the one or more instructions that apply the one or more filters to the processing of the objects in the selected range comprise a “when” expression.

### Claim 31 (depends on 18)

The apparatus of claim 18 wherein the computer software includes a computer graphics software and wherein the graphic display of information is a computer graphic image.

### Claim 32 (depends on 31)

The apparatus of claim 31 wherein the instructions that cause the apparatus to select a range of objects comprises one or more instructions that cause the apparatus to select one or more visual elements of the computer graphic image.

### Claim 33 (depends on 18)

The apparatus of claim 18 wherein the arbitrary range of objects includes more than one object, wherein the range begins with any arbitrary object in the graphic display and ends with an object that is not the last object in the graphic display.

### Claim 34 (depends on 18)

The apparatus of claim 18 wherein the one or more instructions that apply the one or more filters to the processing of the objects in the selected range comprise a “when” expression.

### Claim 35

An apparatus for software development, comprising:
means for presenting a graphic display of information as it is normally produced by a process implemented with computer software;
means for selecting range of objects within the graphic display;
means for applying one or more filters to the processing of the objects in the arbitrary range; and
means for changing the processing of the objects dynamically in response to the filters.

### Claim 36

A method for analysis of graphics software, wherein a graphics program places commands in a command buffer for a graphics processor unit (GPU), the method comprising:
copying a program chunk from the command buffer to a push buffer, wherein the program chunk contains successive commands that are all of a common type;
handling the program chunk through command buffer and/or push buffer manipulation that is transparent to the graphics program; and
executing the program chunk from the push buffer with the graphics processor.

### Claim 37 (depends on 36)

The method of claim 36 wherein handling the program chunk comprises:
a) inserting a front command immediately before the program chunk in the push buffer, wherein the front command changes the operation of the program chunk in a way that facilitates analysis of the graphics program;
b) moving a get to a point before a beginning of the front command in the push buffer;
c) inserting a back command immediately after the program chunk, wherein the back command is configured to revert a configuration of the program to a configuration it would have had without the front command;
d) moving a put in the push buffer to a point after an end of the back command.

### Claim 38 (depends on 37)

The method of claim 37, further comprising:
d) placing time stamps immediately before and after the program chunk.

### Claim 39 (depends on 37)

The method of claim 37, further comprising determining a time utilized by the graphics processor in executing the front and back commands using the time stamps and subtracting the time when computing timing of processing of the program chunk with the graphics processor.

### Claim 40 (depends on 37)

The method of claim 37 wherein executing the program chunk comprises executing the front command, the program chunk and the back command from the push buffer with the graphics processor.

### Claim 41 (depends on 37)

The method of claim 37 wherein the front command and/or back command implements a function on the program chunk.

### Claim 42 (depends on 37)

The method of claim 37, further comprising implementing a function on a source of the program chunk, wherein the function facilitates analysis of the graphics program.

### Claim 43 (depends on 37)

The method of claim 37, wherein the front command and/or back command implements a function on the program chunk, wherein the function requires information from a memory that is not yet available when the front or back command is put in the push buffer, the method further comprising;
a) preventing execution of the front command, program chunk or back command until the information is available;
b) importing the information to the function once the information becomes available; and
c) subsequently permitting execution of the front command, program chunk or back command.

### Claim 44 (depends on 43)

The method of claim 43 wherein the function is part of a vertex driver, shader debug driver, shader defrag disassembly driver filter or driver that asks for data that was in memory at a time of a draw call.

### Claim 45 (depends on 37)

The method of claim 37, wherein the program chunk comprises one or more commands that set a state associated with a subsequent draw command.

### Claim 46 (depends on 45)

The method of claim 45 wherein the front command modifies the state from an initial value and the back command reverts the state to the initial value.

### Claim 47 (depends on 36)

The method of claim 36 wherein handling the program chunk comprises implementing a function on a source of the program chunk, wherein the function facilitates analysis of the graphics program.

### Claim 48 (depends on 47)

The method of claim 47, further comprising, determining a processing time on the graphics processor associated with handling of the program chunk and subtracting the processing time when computing timing of processing the program chunk with the graphics processor.

### Claim 49 (depends on 36)

The method of claim 36 wherein handling the program chunk comprises applying one or more filters to the program chunk.

### Claim 50 (depends on 49)

The method of claim 49 wherein the one or more filters are chosen from the group of a Simple Shader, a 1×1 Viewport, a Register Count, a Disable Render, a Reduce Geometry, a Disable ZCULL, a 1×1 Textures and a Wait For Idle filter.

### Claim 51 (depends on 36)

The method of claim 36, handling the program chunk includes saving frame data associated with a frame drawn by the GPU.

### Claim 52 (depends on 51)

The method of claim 51 wherein saving frame data comprises:
saving a set of commands associated with drawing a frame;
a) saving an initial set of frame data for an initial draw call, wherein the frame data is made up of two or more portions;
b) determining for a subsequent draw which, if any, of the two more portions has been changed by the subsequent draw call; and
c) saving those portions which have been changed by the subsequent draw call.

### Claim 53 (depends on 52)

The method of claim 52 wherein b) comprises computing an initial hash function for each of the two or more portions of the initial frame data; computing a subsequent hash function for one or more of the portions after the subsequent draw call; and comparing the initial and subsequent hash functions.

### Claim 54 (depends on 53)

The method of claim 53 wherein b) further comprises estimating whether one or more portions are used by the subsequent draw call; and hashing a given portion only if it is estimated that the given portion has been used by the subsequent draw call.

### Claim 55 (depends on 36)

The method of claim 36 wherein handling the program chunk includes implementing a shader debugger.

### Claim 56 (depends on 55)

The method of claim 55 implementing a shader debugger comprises inserting a shader debug sequence F(D) into the push buffer between a state chunk S and a draw call D, wherein the debug sequence includes placeholder D′ for the draw call D, a state modifier portion that modifies the state from a state defined by the state chunk S, and a revert instruction REV that reverts state to that associated with the state chunk S.

### Claim 57 (depends on 56)

The method of claim 56 wherein the placeholder D′ includes a jump instruction JMP that causes the GPU to jump to a wait instruction that causes the GPU to wait until the draw call D has been copied to a memory location reserved for draw call D.

### Claim 58 (depends on 57)

The method of claim 57, further comprising copying the draw call D from the command buffer to the memory location reserved for the draw call D and either (a) copying the draw call D to the push buffer or (b) executing draw call D from the memory location with the GPU; revert command REV to revert a state and execute the draw call D again from the push buffer with the GPU.

### Claim 59 (depends on 58)

The method of claim 58 wherein the state modifier portion comprises a bind new shader instruction BNS, a bind surface instruction BS, a placeholder D′ for the draw call D and wherein the revert command REV is configured to undo the BNS and BS commands.
