发明名称 OPTIMIZING COMPILATION OF SHADERS
摘要 To optimize the compilation of shaders for execution within an application, a computer system discovers the context in which the shaders are executed. The application is compiled and executed on a target platform. Snapshots of the application during execution are captured. A snapshot includes data and commands passed between the central processing unit and the graphics processing unit of the target platform to generate a single frame of graphics data. The shaders used in these snapshots are identified. These shaders are compiled with a number of different permutations of available compiler options, resulting in sets of differently compiled shaders. The snapshot is re-executed with the sets of differently compiled shaders, and performance is measured. The set of compiler options that results in compiled shaders providing better performance can be used as the set of compilation parameters for the set of shaders for this application.
申请公布号 US2016225118(A1) 申请公布日期 2016.08.04
申请号 US201514612224 申请日期 2015.02.02
申请人 Microsoft Technology Licensing, LLC 发明人 Nevraev Ivan;Brooking Cole;Goossen J. Andrew;Christoffersen Eric;Strayer Jason
分类号 G06T1/20;G09G5/36;G09G5/00 主分类号 G06T1/20
代理机构 代理人
主权项 1. A computer system, comprising: a target platform comprising a computer having a central processing unit, a graphics processing unit and memory, wherein the target platform is configured by an application program to execute a plurality of shaders using the graphics processing unit, whereby the graphics processing unit is configured to generate a frame of graphics data; the target platform further being configured to capture a snapshot of execution of the application program, the snapshot including data stored in storage that indicates, for a frame of graphics data generated using the graphics processing unit, data and commands passed between the central processing unit and the graphics processing unit to generate the frame; a computer having a processing system configured to: receive the snapshot;identify shaders referenced in the snapshot;compile the identified shaders with different sets of compilation parameters;reexecute the snapshot on the target platform with the differently compiled shaders while capturing performance statistics; andidentify a set of compilation parameters from among the different sets of compilation parameters according to the performance statistics.
地址 Redmond WA US