# US 2016/0364831 A1 · Remote translation, aggregation and distribution of computer program resources in graphics processing unit emulation

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

- Number: US 2016/0364831 A1
- Document ID: US20160364831A1
- Status: Published application
- Kind: A1
- Application number: 14/740,132
- Filed: 2015-06-15
- Published: 2016-12-15
- Earliest claimed: 2015-06-15
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Brian Spanton; Barry Bond; Robert Francis; Eric Heutchy
- Web page: https://patentgrep.com/patent/US20160364831A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06F 9/4552: {Involving translation to a different instruction set architecture, e.g. just-in-time translation in a JVM}
- G06T 15/005: {General purpose rendering architectures}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Resource processing, such as shader translation, during run time of an application on an emulated platform, can be performed asynchronously from emulation of the application. One or more server computers can be configured to perform such processing remotely from the computers executing the emulation. The one or more server computers can receive resources for processing from multiple computers. The one or more server computers aggregate the resources received from the multiple computers for different applications and process those resources. For example, multiple shaders, discovered from multiple different emulations of an application on multiple computers, are translated and organized by the one or more server computers. The translated shaders can be packaged as an update to the application and redistributed to the computers using the application. Such an update can be installed on the computers as a set of translated shaders for use in the emulation of the application.

## Claims

### Claim 1

A computer configured to emulate execution of a graphics application for a first graphics processing unit, the computer comprising:
a second graphics processing unit;
storage;
one or more central processing units configured to execute an emulator application, the emulator application configuring the computer to:
convert first commands for the first graphics processing unit, generated by execution of the graphics application by the emulator application, to second commands that instruct the second graphics processing unit;
manage a resource cache including translated resources for the second graphics processing unit for a plurality of resources;
in response to a first command referencing a resource, and translated resources for the second graphics processing unit for the resource not being in the resource cache, transmit a request for translation of the resource over a computer network to a remote computer for translation of the resource by the remote computer, and receive the translated resources in response to the request.

### Claim 2 (depends on 1)

The computer of claim 1, wherein the resource comprises a shader and the resource cache comprises a shader cache.

### Claim 3 (depends on 2)

The computer of claim 2, wherein the emulator application, when executed by the computer, is configured to, in response to execution of an application by the emulator, identify translated shaders for the application and load the translated shaders into the shader cache.

### Claim 4 (depends on 2)

The computer of claim 2, wherein the shader cache comprises a memory configured to store executable code for the second graphics processing unit and a cache index configured to store, for each shader of the plurality of shaders, a location in the memory of the executable code for the shader.

### Claim 5 (depends on 2)

The computer of claim 2, wherein the computer is further configured to:
request an update package from a service, the update package including translated shaders.

### Claim 6 (depends on 2)

The computer of claim 2, wherein the computer is further configured by the emulator application to:
in response to a determination that the executable code for the second graphics processing unit for the shader is not in the shader cache, add an indication of the shader to a queue for translation.

### Claim 7 (depends on 2)

The computer of claim 2, wherein the computer is further configured by the emulator application to:
in response to translation of the shader by the remote computer, update the entry in the cache index for the shader to provide an indication of the location in the memory of the executable code for the second graphics processing unit for the shader.

### Claim 8

A computer system, comprising:
one or more server computers configured by one or more computer programs so as to be comprising:
storage configured to store code for a resource for a plurality of applications;
a receiving module comprising an input configured to receive requests from end user computers over a computer network, the requests including an identifier of a resource for an application and the resource, the receiving module further storing the received resource in the storage;
a translation module comprising an input configured to access the resource from the storage and an output configured to store a translated resource on the storage;
a packaging module comprising an input configured to access the translated resource for an application and an output configured to provide an update package comprising the translated resources for a plurality of resources received in requests from a plurality of end user computers;
a distribution module comprising an input configured to receive a request for an update package for an application from an end user computer over a computer network, and an output configured to provide the update package for the application to the end user computer over the computer network.

### Claim 9 (depends on 8)

The computer system of claim 8, wherein the resource comprises a shader.

### Claim 10 (depends on 9)

The computer system of claim 9, wherein the receiving module further comprises an output configured to provide translated shader code to the end user computer in response to the request from the end user computer for translation of a shader.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the receiving module further comprises an output configured to provide an indication that translated shader code is not yet available to the end user computer in response to the request from the end user computer for translation of a shader

### Claim 12 (depends on 9)

The computer system of claim 9, wherein the distribution module distributes an update package to an end user computer in response to a request from the end user computer.

### Claim 13 (depends on 9)

The computer system of claim 9, wherein the distribution module distributes an update package to an end user computer according to a schedule defined for the one or more server computers.

### Claim 14 (depends on 9)

The computer system of claim 9, wherein the distribution module distributes an update package to an end user computer according to a schedule defined by the end user computer.

### Claim 15

A computer-implemented process, performed by one or more server computers, comprising:
receiving requests from a plurality of end user computers over a computer network, a request including an identifier of a resource for an application and the resource;
translating the received resources from the received requests;
packaging the translated resources for an application from a plurality of received requests into an update package for the application; and
distributing the update package to the plurality of end user computers over a computer network.

### Claim 16 (depends on 15)

The computer-implemented process of claim 15, wherein the resource comprises a shader.

### Claim 17 (depends on 16)

The computer-implemented process of claim 16, further comprising storing the shader code in a first directory of a file system and the translated shader code in a second directory of the file system, the first and second directories being subdirectories of a directory in the file system for the application.

### Claim 18 (depends on 16)

The computer-implemented process of claim 16, further comprising transmitting to an end user computer, in response to a request from the end user computer, the translated shader code for a shader included in the request.

### Claim 19 (depends on 16)

The computer-implemented process of claim 16, wherein packaging comprises:
periodically identifying translated shader code for a plurality of shaders for an application; and
generating an update package including the identified translated shader code.

### Claim 20 (depends on 16)

The computer-implemented process of claim 16, wherein distributing comprises receiving a request from an end user computer for an update package and transmitting the update package to the end user.
